]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/parts/record/issues.tt2
00a3ecab599bd77af17b10daf1d93c7482639d4f
[Evergreen.git] / Open-ILS / src / templates / opac / parts / record / issues.tt2
1 <div class='rdetail_extras_div'>
2 [%
3 base_expando = ctx.full_path _ "?expand=issues";
4 FOREACH type IN ctx.holding_summaries.keys;
5     NEXT UNLESS ctx.holding_summaries.$type.size;
6     expanded = CGI.param('expand_holding_type') == type; %]
7     <div class="rdetail-issue-type">
8         <a href="[% base_expando; expanded ? '' : '&amp;expand_holding_type=' _ type; %]#issues">[[% expanded ? '-' : '+' %]]</a>
9         [% ctx.holding_summaries.$type.join(", ") %]
10         [% IF expanded %]
11         <table>
12             [% FOR blob IN ctx.expanded_holdings %]
13             <tr>
14                 <td class="rdetail-issue-issue">[% blob.issuance.label | html %]</td>
15                 [% IF blob.has_units %]
16                 <td class="rdetail-issue-place-hold">
17                     <a href="[% ctx.opac_root %]/place_hold?hold_target=[% blob.issuance.id %]&amp;hold_type=I">[% l("Place Hold") %]</a>
18                 </td>
19                 [% END %]
20             </tr>
21             [% END %]
22         </table>
23         [% END %]
24     </div>
25 [% END %]
26 [% IF ctx.mfhd_summaries.size; %]
27     <div class="rdetail-mfhd-holdings">
28         <table><tbody>
29 [%
30         mfhd = {
31             basic_holdings = l('Volumes'),
32             basic_holdings_add = l('Additional Volume Information'),
33             supplement_holdings = l('Supplements'),
34             supplement_holdings_add = l('Additional Supplement Information'),
35             index_holdings = l('Indexes'),
36             index_holdings_add = l('Additional Index Information'),
37             online = l('Online'),
38             missing = l('Missing'),
39             incomplete = l('Incomplete'),
40         };
41
42         FOREACH serial IN ctx.mfhd_summaries;
43 %]
44             <tr>
45                 <td class="rdetail-mfhd-head" colspan="2">[% l('Holdings summary ([_1])', serial.location) %]</td>
46             </tr>
47 [%
48             FOREACH type IN mfhd.keys;
49                 NEXT UNLESS serial.$type.size;
50 %]
51             <tr>
52                 <td class="rdetail-mfhd-type">[% mfhd.$type %]</td>
53                 <td class="rdetail-mfhd-contents">[% serial.$type.join(', ') %]</td>
54             </tr>
55         [% END %]
56             <tr>
57                 <td class="rdetail-mfhd-foot" colspan="2"> </td>
58             </tr>
59     [% END %]
60         </tbody></table>
61     </div>
62 [% END %]
63 </div>