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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Apr 24 14:30:12 BST 2012


Author: whalley
Date: Tue Apr 24 14:30:12 2012
New Revision: 1532

Log:
addition to force Inspire id ref for specific papers

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/AidaFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/AidaFormatter.java	Mon Apr 23 11:15:48 2012	(r1531)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/AidaFormatter.java	Tue Apr 24 14:30:12 2012	(r1532)
@@ -53,10 +53,11 @@
                 /// @todo Use proper enums!
                 if (ref.getType().equals("JOUR")) break;
             }
-            StringTemplate t_pname = new StringTemplate("$expts$$year$_S$spiresId$");
+            StringTemplate t_pname = new StringTemplate("$expts$$year$_$spiresId$");
             t_pname.setAttribute("expts", expts);
             t_pname.setAttribute("year", year);
-            t_pname.setAttribute("spiresId", d.getPaper().getSpiresId());
+            if(d.getPaper().getInspireId() == 917009) { t_pname.setAttribute("spiresId", "I"+d.getPaper().getInspireId()); } 
+            else { t_pname.setAttribute("spiresId", "S"+d.getPaper().getSpiresId()); }
             String pname = t_pname.toString();
             String path = "/REF/" + pname;
 


More information about the HepData-svn mailing list