|
[HepData-svn] r1753 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/componentsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Feb 27 12:22:42 GMT 2014
Author: whalley Date: Thu Feb 27 12:22:42 2014 New Revision: 1753 Log: replacing the HepdataId link in the plotting, replacing it with InspireId etc Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Wed Feb 26 17:37:40 2014 (r1752) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/components/DatasetAsHtml.java Thu Feb 27 12:22:42 2014 (r1753) @@ -670,8 +670,13 @@ } String baseurl = _reqGlobals.getRequest().getContextPath(); + String urlid = ""; + if(_dataset.getPaper().getInspireId() != null) { urlid = "/ins"+_dataset.getPaper().getInspireId(); } + else if(_dataset.getPaper().getSpiresId() != null) { urlid = "/irn"+_dataset.getPaper().getSpiresId(); } + else if(_dataset.getPaper().getRedId() != null) { urlid = "/red"+_dataset.getPaper().getRedId() ;} + else { urlid = "/p"+_dataset.getPaper().getId(); } String urlparts = "" - + "/p" + _dataset.getPaper().getId() + + urlid + "/d" + _dataset.getId(); for (int iy = 1; iy <= ny; iy++) { writer.element("td");
More information about the HepData-svn mailing list |