]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/default/opac/parts/record/issues.tt2
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac...
[working/Evergreen.git] / Open-ILS / src / templates / default / 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 </div>