Remove KCLS hold placement note from default TTPAC
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / place_hold.tt2
1 [%  PROCESS "opac/parts/misc_util.tt2";
2     PROCESS "opac/parts/hold_error_messages.tt2";
3 %]
4
5 <div id='holds_box' class='canvas' style='margin-top: 6px;'>
6     <h1>[% l('Place Hold') %]</h1>
7     <form method="POST">
8         <input type="hidden" name="hold_type" value="[% CGI.param('hold_type') | html %]" />
9         [%  
10             redirect = CGI.param('hold_source_page') || CGI.param('redirect_to') || CGI.referer;
11             # since we have to be logged in to get this far, return to a secure page
12             redirect = redirect.replace('^http:', 'https:') 
13         %]
14         <input type="hidden" name="redirect_to" value="[% redirect | html %]" />
15
16         [% IF ctx.is_staff %]
17         <p class="staff-hold">
18             <input type="radio" id="hold_usr_is_requestor_not"
19                 onchange="staff_hold_usr_input_disabler(this);"
20                 name="hold_usr_is_requestor" value="0"
21                 [% IF ctx.patron_recipient; ' checked="checked"'; END %] />
22             <label for="hold_usr_is_requestor_not">
23                 [% l("Place hold for patron by barcode:") %]
24             </label>
25             <input type="text" name="hold_usr" id="hold_usr_input" value="[% ctx.patron_recipient.card.barcode | html %]" /><br />[%# XXX multi-barcode users? %]
26             <span>
27                 <input type="radio" id="hold_usr_is_requestor"
28                     onchange="staff_hold_usr_input_disabler(this);"
29                     name="hold_usr_is_requestor" value="1" />
30                 <label for="hold_usr_is_requestor">
31                     [% l("Place this hold for me ([_1] [_2])", ctx.user.first_given_name, ctx.user.family_name) | html %]
32                 </label>
33             </span>
34         </p>
35         [% END %]
36
37         <!-- loop through the holds and display status of request where appropriate -->
38         <table id='hold-items-list'>
39         [% FOR hdata IN ctx.hold_data;
40             attrs = {marc_xml => hdata.marc_xml};
41             PROCESS get_marc_attrs args=attrs %]
42             <tr>
43                 <td>
44                     <input type="hidden" name="hold_target" value="[% hdata.target.id | html %]" />
45                     <div class='hold-items-list-title'>[% attrs.title_extended | html %]</div>
46                     [% IF hdata.parts %]
47                         [% IF hdata.parts.size > 0 %]
48                         <div style='padding-left: 10px'>
49                             <span>[% hdata.part_required ? l('Select a Part:') : l('Select a Part (optional):') %]</span>
50                             <select name='part'>
51                                 [% IF !hdata.part_required %]
52                                 <option selected='selected' value=''>[% l('- All Parts -') %]</option>
53                                 [% END %]
54                                 [% FOR part IN hdata.parts %]
55                                 <option value='[% part.id %]'>[% part.label | html %]</option>
56                                 [% END %]
57                             </select>
58                         </div>
59                         [% ELSE %]
60                         <input type='hidden' name='part' value=''/>
61                         [% END %]
62                     [% END %]
63                 </td>
64             </tr>
65         [% END %]
66         </table>
67
68         <p>
69             [% l('Pickup location:') %]
70             [% PROCESS "opac/parts/org_selector.tt2";
71                 INCLUDE build_org_selector name='pickup_lib' value=ctx.default_pickup_lib id='pickup_lib' can_have_vols_only=1 %]
72         </p>
73         <p>
74             [% l('Notify when hold is ready for pickup?') %]
75             <blockquote>
76                 <input type="checkbox" name="email_notify" value="t"
77                     [% IF ctx.default_email_notify %]checked="checked"[% END %]/>
78                     [% l('Yes, by Email') %]<br/>
79                 <input type="checkbox" name="phone_notify_checkbox"
80                     [% IF ctx.default_phone_notify %]checked="checked"[% END %]/>
81                     [% l('Yes, by Phone') %]<br/>
82                 <blockquote>
83                     [% l('Phone Number:') %]<input type="text" name="phone_notify" [% setting = 'opac.default_phone';
84                     IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
85                 </blockquote>
86                 [% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %]
87                 <input type="checkbox" name="sms_notify_checkbox"
88                     [% IF ctx.default_sms_notify %]checked="checked"[% END %]/>
89                     [% l('Yes, by Text Messaging') %]<br/>
90                 <blockquote>
91                     [% INCLUDE "opac/parts/sms_carrier_selector.tt2" %]<br/>
92                     [% INCLUDE "opac/parts/sms_number_textbox.tt2" %]<br/>
93                 </blockquote>
94                 [% END %]
95             </blockquote>
96         </p>
97         <input type="submit" name="submit" value="[% l('Submit') %]" title="[% l('Submit') %]"
98             alt="[% l('Submit') %]" class="opac-button" />
99         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
100         <input type="reset" name="cancel" onclick="javascript:history.go(-1);"
101             value="[% l('Cancel') %]" id="holds_cancel" class="opac-button" />
102     </form>
103 </div>
104