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