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