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.holds_limit;
7 offset = ctx.holds_offset;
8 count = ctx.holds_ids.size;
10 <div id='myopac_holds_div'>
12 <div id="acct_holds_tabs">
13 <div class="align selected">
14 <a href='#'>[% l("Items on Hold") %]</a>
17 <a href='[% mkurl('hold_history', {}, ['limit','offset','available']) %]'>[% l("Holds History") %]</a>
21 <div class="header_middle">
22 <span id="acct_holds_header" style="float:left;">
23 [% IF CGI.param("available");
24 l("Items Ready for Pickup");
26 l("Current Items on Hold");
30 <span class='float-left' style='padding-left: 10px;'>
31 <a href='[% mkurl('holds', {limit => limit,offset => (offset - limit)}) %]'
32 [% IF offset <= 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">◄</span>[% l('Previous') %]</a>
33 [% IF offset > 0 || count > limit;
35 WHILE curpage * limit < count;
36 IF curpage * limit == offset;
40 <a href='[% mkurl('holds', {limit => limit, offset => (curpage * limit)}) %]'>[% curpage + 1 %]</a>
42 curpage = curpage + 1;
45 <a href='[% mkurl('holds', {limit => limit, offset => (offset + limit)}) %]'
46 [% IF count <= limit + offset %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">►</span></a>
49 <span style="float:right;">
50 <a class="hide_me" href="#">Export List</a>
53 <div class="clear-both"></div>
56 <table cellpadding='0' cellspacing='0' class="opac-auto-097">
59 <select name="action" id="acct_holds_actions">
60 <option id='myopac_holds_actions_none' value=''>
61 -- [% l("Actions for selected holds") %] --
63 <option value='suspend'>[% l("Suspend") %]</option>
64 <option value='activate'>[% l("Activate") %]</option>
65 <!-- XXX maybe later <option value='thaw_date'>[% l("Set Active Date") %]</option> -->
66 <option value='cancel'>[% l("Cancel") %]</option>
69 <td width="1" style="padding-left:9px;">
70 <input type="submit" value="[% l('Go') %]"
71 alt="[% l('Go') %]" title="[% l('Go') %]"
72 class="opac-button" />
74 <td width="1" style="padding-left:5px;">
77 src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
79 <td style="padding-left:5px;" class='error'>
80 [% IF ctx.hold_suspend_post_capture;
81 l('One or more holds could not be suspended because<br/>the item is at (or en route to) the pickup library.');
86 [% l("Show") %]
87 [% IF CGI.param("available") %]
88 <a href="[% mkurl('holds', {},['limit','offset','available']) %]">[% l('all') %]</a> |
89 <strong>[% l("only available") %]</strong>
91 <strong>[% l("all") %]</strong> |
92 <a href="[% mkurl('holds', {available => 1}, ['limit','offset']) %]">[% l("only available") %]</a>
93 [% END %]
95 <select class="hide_me" id="holds_sort">
96 <option value="">-- Sort By --</option>
97 <option value="title">Title</option>
98 <option value="pickup">PickUp Location</option>
99 <option value="status">Status</option>
104 [% IF ctx.holds.size < 1 %]
105 <div class="warning_box">
106 <big><strong>[% l('No holds found.') %]</strong></big>
109 <table id="acct_holds_main_header" cellpadding='0' cellspacing='0'
110 border='0' width="100%">
112 <td width="36" align="center">
113 <input type="checkbox" onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'hold_id' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/>
116 <span title="Click to sort"
117 style="cursor:pointer;">
122 <span title="Click to sort" style="cursor:pointer;">Author</span>
125 <span title="Click to sort"
126 style="cursor:pointer;">Format</span>
129 <span title="Click to sort"
130 style="cursor:pointer;">Pickup Location</span>
132 <td width="104">Activate</td>
133 <td width="106">Cancel if not<br />filled by</td>
134 <td width="95">Active</td>
136 <span title="Click to sort"
137 style="cursor:pointer;">Status</span>
141 <div class="hide_me">
142 <select id="hold_pickup_lib_temp" name="hold_pickup_lib_sel"
143 class="hide_me" style="width:125px;height:21px;"></select>
146 <table cellpadding='0' cellspacing='0' border='0' width="100%">
147 <tbody id="holds_temp_parent">
148 [% FOR hold IN ctx.holds;
149 attrs = {marc_xml => hold.marc_xml};
150 PROCESS get_marc_attrs args=attrs;
151 ahr = hold.hold.hold %]
152 <tr id="acct_holds_temp" name="acct_holds_temp"
153 class="acct_holds_temp[% ahr.frozen == 't' ? ' inactive-hold' : '' %]">
154 <td width="36" align="center" style="text-align:center;">
155 <input type="checkbox" name="hold_id" value="[% ahr.id %]" />
158 <div style="margin-top:10px;margin-bottom:10px;">
161 IF ahr.hold_type == 'P';
162 title = l('[_1] ([_2])', title, hold.hold.part.label);
165 <a href="[% mkurl(ctx.opac_root _ '/record/' _ hold.hold.bre_id) %]">[% title | html %]</a>
169 <div style="margin-top:10px;margin-bottom:10px;">
170 <a href="[% mkurl(ctx.opac_root _ '/results',
171 {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
172 ) %]">[% attrs.author | html %]</a>
176 <div style="width:26px;height:23px;margin-top:6px;margin-bottom:6px;">
177 [% IF attrs.format_icon %]
178 <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" />
183 [% ctx.get_aou(ahr.pickup_lib).name | html %]
187 title="Enter a date (e.g. 10/21/2010)"
188 class="hide_me" style="width:91px;"
189 name="activate_box" type="text" /> -->
190 [% IF ahr.frozen == 't' AND
192 date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT);
196 <!-- <input title="[% l('Enter a date (e.g. 10/21/2010)') %]"
197 class="hide_me" style="width:91px;"
198 name="hold_expires_box" type="text" />-->
199 [% IF ahr.expire_time;
200 date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT);
204 <!-- <select name="hold_active_sel"
205 style="width:90px;" class="hide_me">
206 <option value="f">Active</option>
207 <option value="t">Suspended</option>
209 [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
212 <div name="acct_holds_status"
213 style="margin-top:10px;margin-bottom:10px;">
214 [% PROCESS get_hold_status hold=hold; %]
217 <td class="opac-auto-161">
218 <a href="[% mkurl(ctx.opac_root _ '/myopac/holds/edit', {id => ahr.id}) %]">Edit</a>
228 <span id='myopac.holds.cancel.confirm' class='hide_me'>[% l("Are you sure you wish to cancel the selected holds?") %]</span>
229 <span id='myopac.holds.freeze.confirm' class='hide_me'>[% l("Are you sure you wish to suspend the selected holds? If an item has already been selected to fulfill the hold, it will not be suspended") %]</span>
230 <span id='myopac.holds.thaw.confirm' class='hide_me'>[% l("Are you sure you wish to activate the selected holds?") %]</span>
231 <span id='myopac.holds.thaw_date.confirm' class='hide_me'>[% l("Are you sure you wish to change the activate date for the selected holds?") %]</span>
232 <span id='myopac.holds.freeze.select_thaw' class='hide_me'>[% l("Select an automatic activation date. If no date is chosen, the holds will remain suspended until they are manually activated.") %]</span>
234 <table width='100%' id='myopac_holds_processing' class='hide_me'>
235 <tr><td>[% l("Processing holds... This may take a moment.") %]</td></tr>
238 <span class='hide_me' id='myopac_holds_cancel_verify'>
239 [% l("If you wish to cancel the selected hold, click OK, otherwise click Cancel.") %]
242 <div id='myopac_holds_thaw_date_form' class='hide_me'>
243 <div id='myopac_holds_freeze_select_thaw'>
244 [% l("Select an automatic activation date. If no date is chosen, the holds will remain suspended until they are manually activated.") %]
247 <input size='10' maxlength='10'
248 type='text' id='myopac_holds_thaw_date_input' />
251 <button>[% l("Submit") %]</button>