1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/org_selector.tt2";
3 WRAPPER "opac/parts/myopac/prefs_base.tt2";
5 prefs_page = 'prefs_settings' %]
7 <h3 class="sr-only">[% l('Search and History Preferences') %]</h3>
9 <form method='post' action="prefs_settings">
11 <table class="full-width table" id="acct_search_main"
12 title="[% l('Search and History Preferences') %]">
15 [% IF ctx.confirm_history_delete %]
17 <div id='clear-history-confirm' class='renew-summary text-center'>
18 [% l('Disabling checkout or holds history will permanently remove all items from your history.') %]
20 [% l('Are you sure you wish to continue?') %]
22 <a href="[% mkurl() %]" class="btn btn-deny">[% l('Cancel') %]</a>
23 <input type='hidden' name='history_delete_confirmed' value='1'/>
24 <input type="submit" value="[% l('Confirm') %]" class="btn btn-confirm"/>
27 [% ELSIF ctx.updated_user_settings OR ctx.updated_waiver_entries %]
29 <div class='renew-summary'>
30 [% l('Account Successfully Updated') %]
35 [%- setting = 'opac.hits_per_page' -%]
37 <td width='20%'><label for='[% setting %]'>[% l("Search hits per page") %]</label></td>
39 <select class="form-control mini-control" id='[% setting %]' name='[% setting %]'>
40 [% UNLESS ctx.user_setting_map.$setting;
41 ctx.user_setting_map.$setting = 10;
43 FOR val IN [5, 8, 10, 15, 20, 25, 50] %]
44 <option value='[% val | uri %]'
45 [% IF ctx.user_setting_map.$setting == val %]
46 selected='selected'[% END %]>[% val | html %]</option>
49 <a href="#"><img alt="[% l('Search Hits Help') %]"
50 src="[% ctx.media_prefix %]/images/question-mark.png[% ctx.cache_key %]"
54 [%- setting = 'opac.default_search_location'; -%]
56 <td width='20%'><label for='[% setting %]'>[% l("Preferred search location") %]</label></td>
58 [%- thang = ctx.user.home_ou.id;
59 IF ctx.user_setting_map.$setting;
60 thang = ctx.user_setting_map.$setting;
63 INCLUDE build_org_selector name=setting value=thang;
67 [%- setting = 'opac.default_pickup_location'; -%]
69 <td width='20%'><label for='[% setting %]'>[% l("Preferred pickup location") %]</label></td>
71 [%- thang = ctx.user.home_ou.id;
72 IF ctx.user_setting_map.$setting;
73 thang = ctx.user_setting_map.$setting;
76 INCLUDE build_org_selector name=setting value=thang can_have_vols_only=1;
80 [%- setting = 'history.circ.retention_start' -%]
82 [% circ_name = l('Keep history of checked out items?') %]
83 <td><label for='[% setting %]'>[% circ_name%]</label></td>
85 <input id='[% setting %]' name='[% setting %]'
86 type="checkbox" title="[% circ_name %]"
87 [% IF ctx.user_setting_map.$setting
88 AND !ctx.clear_circ_history; %] checked='checked' [% END %]/>
91 [%- setting = 'history.hold.retention_start' -%]
93 [% hold_name = l('Keep history of holds?') %]
94 <td><label for='[% setting %]'>[% hold_name %]</label></td>
96 <input id='[% setting %]' name='[% setting %]'
97 type="checkbox" title="[% hold_name %]"
98 [% IF ctx.user_setting_map.$setting
99 AND !ctx.clear_hold_history; %] checked='checked' [% END %]/>
102 [%- setting = 'opac.temporary_list_no_warn' -%]
104 [% skip_warn = l('Skip warning when adding to temporary book list?') %]
105 <td><label for='[% setting %]'>[% skip_warn %]</label></td>
107 <input id='[% setting %]' name='[% setting %]'
108 type="checkbox" title="[% skip_warn %]"
109 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
112 [%- setting = 'circ.holds_behind_desk'; IF ctx.behind_desk_supported -%]
114 [% behind_desk = l('Pickup holds from behind the desk when possible?') %]
115 <td><label for='[% setting %]'>[% behind_desk %]</label></td>
117 <input id='[% setting %]' name='[% setting %]'
118 type="checkbox" title="[% behind_desk %]"
119 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
124 [%- IF ctx.get_org_setting(ctx.user.home_ou.id, 'circ.privacy_waiver'); %]
126 <td>[% l('Allow others to use my account') %]</td>
128 [% FOR waiver IN ctx.user.waiver_entries %]
129 <div id="waiver_[% waiver.id %]">
130 <input type="hidden" name="waiver_id" value="[% waiver.id %]"/>
131 [% l('Name:') %] <input type="textbox" name="waiver_name_[% waiver.id %]" value="[% waiver.name | html %]"/><br/>
133 <input type="checkbox" name="waiver_place_holds"
134 value="[% waiver.id %]" [% waiver.place_holds == 't' ? 'checked="checked"' : '' %]/>
135 [% l('Place Holds') %]
138 <input type="checkbox" name="waiver_pickup_holds"
139 value="[% waiver.id %]" [% waiver.pickup_holds == 't' ? 'checked="checked"' : '' %]/>
140 [% l('Pick Up Holds') %]
143 <input type="checkbox" name="waiver_checkout_items"
144 value="[% waiver.id %]" [% waiver.checkout_items == 't' ? 'checked="checked"' : '' %]/>
145 [% l('Check Out Items') %]
148 <input type="checkbox" name="waiver_view_history"
149 value="[% waiver.id %]" [% waiver.view_history == 't' ? 'checked="checked"' : '' %]/>
150 [% l('View Borrowing History') %]
156 [% l('Name:') %] <input type="textbox" name="waiver_name_new"/><br/>
157 <label><input type="checkbox" name="waiver_place_holds" value="new"/>[% l('Place Holds') %]</label>
158 <label><input type="checkbox" name="waiver_pickup_holds" value="new"/>[% l('Pick Up Holds') %]</label>
159 <label><input type="checkbox" name="waiver_checkout_items" value="new"/>[% l('Check Out Items') %]</label>
160 <label><input type="checkbox" name="waiver_view_history" value="new"/>[% l('View Borrowing History') %]</label>
168 <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
170 <select id='prefs_def_font'>
171 <option value='regular'>[% l("Regular Font") %]</option>
172 <option value='large'>[% l("Large Font") %]</option>
180 [% IF !ctx.confirm_history_delete %]
181 <input type="submit" value="[% l('Save') %]" class="btn btn-confirm"/>
184 [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]