|
[HepData-svn] r1547 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/componentsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu May 31 10:35:37 BST 2012
Author: whalley Date: Thu May 31 10:35:37 2012 New Revision: 1547 Log: tweaks to handle records with Axis errors Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Thu May 31 10:35:17 2012 (r1546) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Thu May 31 10:35:37 2012 (r1547) @@ -158,7 +158,14 @@ if(comment.startsWith(". :")){ comment = comment.substring(3); } - storelist.add(comment); + if(!comment.startsWith("Axis error")){ + storelist.add(comment); + } else{ + comment=comment.replaceFirst("Axis","Axis("+y.getId().toString()+")"); + writer.write(comment); + writer.element("br"); + writer.end(); + } } for (Property property : y.getProperties()) { j++;
More information about the HepData-svn mailing list |