|
[HepData-svn] r1309 - in trunk/hepdata-webapp/src/main: java/cedar/hepdata/webapp/pages resources/cedar/hepdata/webapp/pagesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Nov 10 10:48:31 GMT 2009
Author: whalley Date: Tue Nov 10 10:48:31 2009 New Revision: 1309 Log: a few tweaks to systematic error display Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java Tue Nov 10 10:29:12 2009 (r1308) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/View.java Tue Nov 10 10:48:31 2009 (r1309) @@ -17,6 +17,7 @@ import org.hibernate.criterion.*; import java.util.*; import java.util.regex.*; +import java.io.File; public class View extends ViewBase { @@ -167,5 +168,11 @@ return getLongFormat(); } + public boolean getHaveSys() { + String filename = "/home/whalley/systematics/files/" + getPaper().getSpiresId() + ".sys"; + File testfile = new File(filename); + return testfile.exists(); + } + } Modified: trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml ============================================================================== --- trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml Tue Nov 10 10:29:12 2009 (r1308) +++ trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml Tue Nov 10 10:48:31 2009 (r1309) @@ -58,12 +58,14 @@ </p> <t:if test="showSys"> - <h4 class="datasettitle"> - Additional Systematic Errors and Comments - </h4> - <div class="systematics"> - <t:displaySystematics p="paper" /> - </div> + <t:if test="haveSys"> + <h4 class="datasettitle"> + Additional Systematic Errors and Comments + </h4> + <div class="systematics"> + <t:displaySystematics p="paper" /> + </div> + </t:if> </t:if> <t:if test="isMultiPage">
More information about the HepData-svn mailing list |