]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/parts/record/issues.tt2
TPac; hold success confirmation; redirect repairs
[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="[% mkurl(ctx.opac_root _ '/place_hold', 
18                         {hold_target => blob.issuance.id, hold_type => 'I', hold_source_page => mkurl()}) %]">[% l("Place Hold") %]</a>
19                 </td>
20                 [% END %]
21             </tr>
22             [% END %]
23         </table>
24         [% END %]
25     </div>
26 [% END %]
27 [% IF ctx.mfhd_summaries.size; %]
28     <div class="rdetail-mfhd-holdings">
29         <table><tbody>
30 [%
31         mfhd = {
32             basic_holdings = l('Volumes'),
33             basic_holdings_add = l('Additional Volume Information'),
34             supplement_holdings = l('Supplements'),
35             supplement_holdings_add = l('Additional Supplement Information'),
36             index_holdings = l('Indexes'),
37             index_holdings_add = l('Additional Index Information'),
38             online = l('Online'),
39             missing = l('Missing'),
40             incomplete = l('Incomplete'),
41         };
42
43         FOREACH serial IN ctx.mfhd_summaries;
44 %]
45             <tr>
46                 <td class="rdetail-mfhd-head" colspan="2">[% l('Holdings summary ([_1])', serial.location) %]</td>
47             </tr>
48 [%
49             FOREACH type IN mfhd.keys;
50                 NEXT UNLESS serial.$type.size;
51 %]
52             <tr>
53                 <td class="rdetail-mfhd-type">[% mfhd.$type %]</td>
54                 <td class="rdetail-mfhd-contents">[% serial.$type.join(', ') %]</td>
55             </tr>
56         [% END %]
57             <tr>
58                 <td class="rdetail-mfhd-foot" colspan="2"> </td>
59             </tr>
60     [% END %]
61         </tbody></table>
62     </div>
63 [% END %]
64 </div>