|
[HepData-svn] r1506 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pagesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Dec 20 15:47:15 GMT 2011
Author: whalley Date: Tue Dec 20 15:47:15 2011 New Revision: 1506 Log: adding the possibilty to use the Inspire Id in the plotter url Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/PlotImage.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/PlotImage.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/PlotImage.java Fri Dec 16 11:07:23 2011 (r1505) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/PlotImage.java Tue Dec 20 15:47:15 2011 (r1506) @@ -52,7 +52,7 @@ if (context.getCount() > 0) { String ps = context.get(String.class, 0); - Matcher m = Pattern.compile("\\Ahepdata-(p|irn|red)(\\d+)-d(\\d+)-x(lin|log)?(\\d+)-y(lin|log)?([-\\d]+)(_\\d*)?\\.(pdf|png)\\Z").matcher(ps); + Matcher m = Pattern.compile("\\Ahepdata-(p|irn|ins|red)(\\d+)-d(\\d+)-x(lin|log)?(\\d+)-y(lin|log)?([-\\d]+)(_\\d*)?\\.(pdf|png)\\Z").matcher(ps); if (m.matches()) { // Paper _params.put(m.group(1), m.group(2)); @@ -114,6 +114,9 @@ } else if (getQueryParam("irn") != null) { pid = getQueryParam("irn"); qs += "p._spiresId = :pid"; + } else if (getQueryParam("ins") != null) { + pid = getQueryParam("ins"); + qs += "p._inspireId = :pid"; } else if (getQueryParam("red") != null) { pid = getQueryParam("red"); qs += "p._redId = :pid";
More information about the HepData-svn mailing list |