|
[HepData-svn] r1570 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formatsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Aug 31 12:50:56 BST 2012
Author: whalley Date: Fri Aug 31 12:50:56 2012 New Revision: 1570 Log: adding Title to bdms formatter output + cleanup Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java Thu Aug 23 14:46:11 2012 (r1569) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/BdmsFormatter.java Fri Aug 31 12:50:56 2012 (r1570) @@ -19,6 +19,8 @@ StringBuffer s = new StringBuffer(); s.append("SC = " + p.getShortName() + ";" + " RED = " + p.getRedId() + ";\n"); + if(p.getTitle()!=null) s.append("TITLE = " + p.getTitle() + ";\n"); + for (int n=1; n<4; n++){ if(p.getReferenceString(n) != null){ s.append(p.getReferenceString(n) + "\n"); } else{ break; } @@ -106,9 +108,8 @@ String yheader = ""; if(yax.getHeader() != null){ yheader = yax.getHeader(); - System.out.println("N = YN; V = " + yheader + " "); - if(n==nyax-1) { storelist.add("N = YN; V = " + yheader + ";\n"); } - else { storelist.add("N = YN; V = " + yheader + ";"); } + if(n==nyax-1) { storelist.add("N = YN; V = " + yheader + ";\n"); } + else { storelist.add("N = YN; V = " + yheader + ";"); } nyhead=1; }
More information about the HepData-svn mailing list |