[HepData-svn] r1732 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Jan 13 15:20:08 GMT 2014


Author: whalley
Date: Mon Jan 13 15:20:08 2014
New Revision: 1732

Log:
fixing problem withgt and lt signs in MarcXMl formatter

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java	Fri Jan 10 16:45:02 2014	(r1731)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java	Mon Jan 13 15:20:08 2014	(r1732)
@@ -90,7 +90,7 @@
         s.append("      <subfield code=\"h\">") ;
         for (String ct : ds.getComments()){
             if(!ct.startsWith("Location:")) { 
-                s.append(ct.replaceFirst("VERBATIM","")); 
+                s.append(ct.replaceFirst("VERBATIM","").replaceAll(">",">").replaceAll("<","<")); 
             }
         }
         s.append("      </subfield>\n");


More information about the HepData-svn mailing list