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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Nov 27 14:30:44 GMT 2013


Author: whalley
Date: Wed Nov 27 14:30:44 2013
New Revision: 1716

Log:
moving links to the resource directory from whalley to hepdata

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/DoiData.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/DoiData.java	Wed Nov 27 11:16:57 2013	(r1715)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/DoiData.java	Wed Nov 27 14:30:44 2013	(r1716)
@@ -258,60 +258,60 @@
     }
 
     public boolean getHaveExtraIRN() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/index.html";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/index.html";
         File testfile = new File(filename);
         return testfile.exists();
     }
     
     public boolean getHaveExtraIRNDesc() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description");
         return testfile.exists();
     }
     public boolean getHaveExtraIRNDesc1() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description1");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description1");
         return testfile.exists();
     }
     public boolean getHaveExtraIRNDesc2() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description2");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description2");
         return testfile.exists();
     }
     public boolean getHaveExtraIRNDesc3() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description3");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description3");
         return testfile.exists();
     }
     public boolean getHaveExtraIRNDesc4() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description4");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description4");
         return testfile.exists();
     }
     
     public boolean getHaveExtraRED() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/index.shtml";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/index.shtml";
         File testfile = new File(filename);
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description");
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc1() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description1");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description1");
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc2() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description2");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description2");
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc3() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description3");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description3");
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc4() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description4");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description4");
         return testfile.exists();
     }
 
     public String getShowExtraIRNDesc() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -323,7 +323,7 @@
         return line;
     }
     public String getShowExtraIRNDesc1() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description1";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description1";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -335,7 +335,7 @@
         return line;
     }
     public String getShowExtraIRNLink1() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link1";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/link1";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -347,7 +347,7 @@
         return line;
     }
     public String getShowExtraIRNDesc2() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description2";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description2";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -359,7 +359,7 @@
         return line;
     }
     public String getShowExtraIRNLink2() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link2";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/link2";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -371,7 +371,7 @@
         return line;
     }
      public String getShowExtraIRNDesc3() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description3";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description3";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -383,7 +383,7 @@
         return line;
     }
     public String getShowExtraIRNLink3() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link3";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/link3";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -395,7 +395,7 @@
         return line;
     }
      public String getShowExtraIRNDesc4() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description4";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description4";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -407,7 +407,7 @@
         return line;
     }
     public String getShowExtraIRNLink4() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link4";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/link4";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -419,7 +419,7 @@
         return line;
     }
    public String getShowExtraREDDesc() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -431,7 +431,7 @@
         return line;
     }
     public String getShowExtraREDDesc1() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description1";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description1";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -443,7 +443,7 @@
         return line;
     }
     public String getShowExtraREDLink1() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link1";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/link1";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -455,7 +455,7 @@
         return line;
     }
     public String getShowExtraREDDesc2() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description2";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description2";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -467,7 +467,7 @@
         return line;
     }
     public String getShowExtraREDLink2() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link2";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/link2";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -479,7 +479,7 @@
         return line;
     }
     public String getShowExtraREDDesc3() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description3";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description3";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -491,7 +491,7 @@
         return line;
     }
     public String getShowExtraREDLink3() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link3";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/link3";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -503,7 +503,7 @@
         return line;
     }
     public String getShowExtraREDDesc4() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description4";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description4";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -515,7 +515,7 @@
         return line;
     }
     public String getShowExtraREDLink4() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link4";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/link4";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){

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 Nov 27 11:16:57 2013	(r1715)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java	Wed Nov 27 14:30:44 2013	(r1716)
@@ -270,60 +270,60 @@
     }
 
     public boolean getHaveExtraIRN() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/index.html";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/index.html";
         File testfile = new File(filename);
         return testfile.exists();
     }
     
     public boolean getHaveExtraIRNDesc() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description");
         return testfile.exists();
     }
     public boolean getHaveExtraIRNDesc1() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description1");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description1");
         return testfile.exists();
     }
     public boolean getHaveExtraIRNDesc2() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description2");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description2");
         return testfile.exists();
     }
     public boolean getHaveExtraIRNDesc3() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description3");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description3");
         return testfile.exists();
     }
     public boolean getHaveExtraIRNDesc4() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getSpiresId() + "/description4");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getSpiresId() + "/description4");
         return testfile.exists();
     }
     
     public boolean getHaveExtraRED() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/index.shtml";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/index.shtml";
         File testfile = new File(filename);
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description");
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc1() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description1");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description1");
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc2() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description2");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description2");
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc3() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description3");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description3");
         return testfile.exists();
     }
     public boolean getHaveExtraREDDesc4() {
-        File testfile = new File("/home/whalley/resource/" + getPaper().getRedId() + "/description4");
+        File testfile = new File("/home/hepdata/resource/" + getPaper().getRedId() + "/description4");
         return testfile.exists();
     }
 
     public String getShowExtraIRNDesc() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -335,7 +335,7 @@
         return line;
     }
     public String getShowExtraIRNDesc1() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description1";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description1";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -347,7 +347,7 @@
         return line;
     }
     public String getShowExtraIRNLink1() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link1";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/link1";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -359,7 +359,7 @@
         return line;
     }
     public String getShowExtraIRNDesc2() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description2";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description2";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -371,7 +371,7 @@
         return line;
     }
     public String getShowExtraIRNLink2() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link2";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/link2";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -383,7 +383,7 @@
         return line;
     }
      public String getShowExtraIRNDesc3() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description3";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description3";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -395,7 +395,7 @@
         return line;
     }
     public String getShowExtraIRNLink3() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link3";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/link3";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -407,7 +407,7 @@
         return line;
     }
      public String getShowExtraIRNDesc4() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/description4";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/description4";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -419,7 +419,7 @@
         return line;
     }
     public String getShowExtraIRNLink4() {
-        String filename = "/home/whalley/resource/" + getPaper().getSpiresId() + "/link4";
+        String filename = "/home/hepdata/resource/" + getPaper().getSpiresId() + "/link4";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -431,7 +431,7 @@
         return line;
     }
    public String getShowExtraREDDesc() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -443,7 +443,7 @@
         return line;
     }
     public String getShowExtraREDDesc1() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description1";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description1";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -455,7 +455,7 @@
         return line;
     }
     public String getShowExtraREDLink1() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link1";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/link1";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -467,7 +467,7 @@
         return line;
     }
     public String getShowExtraREDDesc2() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description2";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description2";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -479,7 +479,7 @@
         return line;
     }
     public String getShowExtraREDLink2() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link2";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/link2";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -491,7 +491,7 @@
         return line;
     }
     public String getShowExtraREDDesc3() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description3";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description3";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -503,7 +503,7 @@
         return line;
     }
     public String getShowExtraREDLink3() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link3";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/link3";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -515,7 +515,7 @@
         return line;
     }
     public String getShowExtraREDDesc4() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/description4";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/description4";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){
@@ -527,7 +527,7 @@
         return line;
     }
     public String getShowExtraREDLink4() {
-        String filename = "/home/whalley/resource/" + getPaper().getRedId() + "/link4";
+        String filename = "/home/hepdata/resource/" + getPaper().getRedId() + "/link4";
         File testfile = new File(filename);
         String line = "";
         if(testfile.exists()){


More information about the HepData-svn mailing list