1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/misc_util.tt2";
3 PROCESS "opac/parts/hold_status.tt2";
4 WRAPPER "opac/parts/myopac/base.tt2";
5 myopac_page = "hold_history";
7 limit = ctx.hold_history_limit;
8 offset = ctx.hold_history_offset;
9 count = ctx.hold_history_ids.size;
12 <h3>[% l('Holds History') %]</h3>
13 <div id='myopac_holds_div'>
18 [% IF offset != 0 %]<a href='[% mkurl('hold_history', {limit => limit,offset => (offset - limit)}) %]'
19 ><span class="np_nav_link classic_link btn btn-action">◄[% l('Previous') %]</span></a> [% END %]
21 [% IF offset > 0 || count > limit; curpage = 0; WHILE curpage * limit < count; IF curpage * limit == offset; %]
22 <span class="np_nav_link classic_link btn btn-action disabled">[% curpage + 1 %]</span>
24 <a href='[% mkurl('hold_history', {limit => limit, offset => (curpage * limit)}) %]' class="np_nav_link classic_link btn btn-action">[% curpage + 1 %]</a>
25 [%- END; curpage = curpage + 1; END; END %]
29 [% IF count > limit + offset %]<a href='[% mkurl('hold_history', {limit => limit, offset => (offset + limit)}) %]'
30 ><span class="np_nav_link classic_link btn btn-action">[% l('Next') %]►</span></a>[% END %]
36 <p style="padding-left:5px;" class='error'>
37 [% IF ctx.hold_suspend_post_capture; l('One or more holds could not be suspended because the item is at (or en route to) the pickup library.'); END; %]
39 <p style="float:right;">
40 <a class="hide_me" href="#">[% l('Export List') %]</a>
45 [% IF ctx.holds.size && ctx.holds.size < 1 %]
46 <div class="warning_box">
47 <big><strong>[% l('No holds found.') %]</strong></big>
50 <table id='acct_holds_hist_header' class='table table-hover table-bordered miniTable holdHistoryTable' title="[% l('History of items on hold') %]">
53 <th><span>[% l('Title') %]</span></th>
54 <th><span>[% l('Author') %]</span></th>
55 <th> <span>[% l('Format') %]</span></th>
56 <th><span>[% l('Pickup Location') %]</span> </th>
57 <th><span>[% l('Status') %]</span></th>
61 [% FOR hold IN ctx.holds;
62 attrs = {marc_xml => hold.marc_xml};
63 PROCESS get_marc_attrs args=attrs;
64 ahr = hold.hold.hold %]
69 <span class="sr-only">Title</span>
71 <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% attrs.title | html %]</a>
75 [% IF attrs.author; %]
76 <span class="sr-only">Author</span>
79 <a href="[% mkurl(ctx.opac_root _ '/results',
80 {qtype => author, query => attrs.author.replace('[,\.:;]', '')}
81 ) %]">[% attrs.author | html %]</a>
88 [% IF attrs.format_icon %]
89 <img alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %][% ctx.cache_key %]" />
91 <span>[% attrs.format_label | html %]</span>
93 <span class="sr-only">Format [% attrs.format_label | html %]</span>
96 <span class="sr-only">Pickup Location</span>
97 [% ctx.get_aou(ahr.pickup_lib).name | html %]
100 <span class="sr-only">Hold Status</span>
101 <div> [% PROCESS get_hold_status hold=hold; %]