[HepData-svn] r1439 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Feb 15 10:48:01 GMT 2011


Author: whalley
Date: Tue Feb 15 10:48:01 2011
New Revision: 1439

Log:
introducing extra [Cresource files

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java	Tue Feb  8 15:23:39 2011	(r1438)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java	Tue Feb 15 10:48:01 2011	(r1439)
@@ -233,4 +233,15 @@
     }
 
 
+    public boolean getShowExtra() {
+        return getLongFormat();
+    }
+
+    public boolean getHaveExtra() {
+        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/index.html";
+        System.out.println("\n" + filename + "\n");
+        File testfile = new File(filename);
+        return testfile.exists();
+    }
+
 }


More information about the HepData-svn mailing list