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 <div id='myopac_holds_div'>
13 <div id="acct_holds_tabs">
15 <a href='[% mkurl('holds',{},['limit','offset']) %]'>[% l("Items on Hold") %]</a>
17 <div class="align selected">
18 <a href="#">[% l("Holds History") %]</a>
22 <div class="header_middle">
23 <span style="float:left;">[% l("Previously Held Items") %]</span>
24 <span class='float-left' style='padding-left: 10px;'>
25 <a href='[% mkurl('hold_history', {limit => limit,offset => (offset - limit)}) %]'
26 [% IF offset == 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">◄</span>[% l('Previous') %]</a>
27 [% IF offset > 0 || count > limit;
29 WHILE curpage * limit < count;
30 IF curpage * limit == offset;
34 <a href='[% mkurl('holds_history', {limit => limit, offset => (curpage * limit)}) %]'>[% curpage + 1 %]</a>
36 curpage = curpage + 1;
39 <a href='[% mkurl('hold_history', {limit => limit, offset => (offset + limit)}) %]'
40 [% IF count <= limit + offset %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">►</span></a>
42 <span style="float:right;">
43 <a class="hide_me" href="#">Export List</a>
46 <div class="clear-both"></div>
49 [% IF ctx.holds.size < 1 %]
50 <div class="warning_box">
51 <big><strong>[% l('No holds found.') %]</strong></big>
54 <table style='border-collapse:collapse; width: 100%;'>
55 <thead id='acct_holds_main_header'>
57 <td width="138"><span>[% l('Title') %]</span></td>
58 <td width="123"><span>[% l('Author') %]</span></td>
59 <td width="64"> <span>[% l('Format') %]</span></td>
60 <td width="136"><span>[% l('Pickup Location') %]</span> </td>
61 <td width="104">[% l('Active On') %]</td>
62 <td width="95">[% l('Active') %]</td>
63 <td width="106">[% l('Date Fulfilled') %]</td>
64 <td width="172"><span>[% l('Status') %]</span></td>
68 [% FOR hold IN ctx.holds;
69 attrs = {marc_xml => hold.marc_xml};
70 PROCESS get_marc_attrs args=attrs;
71 ahr = hold.hold.hold %]
73 <tr id="acct_holds_temp" name="acct_holds_temp" class="acct_holds_temp">
76 <div style="margin-top:10px;margin-bottom:10px;">
77 <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% attrs.title | html %]</a>
81 <div style="margin-top:10px;margin-bottom:10px;">
82 <a href="[% mkurl(ctx.opac_root _ '/results',
83 {qtype => author, query => attrs.author.replace('[,\.:;]', '')}
84 ) %]">[% attrs.author | html %]</a>
88 <div style="width:26px;height:23px;margin-top:6px;margin-bottom:6px;">
89 [% IF attrs.format_icon %]
90 <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" />
95 [% ctx.get_aou(ahr.pickup_lib).name | html %]
98 [% IF ahr.frozen == 't' AND ahr.thaw_date;
99 date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT);
103 [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
106 [% IF ahr.fulfillment_time;
107 date.format(ctx.parse_datetime(ahr.fulfillment_time), DATE_FORMAT);
111 <div name="acct_holds_status"
112 style="margin-top:10px;margin-bottom:10px;">
113 [% PROCESS get_hold_status hold=hold; %]