]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/myopac/holds.tt2
show some holds
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / myopac / holds.tt2
1 [% BLOCK html_head %]
2 <style>
3     table { width: 100%; text-align: center; padding: 20px; margin-top: 30px; }
4     table { border-collapse: collapse; }
5     table { padding: 3px; border-bottom: 1px solid #ddd; text-align: left;}
6     table tr:nth-child(odd) { background-color:#ded; }
7 </style>
8 [% END %]
9
10 [% USE date %]
11 [% PROCESS "default/opac/common.tt2" %]
12 [% WRAPPER "default/opac/base.tt2" %]
13 [% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "holds" %]
14 <table>
15     <thead>
16         <tr>
17             <th>Title</th>
18             <th>Author</th>
19             <th>Formats</th>
20             <th>Pickup Location</th>
21             <th>Status</th>
22             <th>Active</th>
23             <th>Activate on...</th>
24             <th>Expiration Date</th>
25             <th>Select</th>
26             <th>Edit</th>
27         </tr>
28     </thead>
29     <tbody>
30         [% FOR hold IN ctx.holds %]
31             [% attrs = {marc_xml => hold.marc_xml}; %]
32             [% PROCESS get_marc_attrs args=attrs; %]
33         <tr>
34             <td>[% attrs.title %]</td>
35             <td>[% attrs.author %]</td>
36             <td>[% hold.hold.hold.holdable_formats %]<!-- see _myOPACFleshHoldTitle(), search for "mods_formats" in skin/default/js/myopac.js; holdable_formats is wrong --></td>
37             <td>[% ctx.find_aou(hold.hold.hold.pickup_lib).name %]</td>
38             <td>[% hold.hold.hold.status %]<!-- see myOShowHoldStatus() in skin/default/js/myopac.js --></td>
39             <td></td>
40             <td></td>
41             <td>[% hold.hold.hold.expire_time %]</td>
42             <td><em>XXX TODO</em></td>
43             <td><em>XXX TODO</em></td>
44         </tr>
45         [% END %]
46     </tbody>
47 </table>
48
49 [% END %]