[open-ils-commits] r462 - servres/trunk/conifer/templates/phys (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed May 6 20:35:16 EDT 2009


Author: gfawcett
Date: 2009-05-06 20:35:15 -0400 (Wed, 06 May 2009)
New Revision: 462

Modified:
   servres/trunk/conifer/templates/phys/circlist_for_term.xhtml
Log:
cleaned up links to marc/catalogue/reserves-entry in circ-needs list.


Modified: servres/trunk/conifer/templates/phys/circlist_for_term.xhtml
===================================================================
--- servres/trunk/conifer/templates/phys/circlist_for_term.xhtml	2009-05-07 00:27:55 UTC (rev 461)
+++ servres/trunk/conifer/templates/phys/circlist_for_term.xhtml	2009-05-07 00:35:15 UTC (rev 462)
@@ -21,19 +21,27 @@
       <thead>
 	<tr><th>#</th><th>Title</th><th>Author</th><th>Publisher</th><th>PubDate</th></tr>
       </thead>
-      <tbody py:for="resultnum, res in enumerate(w.marc() or {} for w in wanted)"
-	     py:with="dc=to_dublin(res)">
+      <tbody py:for="resultnum, w in enumerate(wanted)"
+	     py:with="res = w.marc() or {}; dc=to_dublin(res)">
 	<tr>
 	  <td>${resultnum+1}.</td>
 	  <td>
 	    ${dc.get('dc:title', '???')}
-	    <a href="javascript:$('#full_${resultnum}').toggle(); void(0);">MARC</a>
-	    <p py:if="res.get('8569')" style="margin: 8px 0; font-size: 90%; color: darkred;">
-	      Electronic resource. <a href="${res.get('856u')}">view</a>
+	    <p style="margin: 8px 0; font-size: 90%; color: darkred;">
+	      <a href="javascript:$('#full_${resultnum}').toggle(); void(0);">MARC</a>
+	      &bull;
+	      <span py:if="res.get('901c')" style="margin: 8px 0; font-size: 90%; color: darkred;">
+		<a href="${catalogue_pattern % res.get('901c')}">Catalogue</a>
+		&bull;
+	      </span>
+	      <span py:if="res.get('901c')" style="margin: 8px 0; font-size: 90%; color: darkred;">
+		<a href="${w.item_url()}">Reserves</a>
+	      </span>
+	      <span py:if="res.get('8569')" style="margin: 8px 0; font-size: 90%; color: darkred;">
+		&bull;
+		<a href="${res.get('856u')}">View Electronic</a>
+	      </span>
 	    </p>
-	    <div py:if="res.get('901c')" style="margin: 8px 0; font-size: 90%; color: darkred;">
-	      <a href="${catalogue_pattern % res.get('901c')}">Title details in catalogue</a>
-	    </div>
 	  </td>
 	  <td py:for="k in dc_keys[1:]">${dc.get(k) or '&mdash;'}</td>
 	</tr>



More information about the open-ils-commits mailing list