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 <div class="align selected">
19 <a href="#">[% l("Holds History") %]</a>
23 <div class="header_middle">
24 <span style="float:left;">[% l("Previously Held Items") %]</span>
25 <span class='float-left' style='padding-left: 10px;'>
26 <a href='[% mkurl('hold_history', {limit => limit,offset => (offset - limit)}) %]'
27 [% IF offset == 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">◄</span>[% l('Previous') %]</a>
28 [% IF offset > 0 || count > limit;
30 WHILE curpage * limit < count;
31 IF curpage * limit == offset;
35 <a href='[% mkurl('hold_history', {limit => limit, offset => (curpage * limit)}) %]'>[% curpage + 1 %]</a>
37 curpage = curpage + 1;
40 <a href='[% mkurl('hold_history', {limit => limit, offset => (offset + limit)}) %]'
41 [% IF count <= limit + offset %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">►</span></a>
43 <span style="float:right;">
44 <a class="hide_me" href="#">[% l('Export List') %]</a>
47 <div class="clear-both"></div>
50 [% IF ctx.holds.size && ctx.holds.size < 1 %]
51 <div class="warning_box">
52 <big><strong>[% l('No holds found.') %]</strong></big>
55 <table id='acct_holds_hist_header' class='table_no_border_space table_no_cell_pad' title="[% l('History of items on hold') %]">
58 <td><span>[% l('Title') %]</span></td>
59 <td><span>[% l('Author') %]</span></td>
60 <td> <span>[% l('Format') %]</span></td>
61 <td><span>[% l('Pickup Location') %]</span> </td>
62 <td><span>[% l('Status') %]</span></td>
65 <tbody id='holds_temp_parent'>
66 [% FOR hold IN ctx.holds;
67 attrs = {marc_xml => hold.marc_xml};
68 PROCESS get_marc_attrs args=attrs;
69 ahr = hold.hold.hold %]
71 <tr name="acct_holds_temp" class="acct_holds_temp">
75 <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% attrs.title | html %]</a>
80 <a href="[% mkurl(ctx.opac_root _ '/results',
81 {qtype => author, query => attrs.author.replace('[,\.:;]', '')}
82 ) %]">[% attrs.author | html %]</a>
86 <div class='format_icon'>
87 [% IF attrs.format_icon %]
88 <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" />
93 [% ctx.get_aou(ahr.pickup_lib).name | html %]
96 <div name="acct_holds_status">
97 [% PROCESS get_hold_status hold=hold; %]