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.updated_user_settings %]
17 <div class='renew-summary'>
18 [% l('Account Successfully Updated') %]
23 [%- setting = 'opac.hits_per_page' -%]
25 <td width='20%'><label for='[% setting %]'>[% l("Search hits per page") %]</label></td>
27 <select id='[% setting %]' name='[% setting %]'>
28 [% UNLESS ctx.user_setting_map.$setting;
29 ctx.user_setting_map.$setting = 10;
31 FOR val IN [5, 8, 10, 15, 20, 25, 50] %]
32 <option value='[% val | uri %]'
33 [% IF ctx.user_setting_map.$setting == val %]
34 selected='selected'[% END %]>[% val | html %]</option>
37 <a href="#"><img alt="[% l('Search Hits Help') %]"
38 src="[% ctx.media_prefix %]/images/question-mark.png"
42 [%- setting = 'opac.default_search_location'; -%]
44 <td width='20%'><label for='[% setting %]'>[% l("Preferred search location") %]</label></td>
46 [%- thang = ctx.user.home_ou.id;
47 IF ctx.user_setting_map.$setting;
48 thang = ctx.user_setting_map.$setting;
51 INCLUDE build_org_selector name=setting value=thang;
55 [%- setting = 'opac.default_pickup_location'; -%]
57 <td width='20%'><label for='[% setting %]'>[% l("Preferred pickup location") %]</label></td>
59 [%- thang = ctx.user.home_ou.id;
60 IF ctx.user_setting_map.$setting;
61 thang = ctx.user_setting_map.$setting;
64 INCLUDE build_org_selector name=setting value=thang can_have_vols_only=1;
68 [%- setting = 'history.circ.retention_start' -%]
70 [% circ_name = l('Keep history of checked out items?') %]
71 <td><label for='[% setting %]'>[% circ_name%]</label></td>
73 <input id='[% setting %]' name='[% setting %]'
74 type="checkbox" title="[% circ_name %]"
75 [% IF ctx.user_setting_map.$setting
76 AND !ctx.clear_circ_history; %] checked='checked' [% END %]/>
79 [%- setting = 'history.hold.retention_start' -%]
81 [% hold_name = l('Keep history of holds?') %]
82 <td><label for='[% setting %]'>[% hold_name %]</label></td>
84 <input id='[% setting %]' name='[% setting %]'
85 type="checkbox" title="[% hold_name %]"
86 [% IF ctx.user_setting_map.$setting
87 AND !ctx.clear_hold_history; %] checked='checked' [% END %]/>
90 [%- setting = 'opac.temporary_list_no_warn' -%]
92 [% skip_warn = l('Skip warning when adding to temporary book list?') %]
93 <td><label for='[% setting %]'>[% skip_warn %]</label></td>
95 <input id='[% setting %]' name='[% setting %]'
96 type="checkbox" title="[% skip_warn %]"
97 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
100 [%- setting = 'circ.holds_behind_desk'; IF ctx.behind_desk_supported -%]
102 [% behind_desk = l('Pickup holds from behind the desk when possible?') %]
103 <td><label for='[% setting %]'>[% behind_desk %]</label></td>
105 <input id='[% setting %]' name='[% setting %]'
106 type="checkbox" title="[% behind_desk %]"
107 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
114 <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
116 <select id='prefs_def_font'>
117 <option value='regular'>[% l("Regular Font") %]</option>
118 <option value='large'>[% l("Large Font") %]</option>
126 [% IF ctx.confirm_history_delete %]
127 <div id='clear-history-confirm'>
128 [% l('Disabling checkout or holds history will permanently remove all items from your history.') %]
130 [% l('Are you sure you wish to continue?') %]
132 <a href="[% mkurl() %]">[% l('Cancel') %]</a>
133 <input type='hidden' name='history_delete_confirmed' value='1'/>
134 <input type="submit" value="[% l('Confirm') %]" class="opac-button"/>
136 <input type="submit" value="[% l('Save') %]" class="opac-button"/>
139 [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]