1 [% PROCESS "default/opac/parts/header.tt2";
2 PROCESS "default/opac/parts/marc_misc.tt2";
3 WRAPPER "default/opac/parts/myopac/base.tt2";
5 limit = CGI.param('limit') || 25;
6 offset = CGI.param('offset') || 0;
9 <div id='myopac_holds_div'>
11 <div id="acct_holds_tabs" style="padding-bottom: 12px;color:#666;">
12 <div class="align selected">
13 <a href='holds'><img src="[% ctx.media_prefix %]/images/sub_holds_off.jpg"/></a>
16 <img src="[% ctx.media_prefix %]/images/sub_holds_hist_on.jpg"/>
18 <div class="clear-both"></div>
21 <div class="header_middle">
22 <span id="acct_holds_header" style="float:left;">
23 [% l("Previously Held Items") %]
25 <span style="float:right;">
26 <a class="hide_me" href="#">Export List</a>
29 <div class="clear-both"></div>
32 [% IF ctx.holds.size < 1 %]
33 <div class="opac-auto-079">
34 <big><strong>[% l('No holds found.') %]</strong></big>
37 <table style='border-collapse:collapse; width: 100%;'>
38 <thead id='acct_holds_main_header'>
40 <td width="138"><span>[% l('Title') %]</span></td>
41 <td width="123"><span>[% l('Author') %]</span></td>
42 <td width="64"> <span>[% l('Format') %]</span></td>
43 <td width="136"><span>[% l('Pickup Location') %]</span> </td>
44 <td width="104">[% l('Active On') %]</td>
45 <td width="95">[% l('Active') %]</td>
46 <td width="106">[% l('Date Fulfilled') %]</td>
47 <td width="172"><span>[% l('Status') %]</span></td>
51 [% FOR hold IN ctx.holds;
52 attrs = {marc_xml => hold.marc_xml};
53 PROCESS get_marc_attrs args=attrs;
54 ahr = hold.hold.hold %]
56 <tr id="acct_holds_temp" name="acct_holds_temp" class="acct_holds_temp">
59 <div style="margin-top:10px;margin-bottom:10px;">
60 <a href="[% ctx.opac_root %]/record/[% hold.hold.bre.id %]">[% attrs.title | html %]</a>
64 <div style="margin-top:10px;margin-bottom:10px;">
65 <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
69 <div style="width:26px;height:23px;margin-top:6px;margin-bottom:6px;">
70 [% IF attrs.format_icon %]
71 <img src="[% ctx.media_prefix %]/images/[% attrs.form_icon %]"
72 title="[% attrs.format %]" alt="[% attrs.format %]" />
79 [% ctx.find_aou(ahr.pickup_lib).name %]
82 [% IF ahr.frozen == 't' AND ahr.thaw_date;
83 date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT);
87 [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
90 [% IF ahr.fulfillment_time;
91 date.format(ctx.parse_datetime(ahr.fulfillment_time), DATE_FORMAT);
95 <div name="acct_holds_status"
96 style="margin-top:10px;margin-bottom:10px;">
98 IF hold.hold.status == 4;
100 IF ahr.shelf_expire_time;
101 l('<br/>Expires [_1]',
102 date.format(ctx.parse_datetime(ahr.shelf_expire_time), DATE_FORMAT));
104 ELSIF hold.hold.estimated_wait AND hold.hold.estimated_wait > 0;
105 # estimated wait is delivered as seconds.
106 SET hwait = POSIX.ceil(hold.hold.estimated_wait / 86400);
107 l("Estimated wait: [quant,_1,day,days]", hwait);
108 ELSIF hold.hold.status == 3;
110 ELSIF hold.hold.status < 3;
111 l("Waiting for copy");