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>
25 <a href='[% mkurl('hold_history', {limit => limit, offset => (curpage * limit)}) %]' class="np_nav_link classic_link btn btn-action">[% curpage + 1 %]</a>
26 [%- END; curpage = curpage + 1; END; END %]
30 [% IF count > limit + offset %]<a href='[% mkurl('hold_history', {limit => limit, offset => (offset + limit)}) %]'
31 ><span class="np_nav_link classic_link btn btn-action">[% l('Next') %]►</span></a>[% END %]
37 <p style="padding-left:5px;" class='error'>
38 [% 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; %]
40 <p style="float:right;">
41 <a class="hide_me" href="#">[% l('Export List') %]</a>
46 [% IF ctx.holds.size && ctx.holds.size < 1 %]
47 <div class="warning_box">
48 <big><strong>[% l('No holds found.') %]</strong></big>
51 <table id='acct_holds_hist_header' class='table table-hover table-bordered miniTable holdHistoryTable' title="[% l('History of items on hold') %]">
54 <th><span>[% l('Title') %]</span></th>
55 <th><span>[% l('Author') %]</span></th>
56 <th> <span>[% l('Format') %]</span></th>
57 <th><span>[% l('Pickup Location') %]</span> </th>
58 <th><span>[% l('Status') %]</span></th>
62 [% FOR hold IN ctx.holds;
63 attrs = {marc_xml => hold.marc_xml};
64 PROCESS get_marc_attrs args=attrs;
65 ahr = hold.hold.hold %]
70 <span class="sr-only">Title</span>
72 <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% attrs.title | html %]</a>
76 [% IF attrs.author; %]
77 <span class="sr-only">Author</span>
80 <a href="[% mkurl(ctx.opac_root _ '/results',
81 {qtype => author, query => attrs.author.replace('[,\.:;]', '')}
82 ) %]">[% attrs.author | html %]</a>
89 [% IF attrs.format_icon %]
90 <img alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %][% ctx.cache_key %]" />
92 <span>[% attrs.format_label | html %]</span>
94 <span class="sr-only">Format [% attrs.format_label | html %]</span>
97 <span class="sr-only">Pickup Location</span>
98 [% ctx.get_aou(ahr.pickup_lib).name | html %]
101 <span class="sr-only">Hold Status</span>
102 <div> [% PROCESS get_hold_status hold=hold; %]