ebdbbfe6dc135226d8a813bd69e2b4baa00748e5
[working/Evergreen.git] / Open-ILS / src / templates / kpac / getit.tt2
1 [%  
2     PROCESS "opac/parts/header.tt2";
3     PROCESS "opac/parts/misc_util.tt2"; # MARC 
4     WRAPPER "kpac/parts/subpage.tt2";
5     attrs = {marc_xml => ctx.marc_xml};
6     PROCESS get_marc_attrs args=attrs;
7     ctx.page_title = attrs.title | html 
8 %]
9
10 <div id="search_results_parent">
11     [% INCLUDE 'kpac/parts/record_row.tt2' rec_id=ctx.bre_id%]
12 </div>
13           
14 <div class="checkout_options">
15     <table cellpadding="0" cellspacing="0" border="0">
16         <tr>
17             <td valign="top" class="left_brain_cell">
18                 <div class="left_brain">
19
20                     [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='card_help' %]
21                         <img src="[% ctx.media_prefix %]/images/kpac/library_card.png" alt="[% l('library card') %]" /></div></td>
22                     [% END %]
23                     [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='password_help' %]
24                         <p>[% l('Enter your password') %]</p>
25                     [% END %]
26
27                     <div class="top_side">
28                         <h2>get it!</h2>
29                         <p>[% |l %]If you would like to request this item, please enter the 
30                             following information and click<br />Submit below:[% END %]</p>
31                     </div>
32
33                     <form method='POST'><!-- login + place hold form -->
34
35                         <div class="checkout_box">
36                             <div class="box1_top">&nbsp;</div>
37                             <div class="box_inside">
38
39                                 [% IF !ctx.user %]
40                                     [% seed = l(' Enter Numbers... ') %]
41                                     <p>[% l('Library Card Number without spaces:') %]</p>
42                                     <div class="input_box">
43                                         <input name="username" type="text" class="text_box" style="color:#aaa;" value="[% seed %]" 
44                                             onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}" 
45                                             onblur="if(this.value==''){this.value='[% seed %]'; this.style.color='#aaa';}" />
46                                     </div>
47                                     <a class="help_btn" href="javascript:;" 
48                                         onclick="helpPopup('card_help', this, event);"><img 
49                                         src="[% ctx.media_prefix %]/images/kpac/question_mark.png" alt="pin number help" /></a>
50
51                                     <div class="clear">&nbsp;</div>
52                                     <div class="hr">&nbsp;</div>
53
54                                     <p>[% l('Password') %]</p>
55                                     <div class="input_box">
56                                         <input name="password" type="password" class="text_box" style="color:#aaa;" value="[% seed %]" 
57                                             onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}" 
58                                             onblur="if(this.value==''){this.value='[% seed %]'; this.style.color='#aaa';}" />
59                                     </div>
60
61                                     <a class="help_btn" href="javascript:;" 
62                                         onclick="helpPopup('password_help', this, event);"><img 
63                                         src="[% ctx.media_prefix %]/images/kpac/question_mark.png" alt="[% l('password help') %]" /></a>
64
65                                     <div class="clear">&nbsp;</div>
66                                     <div class="hr">&nbsp;</div>
67                                 [% END %]
68
69                                 <p>[% l('Choose a Pickup Library:') %]</p>
70                                 <div class="pickup_lib">
71                                     [%  def_lib = ctx.default_pickup_lib || ctx.physical_loc;
72                                         PROCESS "opac/parts/org_selector.tt2";
73                                         PROCESS build_org_selector name='pickup_lib' 
74                                         value=def_lib id='pickup_lib' can_have_vols_only=1 %]
75                                 </div>
76                             </div>
77                         </div>
78                         <div class="submit_btn">
79                             <input type='hidden' name='action' value='hold'/>
80                             <input type='image' src="[% ctx.media_prefix %]/images/kpac/review_submit_btn.png" alt="[% l('Submit') %]"/>
81                         </div>
82                     </form>
83                 </div>
84             </td>
85
86             <td valign="top">
87                 <div class="right_brain">
88                     <div class="top_side">
89                         <h2>[% l('save it!') %]</h2>
90                         <p>[% l('If you would like to save this item to a list to be requested later, please choose a location and click <br/>Submit below.') %]</p>
91                     </div>
92                     <form method='POST'>
93                         <input type='hidden' name='action' value='save'/>
94                         [% IF ctx.user AND ctx.bookbags AND ctx.bookbags.size > 0 %]
95                             <div class="checkout_box">
96                                 <div class="box1_top">&nbsp;</div>
97                                 <div class="box_inside">
98                                     <p>[% l('Add to one of your lists?') %]</p>
99                                     <select name='bookbag'>
100                                         <option selected='selected'>[% l('-- Select a List --') %]</option>
101                                         [% FOR bbag IN ctx.bookbags %]
102                                             <option value="[% bbag.id %]">[% bbag.name | html %]</option>
103                                         [% END %]
104                                     </select>
105                                 </div>
106                             </div>
107                         [% END %]
108                         <div class="submit_btn">
109                             <input type='image' src="[% ctx.media_prefix %]/images/kpac/review_submit_btn.png" alt="[% l('Submit') %]" />
110                         </div>
111                     </div>
112                 </div>
113             </td>
114         </tr>
115     </table>
116 </div>
117
118 <div class="sub_navigation2 checkout">
119     <table cellpadding="0" cellspacing="0" border="0" width="100%">
120         <tr>
121             [%  # in the absence of a sane referer, return to the detail page
122                 url = ctx.kpac_root _ (ctx.referer.match('results') ? '/results' : '/record/' _ ctx.bre_id) %]
123             <td><a href="[% mkurl(url) %]"><img src="[% ctx.media_prefix %]/images/kpac/cancel_back_btn.png" /></a></td>
124             <td width="100%" class="nav_mid_bg">&nbsp;</td>
125         </tr>
126     </table>
127 </div>
128          
129 [% END %]