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>
11 <table class="full-width data_grid" 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'>
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() %]">[% l('Cancel') %]</a>
23 <input type='hidden' name='history_delete_confirmed' value='1'/>
24 <input type="submit" value="[% l('Confirm') %]" class="opac-button"/>
26 [% ELSIF ctx.updated_user_settings %]
28 <div class='renew-summary'>
29 [% l('Account Successfully Updated') %]
34 [%- setting = 'opac.hits_per_page' -%]
36 <td width='20%'><label for='[% setting %]'>[% l("Search hits per page") %]</label></td>
38 <select id='[% setting %]' name='[% setting %]'>
39 [% UNLESS ctx.user_setting_map.$setting;
40 ctx.user_setting_map.$setting = 10;
42 FOR val IN [5, 8, 10, 15, 20, 25, 50] %]
43 <option value='[% val | uri %]'
44 [% IF ctx.user_setting_map.$setting == val %]
45 selected='selected'[% END %]>[% val | html %]</option>
48 <a href="#"><img alt="[% l('Search Hits Help') %]"
49 src="[% ctx.media_prefix %]/images/question-mark.png"
53 [%- setting = 'opac.default_search_location'; -%]
55 <td width='20%'><label for='[% setting %]'>[% l("Preferred search location") %]</label></td>
57 [%- thang = ctx.user.home_ou.id;
58 IF ctx.user_setting_map.$setting;
59 thang = ctx.user_setting_map.$setting;
62 INCLUDE build_org_selector name=setting value=thang;
66 [%- setting = 'opac.default_pickup_location'; -%]
68 <td width='20%'><label for='[% setting %]'>[% l("Preferred pickup location") %]</label></td>
70 [%- thang = ctx.user.home_ou.id;
71 IF ctx.user_setting_map.$setting;
72 thang = ctx.user_setting_map.$setting;
75 INCLUDE build_org_selector name=setting value=thang can_have_vols_only=1;
79 [%- setting = 'history.circ.retention_start' -%]
81 [% circ_name = l('Keep history of checked out items?') %]
82 <td><label for='[% setting %]'>[% circ_name%]</label></td>
84 <input id='[% setting %]' name='[% setting %]'
85 type="checkbox" title="[% circ_name %]"
86 [% IF ctx.user_setting_map.$setting
87 AND !ctx.clear_circ_history; %] checked='checked' [% END %]/>
90 [%- setting = 'history.hold.retention_start' -%]
92 [% hold_name = l('Keep history of holds?') %]
93 <td><label for='[% setting %]'>[% hold_name %]</label></td>
95 <input id='[% setting %]' name='[% setting %]'
96 type="checkbox" title="[% hold_name %]"
97 [% IF ctx.user_setting_map.$setting
98 AND !ctx.clear_hold_history; %] checked='checked' [% END %]/>
101 [%- setting = 'opac.temporary_list_no_warn' -%]
103 [% skip_warn = l('Skip warning when adding to temporary book list?') %]
104 <td><label for='[% setting %]'>[% skip_warn %]</label></td>
106 <input id='[% setting %]' name='[% setting %]'
107 type="checkbox" title="[% skip_warn %]"
108 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
111 [%- setting = 'circ.holds_behind_desk'; IF ctx.behind_desk_supported -%]
113 [% behind_desk = l('Pickup holds from behind the desk when possible?') %]
114 <td><label for='[% setting %]'>[% behind_desk %]</label></td>
116 <input id='[% setting %]' name='[% setting %]'
117 type="checkbox" title="[% behind_desk %]"
118 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
125 <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
127 <select id='prefs_def_font'>
128 <option value='regular'>[% l("Regular Font") %]</option>
129 <option value='large'>[% l("Large Font") %]</option>
137 [% IF !ctx.confirm_history_delete %]
138 <input type="submit" value="[% l('Save') %]" class="opac-button"/>
141 [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]