[HepData-svn] r1490 - trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Nov 25 12:04:24 GMT 2011


Author: whalley
Date: Fri Nov 25 12:04:23 2011
New Revision: 1490

Log:
adding code for multiple record display

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	Fri Nov 25 12:03:51 2011	(r1489)
+++ trunk/hepdata-webapp/src/main/resources/cedar/hepdata/webapp/pages/View.tml	Fri Nov 25 12:04:23 2011	(r1490)
@@ -5,11 +5,11 @@
     <h2> Reaction Database Full Record Display</h2>
     View
     <a href="#" t:type="pagelink" t:page="view" t:context="shortContext"><font size="-1">short record</font></a>
-  <t:parameter name="else">
+<t:parameter name="else">
     <h2> Reaction Database Short Record Display</h2>
     View
         <a href="#" t:type="pagelink" t:page="view" t:context="baseContext"><font size="-1">full record</font></a>
-  </t:parameter>
+</t:parameter>
 </t:if>
     or as: 
         <a href="#" t:type="pagelink" t:page="view" t:context="plainContext">plain text</a>, 
@@ -19,6 +19,30 @@
         <a href="#" t:type="pagelink" t:page="view" t:context="rootContext">ROOT</a>, 
         <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/>
+    This record has multiple entries with HepData Ids:  
+    <t:if test="haveMultiple2"> 
+    (
+    <a href="#" t:type="pagelink" t:page="view" t:context="hdpaper1Context">${paper1.hepdataId}</a> 
+    -
+    <a href="#" t:type="pagelink" t:page="view" t:context="hdpaper2Context">${paper2.hepdataId}</a> 
+    )
+    </t:if>
+    <t:if test="haveMultiple3"> 
+    ( 
+    <a href="#" t:type="pagelink" t:page="view" t:context="hdpaper1Context">${paper1.hepdataId}</a> 
+    -
+    <a href="#" t:type="pagelink" t:page="view" t:context="hdpaper2Context">${paper2.hepdataId}</a> 
+    -
+    <a href="#" t:type="pagelink" t:page="view" t:context="hdpaper3Context">${paper3.hepdataId}</a> 
+    )
+    </t:if>
+   </font>
+</t:if>
+
   <t:if test="paper.hepdataId">
     <title>HepData – ${paper.shortName}</title>
 


More information about the HepData-svn mailing list