[HepData-svn] r1739 - trunk/hepdata-model/src/main/java/cedar/hepdata/model

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Feb 11 11:40:58 GMT 2014


Author: watt
Date: Tue Feb 11 11:40:58 2014
New Revision: 1739

Log:
Updating Dataset.java to allow figures in resource area based on RED ID

Modified:
   trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java	Wed Jan 29 15:00:14 2014	(r1738)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Dataset.java	Tue Feb 11 11:40:58 2014	(r1739)
@@ -93,12 +93,17 @@
 
     ////////////////////////////////////////////////////////
 
-    public boolean getHaveFigure() {
+    public boolean getHaveFigureIRN() {
         
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/fig" + getFigureString() + ".png");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/fig" + getFigureString() + ".png");
         return testfile.exists();
     }
 
+    public boolean getHaveFigureRED() {
+        
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/fig" + getFigureString() + ".png");
+        return testfile.exists();
+    }
 
     /** Default constructor. */
     public Dataset() { }


More information about the HepData-svn mailing list