[ 
https://jira.duraspace.org/browse/DS-692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Dietz updated DS-692:
---------------------------

    Attachment: CDATA-wrapping-collection-attributes.patch

Added a patch that allows one to wrap the collection/community attributes into 
a CDATA tag. Thus allowing the page to render fine without having to fix their 
invalid markup.
(patch is made with git, and against code in 1.6.1)

> Clean up invalid HTML in collection and community metadata
> ----------------------------------------------------------
>
>                 Key: DS-692
>                 URL: https://jira.duraspace.org/browse/DS-692
>             Project: DSpace
>          Issue Type: New Feature
>          Components: DSpace API
>    Affects Versions: 1.6.2
>         Environment: xmlui
>            Reporter: Peter Dietz
>            Assignee: Peter Dietz
>         Attachments: CDATA-wrapping-collection-attributes.patch, 
> jtidy-comm-coll.patch, xmlui-report-invalid-coll-comm.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to