|
[HepData-svn] r1613 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Jan 29 13:02:22 GMT 2013
Author: whalley Date: Tue Jan 29 13:02:22 2013 New Revision: 1613 Log: fix big in marcxml formatted causing error when arxiv does not exist 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 Mon Dec 17 10:00:16 2012 (r1612) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/MarcXMLFormatter.java Tue Jan 29 13:02:22 2013 (r1613) @@ -246,7 +246,7 @@ s.append(" <datafield tag=\"786\" ind1=\"\" ind2=\"\">\n"); s.append(" <subfield code=\"w\">"+p.getInspireId()+"</subfield>\n"); s.append(" <subfield code=\"q\">"+"1"+"</subfield>\n"); - s.append(" <subfield code=\"r\">"+p.getArchive().replaceAll("ARXIV","arXiv")+"</subfield>\n"); + if(p.getArchive()!=null) { s.append(" <subfield code=\"r\">"+p.getArchive().replaceAll("ARXIV","arXiv")+"</subfield>\n"); } s.append(" <subfield code=\"h\">"+location+"</subfield>\n"); s.append(" </datafield>\n");
More information about the HepData-svn mailing list |