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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Nov 12 17:19:11 GMT 2013


Author: whalley
Date: Tue Nov 12 17:19:11 2013
New Revision: 1672

Log:
remove spiresId and InspireIds from paper line when they do not exists

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java	Tue Nov 12 14:40:05 2013	(r1671)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java	Tue Nov 12 17:19:11 2013	(r1672)
@@ -26,9 +26,9 @@
         s.append("  <data timestamp='" + _getTimestamp() + "'>\n");
         s.append("    <paper");
         if(p.getSpiresId() != null) { s.append(" spiresId='" + p.getSpiresId() + "'"); }
-        else { s.append(" spiresId=''"); }
+      //  else { s.append(" spiresId=''"); }
         if(p.getInspireId() != null) { s.append(" inspireId='" + p.getInspireId() + "'"); }
-        else { s.append(" inspireId=''"); }
+     //   else { s.append(" inspireId=''"); }
         if(p.getRedId() != null) { s.append(" redId='" + p.getRedId() + "'"); }
         else { s.append(" RedId=''"); }
         s.append(" preprintDate=''>\n");


More information about the HepData-svn mailing list