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

Clean up invalid HTML in collection and community metadata

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Accepted / Claimed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      3
    • Comments:
      3
    • Documentation Status:
      In Description

      Description

      In JSPUI the system was forgiving with an instance with plain-old-HTML that users entered into the metadata values for fields. In XMLUI, it requires valid XHTML, otherwise it junks the whole text and displays the html in the page, as opposed to rendering them. This solves local needs, and had been a deal breaker before migrating between systems.

      Therefore, I've implemented jTidy in DSpace to clean up collection and community metadata fields. It runs from the command line.

      == To Install the JTidy JAR ==
      Download the jar: http://sourceforge.net/projects/jtidy/files/JTidy/r938/jtidy-r938.jar/download
      mvn install:install-file -Dfile=/home/dspace/Downloads/jtidy-r938/jtidy-r938.jar -DgroupId=jtidy -DartifactId=jtidy -Dversion=938 -Dpackaging=jar

      Then it can be run from the command line:
      /dspace/bin/dspace dsrun org.dspace.content.service.TidyService

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peterdietz Peter Dietz
              Reporter:
              peterdietz Peter Dietz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: