show some circs in myopac -> items out
authorsenator <lebbeous@esilibrary.com>
Wed, 26 Jan 2011 16:20:05 +0000 (11:20 -0500)
committersenator <lebbeous@esilibrary.com>
Wed, 26 Jan 2011 16:20:05 +0000 (11:20 -0500)
Open-ILS/web/templates/default/opac/myopac/circs.tt2

index 9e80139..1ca1a4d 100644 (file)
@@ -7,8 +7,10 @@
 </style>
 [% END %]
 
+[% PROCESS "default/opac/common.tt2" %]
 [% WRAPPER "default/opac/base.tt2" %]
 [% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "circs" %]
+[% USE date %]
 <table>
     <thead>
         <tr>
             <th>Author</th>
             <th>Due Date</th>
             <th>Renewals Remaining</th>
-            <th>Renewals Remaining</th>
+            <th>Select</th>
         </tr>
     </thead>
+    <tbody>
+        [% FOR circ IN ctx.circs %]
+            [% attrs = {marc_xml => circ.marc_xml}; %]
+            [% PROCESS get_marc_attrs args=attrs; %]
+            <tr>
+                <td>[% attrs.title %]</td>
+                <td>[% attrs.author %]</td>
+                <td>[% date.format(ctx.parse_datetime(circ.circ.due_date),'%Y-%m-%d') %]</td>
+                <td><em>[% circ.circ.renewal_remaining %]</em></td>
+                <td><em>XXX TODO</em></td>
+            </tr>
+        [% END %]
+    </tbody>
 </table>
 
 [% END %]