1 [% PROCESS "default/opac/parts/misc_util.tt2";
2 attrs = {marc_xml => ctx.marc_xml};
3 PROCESS get_marc_attrs args=attrs;
5 PROCESS "default/opac/parts/hold_error_messages.tt2";
8 <div id='holds_box' class='canvas' style='margin-top: 6px;'>
9 [% IF ctx.hold_success %]
10 <div><big><strong>[% l("Hold was successfully placed"); %]</strong></big></div>
11 [% ELSIF ctx.hold_failed %]
12 <div><big><strong>[% l("Hold was not successfully placed"); %]</strong></big></div>
13 [% IF ctx.hold_local_block %]
14 <div>[% l("There is already a copy available at your local library.") %]</div>
15 [% ELSIF ctx.hold_failed_event || ctx.hold_local_alert %]
17 <strong>[% l('Problem:') %]</strong>
18 <span title="[% ctx.hold_failed_event.textcode %]">
20 fail_part_key = ctx.hold_failed_event.payload.fail_part;
21 event_key = ctx.hold_failed_event.textcode;
24 l(FAIL_PART_MSG_MAP.$fail_part_key) ||
25 l(EVENT_MSG_MAP.$event_key) ||
26 l(ctx.hold_failed_event.desc) ||
27 ctx.hold_failed_event.payload.fail_part ||
28 ctx.hold_failed_event.textcode ||
29 (ctx.hold_local_alert ?
30 l("There is already a copy available at your local library.") :
31 l("Unknown problem")) %]</em>
34 [% IF ctx.hold_copy_available %]<p>
35 [% l('Find a copy in the shelving location, "[_1]."',
36 ctx.hold_copy_available.location) %]
39 [% IF ctx.could_override || ctx.hold_local_alert %]
41 <big>[% l("You have permission to place this hold anyway.") %]</big>
43 [% l("Click submit below to override the system's objection and place your hold.") %]
46 <input type="hidden" type="name" name="override" value="1" />
47 [% FOR k IN ctx.orig_params.keys %]
48 <input type="hidden" name="[% k %]" value="[% ctx.orig_params.$k | html %]" />
50 <input type="image" name="submit" value="submit" title="[% l('Submit') %]"
51 alt="[% l('Submit') %]" src="[% ctx.media_prefix %]/images/btnSubmit.png" />
56 ELSIF ctx.hold_local_block;
57 l("There is already a copy available at your local library");
61 <input type="hidden" name="hold_target"
62 value="[% CGI.param('hold_target') | html %]" />
63 <input type="hidden" name="hold_type"
64 value="[% CGI.param('hold_type') | html %]" />
66 new_redirect_to = ctx.referer;
67 IF new_redirect_to.match('redirect_to');
68 new_redirect_to = 'https://' _ ctx.hostname _ ctx.opac_root _ '/home';
70 new_redirect_to = new_redirect_to | replace('^http:', 'https:');
73 <input type="hidden" name="redirect_to"
74 value="[% new_redirect_to | html %]" />
77 <p class="staff-hold">
78 <input type="radio" id="hold_usr_is_requestor_not"
79 onchange="staff_hold_usr_input_disabler(this);"
80 name="hold_usr_is_requestor" value="0"
81 [% IF ctx.patron_recipient; ' checked="checked"'; END %]
83 <label for="hold_usr_is_requestor_not">
84 [% l("Place hold for patron by barcode:") %]
86 <input type="text" name="hold_usr" id="hold_usr_input" value="[% ctx.patron_recipient.card.barcode %]" /><br />[%# XXX multi-barcode users? %]
88 <input type="radio" id="hold_usr_is_requestor"
89 onchange="staff_hold_usr_input_disabler(this);"
90 name="hold_usr_is_requestor" value="1" />
91 <label for="hold_usr_is_requestor">
92 [% l("Place this hold for me ([_1] [_2])",
93 ctx.user.first_given_name, ctx.user.family_name) %]
99 [% | l(attrs.title, ctx.get_aou(ctx.default_pickup_lib).name) %]
100 You would like to place a hold on <strong><q>[_1]</q></strong>.<br />
101 If this is correct, confirm your pickup location and click <strong>SUBMIT</strong>.
105 [% l('Pickup location:') %]
106 [% PROCESS "default/opac/parts/org_selector.tt2";
107 PROCESS build_org_selector name='pickup_lib' value=ctx.default_pickup_lib id='pickup_lib' can_have_vols_only=1 %]
110 [% |l %]If you use the Traveling Library Center (TLC) and ABC Express
111 services, please select "Outreach" to have the item delivered
112 during your scheduled visit.[% END %]
114 <input type="image" name="submit" value="submit" title="[% l('Submit') %]"
115 alt="[% l('Submit') %]" src="[% ctx.media_prefix %]/images/btnSubmit.png" />
116
117 <a href="javascript:history.go(-1);" id="holds_cancel"><img
118 alt="[% l('Cancel') %]" src="[% ctx.media_prefix %]/images/btnCancel.png" /></a>
122 [% |l %]* If you need your item today, and it is checked in at your
123 library, please place your hold and then call your library to set it
124 aside. Placing a hold without calling the library will increase your
126 <br /><a href="#">[% l('Library phone numbers.') %]</a>
129 [% |l %]* For best possible service, we recommend keeping
130 a printed copy of your most recent holds list.[% END %]
132 [% END %] <!-- ctx.hold_success -->
133 <table width='90%' border="1" class="hide_me">
136 <td class='holds_cell color_1'
137 align='center' colspan='2'>[% l("Create / Edit a Hold") %]</td>
140 <td class='holds_cell'>[% l("Recipient") %]:</td>
141 <td class='holds_cell' id='holds_recipient'> </td>
144 <td class='holds_cell'>[% l("Title:") %]</td>
145 <!-- <td class='holds_cell' id='holds_title'> </td> -->
148 <td class='holds_cell'>[% l("Author") %]</td>
149 <td class='holds_cell' id='holds_author'> </td>
152 <td class='holds_cell'>[% l("Format") %]</td>
153 <td class='holds_cell' id='holds_format'> </td>
155 <tr id='hold_physical_desc_row'>
156 <td class='holds_cell'>[% l("Physical Description:") %]</td>
157 <td class='holds_cell' id='holds_physical_desc'> </td>
160 <tr class='hide_me' id='holds_cn_row'>
161 <td class='holds_cell'>[% l("Call Number:") %]</td>
162 <td class='holds_cell'><b id='holds_cn'/> </td>
165 <tr class='hide_me' id='holds_copy_row'>
166 <td class='holds_cell'>[% l("Copy Barcode:") %]</td>
167 <td class='holds_cell'><b id='holds_copy'/> </td>
170 <tr class='hide_me' id='holds_type_row'>
171 <td class='holds_cell'>[% l("Hold Type:") %]</td>
172 <td class='holds_cell hide_me' id='holds_is_cn'>
173 <b>[% l("Volume Hold") %]</b>
175 <td class='holds_cell hide_me' id='holds_is_copy'>
176 <b>[% l("Copy Hold") %]</b>
180 <td class='holds_cell'>[% l("Contact telephone number") %]:</td>
181 <td class='holds_cell'>
182 <input id='holds_phone' size='13' maxlength='12'/>
183 <span style='margin-left: 4px; font-size: 7pt;'>
184 [% l("(XXX-YYY-ZZZZ)") %]
189 <td class='holds_cell'>[% l("Enable phone notifications for this hold?") %]</td>
190 <td class='holds_cell'>
191 <input type='checkbox' id='holds_enable_phone'
196 <td class='holds_cell'>[% l("Contact email address") %]:</td>
197 <td class='holds_cell' id='holds_email'>
198 <span class='hide_me' id='holds.no_email'>
199 ([% l("Patron has no configured email address") %])<br/>
200 ([% l("See") %] <a class='classic_link' id='holds.no_email.my_account'>[% l("My Account") %]</a> [% l("for setting your email address") %])
202 <span class='hide_me' id='holds.no_email.xul'>
203 [% l("(Patron has no configured email address)") %]
208 <td class='holds_cell'>[% l("Enable email notifications for this hold?") %]</td>
209 <td class='holds_cell'>
210 <input type='checkbox' id='holds_enable_email'
215 <tr id='holds_depth_selector_row' class='hide_me'>
216 <td class='holds_cell'>Hold Range</td>
217 <td class='holds_cell'>
218 <select id='holds_depth_selector'></select>
223 <td class='holds_cell'>[% l("Pickup location") %]</td>
224 <td class='holds_cell'>
225 <!-- <select id='holds_org_selector'> </select> -->
230 <td class='holds_cell'>[% l("Expiration date") %]</td>
231 <td class='holds_cell'>
232 <input size='10' maxlength='10'
233 id='holds_expire_time' />
238 <td class='holds_cell'>
239 [% l("Suspend this hold") %]
240 <a class='classic_link'
241 href='#'>[% l("(Help)") %]</a>
243 <td class='holds_cell'>
244 <input type='checkbox' id='holds_frozen_chkbox' />
247 <tr id='hold_frozen_thaw_row' class='hide_me'>
248 <td class='holds_cell'>
249 <!-- XXX TODO there used to be script here dealing with
251 [% l("Automatically activate hold on:") %]
253 <td class='holds_cell'>
254 <input size='10' maxlength='10'
255 id='holds_frozen_thaw_input' />
259 <tr id='holds_alt_formats_row_extras' class='hide_me'>
260 <td colspan='2' align='center'>
261 <div style='padding: 8px;'>
262 <a class='classic_link' href='#'
263 style='padding: 5px;'>[% l("Advanced Hold Options") %]</a>
268 <tr id='holds_alt_formats_row' class='hide_me'>
270 <td class='holds_cell'>
271 <div style='margin-bottom: 5px;'>
272 <span>[% l("Acceptable Alternative Formats:") %] </span>
273 <span><a class='classic_link red' href='#'>[% l("(Help)") %]</a></span>
275 <div>[% l("(control-click to select multiple formats)") %]</div>
278 <td class='holds_cell'>
279 <select id='hold_alt_form_selector' multiple='multiple' style='width: 14em;'>
280 <option value='at' class='hide_me'>[% l("Books") %]</option>
281 <option value='at-d' class='hide_me'>[% l("Large Print Books") %]</option>
282 <option value='i' class='hide_me'>[% l("Audiobooks") %]</option>
283 <option value='g' class='hide_me'>[% l("Video Recordings") %]</option>
284 <option value='j' class='hide_me'>[% l("Music") %]</option>
289 <td class='holds_cell' align='center' colspan='2'>
290 <!-- <button id='holds_submit'>[% l("Place Hold") %]</button> -->
291 <button class='hide_me' id='holds_update'>[% l("Update Hold") %]</button>
292 <span style='padding: 20px;'> </span>
293 <!-- <button id='holds_cancel'>[% l("Cancel") %]</button> -->
298 <span class='hide_me' id='holds_bad_phone'>
299 [% l("The phone number does not have the correct format. The expected format is XXX-YYY-ZZZZ") %]
301 <span class='hide_me' id='hold_not_allowed'>
302 [% |l %]No items were found that could fulfill the requested holds.
303 It's possible that choosing a different format will result in a successful hold.
304 It is also possible that you have exceeded the number of allowable holds.
305 For further information, please consult your local librarian.[% END %]
308 <div id="anonListTable" class="hide_me" style="margin-top: 6px;">
309 <select id="holdsCacheSel" class="hide_me"></select><br />
310 <a href="#">Place hold on selected</a><br />
311 <a href="#">Remove selected</a>
313 <table id="temp_list_holds" cellpadding='0' cellspacing='0' border='0'
314 style="margin-top:10px;">
316 <td width="1%" style="padding-left:10px;">
317 <input type='checkbox' title='Select All'
318 id='anon_selector' />
322 <td width="98%" style="padding-left:40px;">
323 <strong>Title</strong>
327 <table width='100%' style="margin-left:7px;margin-bottom:10px;">
329 <tr><td width='20'></td><td width='30'></td><td></td></tr>
331 <tbody id="anonListParent">
332 <tr id="anonListTemp">
333 <td><input type='checkbox' name='anon_selector' /></td>
334 <td name="curr_row"></td>
335 <td name="title"></td>
339 <a href="#">Back to search results</a>
342 <span class='hide_me' id='format_words'>
343 <span name='at'>[% l("Books") %]</span>
344 <span name='at-d'>[% l("Large Print Books") %]</span>
345 <span name='i'>[% l("Audiobooks") %]</span>
346 <span name='g'>[% l("Video Recordings") %]</span>
347 <span name='j'>[% l("Music") %]</span>
348 <span name='m'>[% l("Electronic Resources") %]</span>
351 <span class='hide_me' id='holds_explain_adv'>
352 [% |l %]If you wish to broaden the scope of your hold to include other versions of this title,
353 select the formats that would be acceptable. The first available copy will be sent to you.[% END %]
356 <span class='hide_me' id='holds_pick_good_org'>[% l("Please select a physical location where your hold can be delivered.") %]</span>
357 <span class='hide_me' id='hold_dup_exists'>[% l("A hold already exists on the requested item.") %]</span>
358 <span class='hide_me' id='hold_dup_exists_override'>[% l("A hold already exists on the requested item. Would you like to create the hold anyway?") %]</span>
360 <span id='hold_failed_patron_barred' class='hide_me'>
361 [% |l %]PATRON BARRED. Please see any notes in the "Staff Notes" section of your
362 "My Account" page or contact your local library.[% END %]
365 <span id='invalid_hold' class='hide_me'>
366 [% |l %]This hold is no longer valid. It's likely that the target for the hold was
367 deleted from the system. Please cancel this hold and place a new one.[% END %]
369 <span id='holds_invalid_recipient' class='hide_me'>[% l("The patron barcode entered as the hold recipient is invalid.") %]</span>