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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Nov 17 10:03:32 GMT 2009


Author: whalley
Date: Tue Nov 17 10:03:32 2009
New Revision: 1316

Log:
making irn the default view number

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

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ViewBase.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ViewBase.java	Tue Nov 17 08:52:14 2009	(r1315)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ViewBase.java	Tue Nov 17 10:03:32 2009	(r1316)
@@ -100,6 +100,12 @@
                 continue;
             }
 
+            m = Pattern.compile("\\A" + "" + "(\\d+)\\Z").matcher(ps);
+            if (m.matches()) {
+                _params.put("irn", m.group(1));
+                continue;
+            }
+
             m = Pattern.compile("\\A" + "red" + "(\\d+)\\Z").matcher(ps);
             if (m.matches()) {
                 _params.put("red", m.group(1));


More information about the HepData-svn mailing list