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 INCLUDE get_marc_attrs args=attrs;
7 ctx.page_title = attrs.title | html
10 <div id="search_results_parent">
11 [% INCLUDE 'kpac/parts/record_row.tt2' rec_id=ctx.bre_id%]
14 <div class="checkout_options">
15 <table cellpadding="0" cellspacing="0" border="0">
17 <td valign="top" class="left_brain_cell">
18 <div class="left_brain">
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>
23 [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='password_help' %]
24 <p>[% l('Enter your password') %]</p>
27 <div class="top_side">
28 <h2>[% l('get it!') %]</h2>
29 <p>[% l('If you would like to place a hold on this item, please enter the ' _
30 'following information and click Submit below:') %]</p>
33 <form method='POST'><!-- login + place hold form -->
35 <div class="checkout_box">
36 <div class="box1_top"> </div>
37 <div class="box_inside">
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';}" />
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="[% l('pin number help') %]" /></a>
51 <div class="clear"> </div>
52 <div class="hr"> </div>
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';}" />
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>
65 <input type="hidden" name='pickup_lib' value='0' id='pickup_lib'>
67 <div class="clear"> </div>
68 <div class="hr"> </div>
72 <p>[% l('Choose a Pickup Library:') %]</p>
73 <div class="pickup_lib">
74 [% def_lib = ctx.default_pickup_lib || ctx.physical_loc;
75 PROCESS "opac/parts/org_selector.tt2";
76 INCLUDE build_org_selector name='pickup_lib'
77 value=def_lib id='pickup_lib' can_have_vols_only=1 hold_pickup_lib=0 %]
79 <!-- HIDDEN FIELDS FOR DEFAULT NOTIFICATION PREFERENCES -->
80 [%- IF ctx.notify_method -%]
81 [%- IF ctx.notify_method == '' OR ctx.notify_method == 'phone:email' -%]
82 [%- SET ctx.notify_method = 'email|phone' -%]
85 [%- SET ctx.notify_method = 'email|phone' -%]
88 [%- IF ctx.user.email -%]
89 [% ctx.notify_method.search('email') ?
90 '<input type="hidden" id="email_notify" name="email_notify" value="t"/>' : '' %]
93 [%- IF allow_phone_notifications == 'true' -%]
94 [% IF ctx.default_phone %]
95 [% phone_value = ctx.default_phone %]
97 [% phone_value= ctx.user.day_phone %]
100 [% ctx.notify_method.search('phone') ?
101 '<input type="hidden" id="phone_notify_checkbox" name="phone_notify_checkbox" value="t"/>
102 <input type="hidden" name="phone_notify" value="' _ phone_value _ '"/>' : '' %]
105 [% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %]
106 [% setting_notify = 'opac.default_sms_notify';
107 setting_carrier = 'opac.default_sms_carrier'; %]
108 [% ctx.notify_method.search('sms') ?
109 '<input type="hidden" id="sms_notify_checkbox" name="sms_notify_checkbox" value="t" />
110 <input type="hidden" id="sms_carrier" name="sms_carrier" value="' _ ctx.user_setting_map.$setting_carrier _ '" />
111 <input type="hidden" id="sms_notify" name="sms_notify" value="' _ ctx.user_setting_map.$setting_notify _ '" />' : '' %]
118 <div class="submit_btn">
119 <input type='hidden' name='action' value='hold'/>
120 <input type='image' src="[% ctx.media_prefix %]/images/kpac/review_submit_btn.png" alt="[% l('Submit') %]"/>
127 <div class="right_brain">
128 <div class="top_side">
129 <h2>[% l('save it!') %]</h2>
130 <p>[% l('If you would like to save this item to a list to be requested later, click Submit below.') %]</p>
131 [% IF ctx.user AND ctx.bookbags AND ctx.bookbags.size > 0 %]
134 [% l('You may also save this item to a list you have already created by selecting one of your lists below.') %]
139 <input type='hidden' name='action' value='save'/>
140 [% IF ctx.user AND ctx.bookbags AND ctx.bookbags.size > 0 %]
141 <div class="checkout_box">
142 <div class="box1_top"> </div>
143 <div class="box_inside">
144 <p>[% l('Add to one of your lists?') %]</p>
145 <select name='bookbag'>
146 <option value='' selected='selected'>[% l('-- Temporary List --') %]</option>
147 [% FOR bbag IN ctx.bookbags %]
148 <option value="[% bbag.id %]">[% bbag.name | html %]</option>
154 <div class="submit_btn">
155 <input type='image' src="[% ctx.media_prefix %]/images/kpac/review_submit_btn.png" alt="[% l('Submit') %]" />
164 <div class="sub_navigation2 checkout">
165 <table cellpadding="0" cellspacing="0" border="0" width="100%">
167 [% # in the absence of a sane referer, return to the detail page
168 url = ctx.kpac_root _ (ctx.referer.match('results') ? '/results' : '/record/' _ ctx.bre_id) %]
169 <td><a href="[% mkurl(url) %]"><img src="[% ctx.media_prefix %]/images/kpac/cancel_back_btn.png" /></a></td>
170 <td width="100%" class="nav_mid_bg"> </td>