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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Apr 15 12:52:52 BST 2014


Author: whalley
Date: Tue Apr 15 12:52:52 2014
New Revision: 1778

Log:
adding DOI journal link to permalinks

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/DoiData.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	Mon Apr 14 16:33:44 2014	(r1777)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/DoiData.java	Tue Apr 15 12:52:52 2014	(r1778)
@@ -1,5 +1,4 @@
-package cedar.hepdata.webapp.pages;
-
+package cedar.hepdata.webapp.pages; 
 import cedar.hepdata.model.*;
 import cedar.hepdata.util.*;
 import cedar.hepdata.xml.*;
@@ -30,6 +29,8 @@
     // @Inject
     // private org.hibernate.Session _session;
 
+    @InjectPage
+    private SavePlot saveplot;
 
     // Decode URL context into the params map
     public StreamResponse onActivate(EventContext context) {
@@ -37,7 +38,7 @@
         parseBaseViewContext(context);
 
         // Handle pattern parsing separately
-        Pattern patt = Pattern.compile("\\A" + "(short|long|full|plain.txt|yoda|aida|pyroot.py|root|mpl|bdms|hepml|scavis.py|input)" + "\\Z",
+        Pattern patt = Pattern.compile("\\A" + "(short|long|full|plain.txt|yoda|aida|pyroot.py|root|mpl|bdms|hepml|scavis.py|input|marcxml)" + "\\Z",
                                        Pattern.CASE_INSENSITIVE);
         Pattern patt2 = Pattern.compile("\\A" + "(irn\\d+)" + "\\Z",Pattern.CASE_INSENSITIVE);
         String stype = "i";
@@ -539,5 +540,8 @@
         }
         return line;
     }
-
+    
+    public boolean getHaveCurrentPlot(){
+        return saveplot.getHaveSaved();
+    } 
 }


More information about the HepData-svn mailing list