|
[HepData-svn] r1569 - trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pagesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Aug 23 14:46:12 BST 2012
Author: whalley Date: Thu Aug 23 14:46:11 2012 New Revision: 1569 Log: rejig View page to a) stop fails due to no paper abd b) add the DOI to the journal line Modified: trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml 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 Thu Aug 23 14:44:53 2012 (r1568) +++ trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml Thu Aug 23 14:46:11 2012 (r1569) @@ -35,6 +35,7 @@ </head> <body onLoad="replaceHEP('qualifier_class','observable_class','http://hepdata.cedar.ac.uk/resource/dictionary');"> +<t:if test="havePaper"> <t:if test="longFormat"> <h2> Reaction Database Full Record Display</h2> @@ -55,6 +56,8 @@ <a href="#" t:type="pagelink" t:page="view" t:context="matplotlibContext">mpl</a> or <a href="#" t:type="pagelink" t:page="view" t:context="jhepworkContext">jhepwork</a> + + <t:if test="haveMultiple"> <font size="-1"> <br/> @@ -77,8 +80,6 @@ </t:if> </font> </t:if> - - <t:if test="paper.hepdataId"> <title>HepData – ${paper.shortName}</title> <div class="paperbox"> @@ -102,6 +103,7 @@ <br/> <t:if test="paper.firstPublished"> Published in <b>${paper.firstPublished}</b> + (DOI:<a href="http://dx.doi.org/${paper.DOI}">${paper.DOI}</a>) <br/> </t:if> <t:if test="paper.firstErratum"> @@ -286,14 +288,6 @@ </t:if> </div> - - <t:parameter name="else"> - - <title>HepData paper view</title> - <h2>No valid paper could be found with the given ID/IRN</h2> - - </t:parameter> - </t:if> <p class="permalinks"> Permalinks: <a href="#" t:type="pagelink" t:page="view" t:context="hdpaperContext">by HepData ID</a> | @@ -302,6 +296,14 @@ <br/> (Reaction db ID=${paper.id}, RED=${paper.redid}) </p> + + <t:parameter name="else"> + + <title>HepData paper view</title> + <h2>No valid paper could be found with the given ID/IRN</h2> + + </t:parameter> + </t:if> </body> </html>
More information about the HepData-svn mailing list |