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";
6 limit = ctx.hold_history_limit;
7 offset = ctx.hold_history_offset;
8 count = ctx.hold_history_ids.size;
11 <h3 class="sr-only">[% l('Holds History') %]</h3>
12 <div id='myopac_holds_div'>
14 <div id="acct_holds_tabs">
16 <a href='[% mkurl('holds',{},['limit','offset']) %]'>[% l("Items on Hold") %]</a>
18 [% IF ebook_api.enabled %]
20 <a href='[% mkurl('ebook_holds', {}, ['limit','offset','available','sort','sort_type']) %]'>[% l("E-Items on Hold") %]</a>
23 <a href='[% mkurl('ebook_holds_ready', {}, ['limit','offset','available','sort','sort_type']) %]'>[% l("E-Items Ready for Checkout") %]</a>
26 <div class="align selected">
27 <a href="#">[% l("Holds History") %]</a>
31 <div class="header_middle">
32 <span style="float:left;">[% l("Previously Held Items") %]</span>
33 <span class='float-left' style='padding-left: 10px;'>
34 <a href='[% mkurl('hold_history', {limit => limit,offset => (offset - limit)}) %]'
35 [% IF offset == 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">◄</span>[% l('Previous') %]</a>
36 [% IF offset > 0 || count > limit;
38 WHILE curpage * limit < count;
39 IF curpage * limit == offset;
43 <a href='[% mkurl('hold_history', {limit => limit, offset => (curpage * limit)}) %]'>[% curpage + 1 %]</a>
45 curpage = curpage + 1;
48 <a href='[% mkurl('hold_history', {limit => limit, offset => (offset + limit)}) %]'
49 [% IF count <= limit + offset %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">►</span></a>
51 <span style="float:right;">
52 <a class="hide_me" href="#">[% l('Export List') %]</a>
55 <div class="clear-both"></div>
58 [% IF ctx.holds.size && ctx.holds.size < 1 %]
59 <div class="warning_box">
60 <big><strong>[% l('No holds found.') %]</strong></big>
63 <table id='acct_holds_hist_header' class='table_no_border_space table_no_cell_pad' title="[% l('History of items on hold') %]">
66 <td><span>[% l('Title') %]</span></td>
67 <td><span>[% l('Author') %]</span></td>
68 <td> <span>[% l('Format') %]</span></td>
69 <td><span>[% l('Pickup Location') %]</span> </td>
70 <td><span>[% l('Status') %]</span></td>
73 <tbody id='holds_temp_parent'>
74 [% FOR hold IN ctx.holds;
75 attrs = {marc_xml => hold.marc_xml};
76 PROCESS get_marc_attrs args=attrs;
77 ahr = hold.hold.hold %]
79 <tr name="acct_holds_temp" class="acct_holds_temp">
83 <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% attrs.title | html %]</a>
88 <a href="[% mkurl(ctx.opac_root _ '/results',
89 {qtype => author, query => attrs.author.replace('[,\.:;]', '')}
90 ) %]">[% attrs.author | html %]</a>
94 <div class='format_icon'>
95 [% IF attrs.format_icon %]
96 <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" />
101 [% ctx.get_aou(ahr.pickup_lib).name | html %]
104 <div name="acct_holds_status">
105 [% PROCESS get_hold_status hold=hold; %]