Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-58

Double quote problem in some fields of JSPUI (continued) - ID: 2528065

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: JSPUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1

      Description

      Double quote problem in some fields of JSPUI (continued) Private:
      No
      It's continuation of fixed bug (ID 2512868), but now for other field: SHORT
      DESCRIPTION.

      I just created a collection in DSpace with SHORT DESCRIPTION «Seminar on
      "Media and
      Communication"».
      When I edit the collection SHORT DESCRIPTION through admin interface it
      gives only
      «Seminar on».
      The rest of the collection SHORT DESCRIPTION doesn't appear. Is it because
      of the
      unescaped double quotes and other special symbols.

      My solution: edit file edit-collection.jsp and add calls of function
      org.dspace.core.Utils.addEntities for ALL fields in form.
      I.E.:
      1.
      <input type="text" name="short_description" value="<%=
      Utils.addEntities(shortDesc) %>" size="50"/>
      instead of
      <input type="text" name="short_description" value="<%= shortDesc %>"
      size="50"/>
      2.
      <textarea name="introductory_text" rows="6" cols="50"><%=
      Utils.addEntities(intro) %></textarea>
      instead of
      <textarea name="introductory_text" rows="6" cols="50"><%= intro
      %></textarea>
      3.
      <textarea name="copyright_text" rows="6" cols="50"><%=
      Utils.addEntities(copy) %></textarea>
      instead of
      <textarea name="copyright_text" rows="6" cols="50"><%= copy %></textarea>
      4.
      <textarea name="side_bar_text" rows="6" cols="50"><%=
      Utils.addEntities(side) %></textarea>
      instead of
      <textarea name="side_bar_text" rows="6" cols="50"><%= side %></textarea>
      5.
      <textarea name="license" rows="6" cols="50"><%= Utils.addEntities(license)
      %></textarea>
      instead of
      <textarea name="license" rows="6" cols="50"><%= license %></textarea>
      6.
      <textarea name="provenance_description" rows="6" cols="50"><%=
      Utils.addEntities(provenance) %></textarea>
      instead of
      <textarea name="provenance_description" rows="6" cols="50"><%= provenance
      %></textarea>

      It also affects community (edit-community.jsp file).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bollini Andrea Bollini (4Science)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: