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;
10 <div id='myopac_holds_div'>
12 <div id="acct_holds_tabs">
14 <a href='[% mkurl('holds') %]'>[% l("Items on Hold") %]</a>
16 <div class="align selected">
17 <a href="#">[% l("Holds History") %]</a>
21 <div class="header_middle">
22 <span style="float:left;">[% l("Previously Held Items") %]</span>
23 <span class='float-left' style='padding-left: 10px;'>
24 <a href='[% mkurl(hold_history, {limit => limit,offset => (offset - limit)}) %]'
25 [% IF offset == 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">◄</span>[% l('Previous') %]</a>
26 [%# TODO: get total to prevent paging off then end of the list.. %]
27 <a href='[% mkurl(hold_history, {limit => limit, offset => (offset + limit)}) %]'
28 [% IF ctx.holds.size < limit %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">►</span></a>
30 <span style="float:right;">
31 <a class="hide_me" href="#">Export List</a>
34 <div class="clear-both"></div>
37 [% IF ctx.holds.size < 1 %]
38 <div class="warning_box">
39 <big><strong>[% l('No holds found.') %]</strong></big>
42 <table style='border-collapse:collapse; width: 100%;'>
43 <thead id='acct_holds_main_header'>
45 <td width="138"><span>[% l('Title') %]</span></td>
46 <td width="123"><span>[% l('Author') %]</span></td>
47 <td width="64"> <span>[% l('Format') %]</span></td>
48 <td width="136"><span>[% l('Pickup Location') %]</span> </td>
49 <td width="104">[% l('Active On') %]</td>
50 <td width="95">[% l('Active') %]</td>
51 <td width="106">[% l('Date Fulfilled') %]</td>
52 <td width="172"><span>[% l('Status') %]</span></td>
56 [% FOR hold IN ctx.holds;
57 attrs = {marc_xml => hold.marc_xml};
58 PROCESS get_marc_attrs args=attrs;
59 ahr = hold.hold.hold %]
61 <tr id="acct_holds_temp" name="acct_holds_temp" class="acct_holds_temp">
64 <div style="margin-top:10px;margin-bottom:10px;">
65 <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% attrs.title | html %]</a>
69 <div style="margin-top:10px;margin-bottom:10px;">
70 <a href="[% mkurl(ctx.opac_root _ '/results',
71 {qtype => author, query => attrs.author.replace('[,\.:;]', '')}
72 ) %]">[% attrs.author | html %]</a>
76 <div style="width:26px;height:23px;margin-top:6px;margin-bottom:6px;">
77 [% IF attrs.format_icon %]
78 <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" />
83 [% ctx.get_aou(ahr.pickup_lib).name | html %]
86 [% IF ahr.frozen == 't' AND ahr.thaw_date;
87 date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT);
91 [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
94 [% IF ahr.fulfillment_time;
95 date.format(ctx.parse_datetime(ahr.fulfillment_time), DATE_FORMAT);
99 <div name="acct_holds_status"
100 style="margin-top:10px;margin-bottom:10px;">
101 [% PROCESS get_hold_status hold=hold; %]