]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/parts/place_hold.tt2
Use SUBMIT buttons instead of IMAGE buttons
[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             new_redirect_to = ctx.referer;
11             IF new_redirect_to.match('redirect_to');
12                 new_redirect_to = 'https://' _ ctx.hostname _ ctx.opac_root _ '/home';
13             ELSE;
14                 new_redirect_to = new_redirect_to | replace('^http:', 'https:');
15             END;
16         %]
17         <input type="hidden" name="redirect_to" value="[% CGI.param('redirect_to') || CGI.referer | html %]" />
18
19         [% IF ctx.is_staff %]
20         <p class="staff-hold">
21             <input type="radio" id="hold_usr_is_requestor_not"
22                 onchange="staff_hold_usr_input_disabler(this);"
23                 name="hold_usr_is_requestor" value="0"
24                 [% IF ctx.patron_recipient; ' checked="checked"'; END %] />
25             <label for="hold_usr_is_requestor_not">
26                 [% l("Place hold for patron by barcode:") %]
27             </label>
28             <input type="text" name="hold_usr" id="hold_usr_input" value="[% ctx.patron_recipient.card.barcode | html %]" /><br />[%# XXX multi-barcode users? %]
29             <span>
30                 <input type="radio" id="hold_usr_is_requestor"
31                     onchange="staff_hold_usr_input_disabler(this);"
32                     name="hold_usr_is_requestor" value="1" />
33                 <label for="hold_usr_is_requestor">
34                     [% l("Place this hold for me ([_1] [_2])", ctx.user.first_given_name, ctx.user.family_name) | html %]
35                 </label>
36             </span>
37         </p>
38         [% END %]
39
40         <!-- loop through the holds and display status of request where appropriate -->
41         <table id='hold-items-list'>
42         [% FOR hdata IN ctx.hold_data;
43             attrs = {marc_xml => hdata.marc_xml};
44             PROCESS get_marc_attrs args=attrs %]
45             <tr>
46                 <td>
47                     <input type="hidden" name="hold_target" value="[% hdata.target.id | html %]" />
48                     <div class='hold-items-list-title'>[% attrs.title_extended | html %]</div>
49                 </td>
50             </tr>
51         [% END %]
52         </table>
53
54         <p>
55             [% l('Pickup location:') %]
56             [% PROCESS "opac/parts/org_selector.tt2";
57                 PROCESS build_org_selector name='pickup_lib' value=ctx.default_pickup_lib id='pickup_lib' can_have_vols_only=1 %]
58         </p>
59         <p>
60             [% |l %]If you use the Traveling Library Center (TLC) and ABC Express
61             services, please select "Outreach" to have the item delivered
62             during your scheduled visit.[% END %]
63         </p>
64         <input type="submit" name="submit" value="[% l('Submit') %]" title="[% l('Submit') %]"
65             alt="[% l('Submit') %]" class="submit-button" />
66         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
67         <input type="reset" name="cancel" onclick="javascript:history.go(-1);"
68             value="[% l('Cancel') %]" id="holds_cancel" class="submit-button" />
69     </form>
70     <br /><br />
71     <p>
72         [% |l %]* If you need your item today, and it is checked in at your
73         library, please place your hold and then call your library to set it
74         aside. Placing a hold without calling the library will increase your
75         wait time.[% END %]
76         <br /><a href="#">[% l('Library phone numbers.') %]</a>
77     </p>
78     <p>
79         [% |l %]* For best possible service, we recommend keeping 
80         a printed copy of your most recent holds list.[% END %]
81     </p>
82 </div>
83