cleaned up links to marc/catalogue/reserves-entry in circ-needs list.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 7 May 2009 00:35:15 +0000 (00:35 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 7 May 2009 00:35:15 +0000 (00:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@462 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/templates/phys/circlist_for_term.xhtml

index a40caf0..ffc64d7 100644 (file)
@@ -21,19 +21,27 @@ catalogue_pattern = catalogue_pattern % (settings.EVERGREEN_GATEWAY_SERVER, lang
       <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>