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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Dec 16 11:07:23 GMT 2011


Author: whalley
Date: Fri Dec 16 11:07:23 2011
New Revision: 1505

Log:
moving Rivet code to Paper

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java	Fri Dec 16 11:06:49 2011	(r1504)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java	Fri Dec 16 11:07:23 2011	(r1505)
@@ -269,40 +269,6 @@
        }
     }
     
-    public boolean getHaveRivet(){
-        boolean rtn = false;
-        if (_paper.getInspireId() != null){
-            File fi = new File("/home/whalley/rivet/" + _paper.getInspireId());
-            if(fi.exists()) { rtn = true; }
-        }
-        if (_paper.getSpiresId() != null){
-            File fs = new File("/home/whalley/rivet/" + _paper.getSpiresId());
-            if(fs.exists()) { rtn = true; }
-        }
-        return rtn;
-    }
-    
-    public String getRivetName(){
-        String str="";
-        if(_paper.getInspireId() != null){
-            String filename = "/home/whalley/rivet/" + _paper.getInspireId();
-            try {
-                BufferedReader in = new BufferedReader(new FileReader(filename));
-                String line;
-                while((line=in.readLine()) != null) {str=line;}
-            } catch (IOException e) {}
-        }
-        if(_paper.getSpiresId() != null){
-            String filename = "/home/whalley/rivet/" + _paper.getSpiresId();
-            try {
-                BufferedReader in = new BufferedReader(new FileReader(filename));
-                String line;
-                while((line=in.readLine()) != null) {str=line;}
-            } catch (IOException e) {}
-        }
-        return str;
-    }
-
     public List<String> getPaperIdContext() {
         List<String> ctx = new Vector<String>();
         ctx.add("p" + Long.toString(_paper.getId()));


More information about the HepData-svn mailing list