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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed May 2 16:08:13 BST 2012


Author: whalley
Date: Wed May  2 16:08:13 2012
New Revision: 1538

Log:
increasing number of separate link possibilities to 4

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	Wed May  2 16:06:56 2012	(r1537)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java	Wed May  2 16:08:13 2012	(r1538)
@@ -256,6 +256,14 @@
         File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description2");
         return testfile.exists();
     }
+    public boolean getHaveExtraIRNDesc3() {
+        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description3");
+        return testfile.exists();
+    }
+    public boolean getHaveExtraIRNDesc4() {
+        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description4");
+        return testfile.exists();
+    }
     
     public boolean getHaveExtraRED() {
         String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/index.shtml";
@@ -274,6 +282,14 @@
         File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description2");
         return testfile.exists();
     }
+    public boolean getHaveExtraREDDesc3() {
+        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description3");
+        return testfile.exists();
+    }
+    public boolean getHaveExtraREDDesc4() {
+        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description4");
+        return testfile.exists();
+    }
 
     public String getShowExtraIRNDesc() {
         String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description";
@@ -335,7 +351,55 @@
         }
         return line;
     }
-    public String getShowExtraREDDesc() {
+     public String getShowExtraIRNDesc3() {
+        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description3";
+        File testfile = new File(filename);
+        String line = "";
+        if(testfile.exists()){
+            try {
+               BufferedReader in = new BufferedReader(new FileReader(filename));
+               line = in.readLine();
+               } catch (IOException e){}
+        }
+        return line;
+    }
+    public String getShowExtraIRNLink3() {
+        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link3";
+        File testfile = new File(filename);
+        String line = "";
+        if(testfile.exists()){
+            try {
+               BufferedReader in = new BufferedReader(new FileReader(filename));
+               line = in.readLine();
+               } catch (IOException e){}
+        }
+        return line;
+    }
+     public String getShowExtraIRNDesc4() {
+        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description4";
+        File testfile = new File(filename);
+        String line = "";
+        if(testfile.exists()){
+            try {
+               BufferedReader in = new BufferedReader(new FileReader(filename));
+               line = in.readLine();
+               } catch (IOException e){}
+        }
+        return line;
+    }
+    public String getShowExtraIRNLink4() {
+        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link4";
+        File testfile = new File(filename);
+        String line = "";
+        if(testfile.exists()){
+            try {
+               BufferedReader in = new BufferedReader(new FileReader(filename));
+               line = in.readLine();
+               } catch (IOException e){}
+        }
+        return line;
+    }
+   public String getShowExtraREDDesc() {
         String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description";
         File testfile = new File(filename);
         String line = "";
@@ -395,5 +459,53 @@
         }
         return line;
     }
+    public String getShowExtraREDDesc3() {
+        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description3";
+        File testfile = new File(filename);
+        String line = "";
+        if(testfile.exists()){
+            try {
+               BufferedReader in = new BufferedReader(new FileReader(filename));
+               line = in.readLine();
+               } catch (IOException e){}
+        }
+        return line;
+    }
+    public String getShowExtraREDLink3() {
+        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link3";
+        File testfile = new File(filename);
+        String line = "";
+        if(testfile.exists()){
+            try {
+               BufferedReader in = new BufferedReader(new FileReader(filename));
+               line = in.readLine();
+               } catch (IOException e){}
+        }
+        return line;
+    }
+    public String getShowExtraREDDesc4() {
+        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description4";
+        File testfile = new File(filename);
+        String line = "";
+        if(testfile.exists()){
+            try {
+               BufferedReader in = new BufferedReader(new FileReader(filename));
+               line = in.readLine();
+               } catch (IOException e){}
+        }
+        return line;
+    }
+    public String getShowExtraREDLink4() {
+        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link4";
+        File testfile = new File(filename);
+        String line = "";
+        if(testfile.exists()){
+            try {
+               BufferedReader in = new BufferedReader(new FileReader(filename));
+               line = in.readLine();
+               } catch (IOException e){}
+        }
+        return line;
+    }
 
 }


More information about the HepData-svn mailing list