|
[HepData-svn] r1435 - trunk/hepdata-model/src/main/java/cedar/hepdata/modelblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Jan 31 11:45:56 GMT 2011
Author: whalley Date: Mon Jan 31 11:45:56 2011 New Revision: 1435 Log: adding method to get Erratm references Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java ============================================================================== --- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java Mon Jan 24 12:37:45 2011 (r1434) +++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Paper.java Mon Jan 31 11:45:56 2011 (r1435) @@ -172,7 +172,17 @@ } return firstpublished; } - + public String getFirstErratum() { +// String firsterratum = "Not published"; + String firsterratum = null; + for (Reference ref : getReferences()) { + if (ref.getType().startsWith("ERR")) { + firsterratum = ref.getDescription(); + break; + } + } + return firsterratum; + } public String getFirstPreprint() { // String firstpreprint = "Not known";
More information about the HepData-svn mailing list |