]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/default/opac/parts/place_hold.tt2
Merge branch 'dbs/ttopac-move-templates' into dbs/template-toolkit-integration-on...
[working/Evergreen.git] / Open-ILS / src / templates / default / opac / parts / place_hold.tt2
1 [%  PROCESS "default/opac/parts/misc_util.tt2";
2     attrs = {marc_xml => ctx.marc_xml};
3     PROCESS get_marc_attrs args=attrs;
4 %]
5 <div>
6     <div id='xulholds_box' class='hide_me canvas' style='margin-top: 6px;'>
7         <!-- XXX TODO staff will need this to work ("advanced" hold placement)
8         later -->
9         <center>
10             <table class='data_grid' style='margin-top: 20px;'>
11                 <tbody>
12                     <tr>
13                         <td>[% l("Enter recipient barcode") %]:</td>
14                         <td>
15                             <input type='text' id='xul_recipient_barcode' />
16                         </td>
17                         <td>
18                             <input type='submit' value='[% l("Submit") %]'
19                                 id='xul_recipient_barcode_submit' />
20                         </td>
21                         <td>
22                             <input type='submit' value='[% l("Cancel") %]' />
23                         </td>
24                         <td>
25                             <input type='submit'
26                                 value='[% l("Place hold for my account") %]'
27                                 id='xul_recipient_me' />
28                         </td>
29                     </tr>
30                 </tbody>
31             </table>
32         </center>
33     </div>
34     <div id='check_holds_box' class='hide_me canvas' 
35         style='margin-top: 6px; width: 100%; text-align: center'>
36         <br/><br/><br/>
37         <b>[% l("Checking for possibility of hold fulfillment...") %]</b>
38     </div>
39     <div id='holds_box' class='canvas' style='margin-top: 6px;'>
40         [% IF ctx.hold_success %]
41         <div><big><strong>[% l("Hold was successfully placed"); %]</strong></big></div>
42         [% ELSIF ctx.hold_failed %]
43         <div><big><strong>[% l("Hold was not successfully placed"); %]</strong></big></div>
44             [% IF ctx.hold_failed_event %]
45         <div>
46             <strong>[% l('Problem:') %]</strong>
47             <span title="[% ctx.hold_failed_event.textcode %]">
48                 <em>[% ctx.hold_failed_event.desc ||
49                         ctx.hold_failed_event.payload.fail_part ||
50                         ctx.hold_failed_event.textcode %]</em>
51             </span>
52         </div>
53             [% END;
54         ELSE %]
55         <form method="POST">
56             <br/>
57             <input type="hidden" name="hold_target"
58                 value="[% CGI.param('hold_target') | html %]" />
59             <input type="hidden" name="hold_type"
60                 value="[% CGI.param('hold_type') | html %]" />
61             [%
62                 new_redirect_to = ctx.referer;
63                 IF new_redirect_to.match('redirect_to');
64                     new_redirect_to = 'https://' _ ctx.hostname _ ctx.opac_root _ '/home';
65                 ELSE;
66                     new_redirect_to = new_redirect_to | replace('^http:', 'https:');
67                 END;
68             %]
69             <input type="hidden" name="redirect_to"
70                 value="[% new_redirect_to | html %]" />
71             <h1>Place Hold</h1>
72             <p>
73                 [% | l(attrs.title, ctx.get_aou(ctx.default_pickup_lib).name) %]
74                 You would like to place a hold on <strong><q>[_1]</q></strong> to be picked up at [_2].
75                 If this is correct, press <strong>SUBMIT</strong>.
76                 [% END %]
77             </p>
78             <p>
79                 [% l('If you would like to change the library pick up location, select from the location dropdown menu.') %]
80                 <br class="clear-both" />
81                 [% PROCESS "default/opac/parts/org_selector.tt2";
82                     PROCESS build_org_selector name='pickup_lib' value=ctx.default_pickup_lib %]
83             </p>
84             <p>
85                 [% |l %]If you use the Traveling Library Center (TLC) and ABC Express
86                 services, please select "Outreach" to have the item delivered
87                 during your scheduled visit.[% END %]
88             </p>
89             <input type="image" name="submit" value="submit" title="[% l('Submit') %]"
90                 alt="[% l('Submit') %]" src="[% ctx.media_prefix %]/images/btnSubmit.png" />
91             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
92             <a href="javascript:history.go(-1);" id="holds_cancel"><img
93                 alt="[% l('Cancel') %]" src="[% ctx.media_prefix %]/images/btnCancel.png" /></a>
94         </form>
95         <br /><br />
96         <p>
97             [% |l %]* If you need your item today, and it is checked in at your
98             library, please place your hold and then call your library to set it
99             aside. Placing a hold without calling the library will increase your
100             wait time.[% END %]
101             <br /><a href="#">[% l('Library phone numbers.') %]</a>
102         </p>
103         <p>
104             [% |l %]* For best possible service, we recommend keeping 
105             a printed copy of your most recent holds list.[% END %]
106         </p>
107         [% END %] <!-- ctx.hold_success -->
108         <table width='90%' border="1" class="hide_me">
109             <tbody>
110                 <tr>
111                     <td class='holds_cell color_1' 
112                         align='center' colspan='2'>[% l("Create / Edit a Hold") %]</td>
113                 </tr>
114                 <tr>
115                     <td class='holds_cell'>[% l("Recipient") %]:</td>
116                     <td class='holds_cell' id='holds_recipient'> </td>
117                 </tr>
118                 <tr>
119                     <td class='holds_cell'>[% l("Title:") %]</td>
120                     <!-- <td class='holds_cell' id='holds_title'> </td> -->
121                 </tr>
122                 <tr>
123                     <td class='holds_cell'>[% l("Author") %]</td>
124                     <td class='holds_cell' id='holds_author'> </td>
125                 </tr>
126                 <tr>
127                     <td class='holds_cell'>[% l("Format") %]</td>
128                     <td class='holds_cell' id='holds_format'> </td>
129                 </tr>
130                 <tr id='hold_physical_desc_row'>
131                     <td class='holds_cell'>[% l("Physical Description:") %]</td>
132                     <td class='holds_cell' id='holds_physical_desc'> </td>
133                 </tr>
134
135                 <tr class='hide_me' id='holds_cn_row'>
136                     <td class='holds_cell'>[% l("Call Number:") %]</td>
137                     <td class='holds_cell'><b id='holds_cn'/> </td>
138                 </tr>
139
140                 <tr class='hide_me' id='holds_copy_row'>
141                     <td class='holds_cell'>[% l("Copy Barcode:") %]</td>
142                     <td class='holds_cell'><b id='holds_copy'/> </td>
143                 </tr>
144
145                 <tr class='hide_me' id='holds_type_row'>
146                     <td class='holds_cell'>[% l("Hold Type:") %]</td>
147                     <td class='holds_cell hide_me' id='holds_is_cn'>
148                         <b>[% l("Volume Hold") %]</b>
149                     </td>
150                     <td class='holds_cell hide_me' id='holds_is_copy'>
151                         <b>[% l("Copy Hold") %]</b>
152                     </td>
153                 </tr>
154                 <tr>
155                     <td class='holds_cell'>[% l("Contact telephone number") %]:</td>
156                     <td class='holds_cell'>
157                         <input id='holds_phone' size='13' maxlength='12'/>
158                         <span style='margin-left: 4px; font-size: 7pt;'>
159                             [% l("(XXX-YYY-ZZZZ)") %]
160                         </span>
161                     </td>
162                 </tr>
163                 <tr>
164                     <td class='holds_cell'>[% l("Enable phone notifications for this hold?") %]</td>
165                     <td class='holds_cell'>
166                         <input type='checkbox' id='holds_enable_phone'
167                             checked='checked' />
168                     </td>
169                 </tr>
170                 <tr>
171                     <td class='holds_cell'>[% l("Contact email address") %]:</td>
172                     <td class='holds_cell' id='holds_email'> 
173                         <span class='hide_me' id='holds.no_email'>
174                            ([% l("Patron has no configured email address") %])<br/>
175                            ([% l("See") %] <a class='classic_link' id='holds.no_email.my_account'>[% l("My Account") %]</a> [% l("for setting your email address") %])
176                         </span>
177                         <span class='hide_me' id='holds.no_email.xul'>
178                            [% l("(Patron has no configured email address)") %] 
179                         </span>
180                     </td>
181                 </tr>
182                 <tr>
183                     <td class='holds_cell'>[% l("Enable email notifications for this hold?") %]</td>
184                     <td class='holds_cell'>
185                         <input type='checkbox' id='holds_enable_email'
186                             checked='checked'/>
187                     </td>
188                 </tr>
189                 <!--
190                 <tr id='holds_depth_selector_row' class='hide_me'>
191                     <td class='holds_cell'>Hold Range</td>
192                     <td class='holds_cell'>
193                         <select id='holds_depth_selector'></select>
194                     </td>
195                 </tr>
196                 -->
197                 <tr>
198                     <td class='holds_cell'>[% l("Pickup location") %]</td>
199                     <td class='holds_cell'>
200                         <!-- <select id='holds_org_selector'> </select> -->
201                     </td>
202                 </tr>
203
204                 <tr>
205                     <td class='holds_cell'>[% l("Expiration date") %]</td>
206                     <td class='holds_cell'>
207                         <input size='10' maxlength='10'
208                          id='holds_expire_time' />
209                     </td>
210                 </tr>
211
212                 <tr>
213                     <td class='holds_cell'>
214                         [% l("Suspend this hold") %]
215                         <a class='classic_link'
216                             href='#'>[% l("(Help)") %]</a>
217                         </td>
218                     <td class='holds_cell'>
219                         <input type='checkbox' id='holds_frozen_chkbox' /> 
220                     </td>
221                 </tr>
222                 <tr id='hold_frozen_thaw_row' class='hide_me'>
223                     <td class='holds_cell'>
224                         <!-- XXX TODO there used to be script here dealing with
225                         frozen holds -->
226                         [% l("Automatically activate hold on:") %]
227                     </td>
228                     <td class='holds_cell'>
229                         <input size='10' maxlength='10'
230                             id='holds_frozen_thaw_input' />
231                     </td>
232                 </tr>
233
234                 <tr id='holds_alt_formats_row_extras' class='hide_me'>
235                     <td colspan='2' align='center'>
236                         <div style='padding: 8px;'>
237                             <a class='classic_link' href='#'
238                                 style='padding: 5px;'>[% l("Advanced Hold Options") %]</a>
239                         </div>
240                     </td>
241                 </tr>
242
243                 <tr id='holds_alt_formats_row' class='hide_me'>
244
245                     <td class='holds_cell'>
246                         <div style='margin-bottom: 5px;'>
247                             <span>[% l("Acceptable Alternative Formats:") %] </span>
248                             <span><a class='classic_link red' href='#'>[% l("(Help)") %]</a></span>
249                         </div>
250                         <div>[% l("(control-click to select multiple formats)") %]</div>
251                     </td>
252
253                     <td class='holds_cell'>
254                         <select id='hold_alt_form_selector' multiple='multiple' style='width: 14em;'>
255                             <option value='at'    class='hide_me'>[% l("Books") %]</option>
256                             <option value='at-d' class='hide_me'>[% l("Large Print Books") %]</option>
257                             <option value='i'        class='hide_me'>[% l("Audiobooks") %]</option>
258                             <option value='g'        class='hide_me'>[% l("Video Recordings") %]</option>
259                             <option value='j'        class='hide_me'>[% l("Music") %]</option>
260                         </select>
261                     </td>
262                 </tr>
263                 <tr>
264                     <td class='holds_cell' align='center' colspan='2'>
265                         <!-- <button id='holds_submit'>[% l("Place Hold") %]</button> -->
266                         <button class='hide_me' id='holds_update'>[% l("Update Hold") %]</button>
267                         <span style='padding: 20px;'> </span>
268                         <!-- <button id='holds_cancel'>[% l("Cancel") %]</button> -->
269                     </td>
270                 </tr>
271             </tbody>
272         </table>
273         <div class='hide_me' id='holds_success'>[% l("Hold was successfully placed") %]</div>
274         <div class='hide_me' id='holds_failure'>[% l("Hold was not successfully placed") %]</div>
275         <span class='hide_me' id='holds_bad_phone'>
276             [% l("The phone number does not have the correct format. The expected format is XXX-YYY-ZZZZ") %]
277         </span>
278         <span class='hide_me' id='hold_not_allowed'>
279             [% |l %]No items were found that could fulfill the requested holds.  
280                 It's possible that choosing a different format will result in a successful hold.  
281                 It is also possible that you have exceeded the number of allowable holds.  
282                 For further information, please consult your local librarian.[% END %]
283         </span>
284     </div>
285     <div id="anonListTable" class="hide_me" style="margin-top: 6px;">
286         <select id="holdsCacheSel" class="hide_me"></select><br />
287         <a href="#">Place hold on selected</a><br />
288         <a href="#">Remove selected</a>
289         
290         <table id="temp_list_holds" cellpadding='0' cellspacing='0' border='0'
291             style="margin-top:10px;">
292             <tr>
293                 <td width="1%" style="padding-left:10px;">
294                     <input type='checkbox' title='Select All'
295                         id='anon_selector' />
296                 </td>
297                 <td width="1%">
298                 </td>
299                 <td width="98%" style="padding-left:40px;">
300                     <strong>Title</strong>
301                 </td>
302             </tr>
303         </table>
304         <table width='100%' style="margin-left:7px;margin-bottom:10px;">
305             <thead>
306                 <tr><td width='20'></td><td width='30'></td><td></td></tr>
307             </thead>
308             <tbody id="anonListParent">
309                 <tr id="anonListTemp">
310                   <td><input type='checkbox' name='anon_selector' /></td>
311                   <td name="curr_row"></td>
312                   <td name="title"></td>
313                 </tr>
314             </tbody>
315         </table>
316         <a href="#">Back to search results</a>
317     </div>
318
319     <span class='hide_me' id='format_words'>
320         <span name='at'>[% l("Books") %]</span>
321         <span name='at-d'>[% l("Large Print Books") %]</span>
322         <span name='i'>[% l("Audiobooks") %]</span>
323         <span name='g'>[% l("Video Recordings") %]</span>
324         <span name='j'>[% l("Music") %]</span>
325         <span name='m'>[% l("Electronic Resources") %]</span>
326     </span>
327
328     <span class='hide_me' id='holds_explain_adv'>
329         [% |l %]If you wish to broaden the scope of your hold to include other versions of this title, 
330         select the formats that would be acceptable.  The first available copy will be sent to you.[% END %]
331     </span>
332
333     <span class='hide_me' id='holds_pick_good_org'>[% l("Please select a physical location where your hold can be delivered.") %]</span>
334     <span class='hide_me' id='hold_dup_exists'>[% l("A hold already exists on the requested item.") %]</span>
335     <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>
336
337     <span id='hold_failed_patron_barred' class='hide_me'>
338         [% |l %]PATRON BARRED. Please see any notes in the "Staff Notes" section of your 
339         "My Account" page or contact your local library.[% END %]
340     </span>
341
342     <span id='invalid_hold' class='hide_me'>
343         [% |l %]This hold is no longer valid. It's likely that the target for the hold was 
344         deleted from the system.  Please cancel this hold and place a new one.[% END %]
345     </span>
346     <span id='holds_invalid_recipient' class='hide_me'>[% l("The patron barcode entered as the hold recipient is invalid.") %]</span>
347 </div>