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; %] checked='checked' [% END %]/>
78 [%- setting = 'history.hold.retention_start' -%]
80 [% hold_name = l('Keep history of holds?') %]
81 <td><label for='[% setting %]'>[% hold_name %]</label></td>
83 <input id='[% setting %]' name='[% setting %]'
84 type="checkbox" title="[% hold_name %]"
85 [% IF ctx.user_setting_map.$setting; %] checked='checked' [% END %]/>
88 [%- setting = 'opac.temporary_list_no_warn' -%]
90 [% skip_warn = l('Skip warning when adding to temporary book list?') %]
91 <td><label for='[% setting %]'>[% skip_warn %]</label></td>
93 <input id='[% setting %]' name='[% setting %]'
94 type="checkbox" title="[% skip_warn %]"
95 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
98 [%- setting = 'circ.holds_behind_desk'; IF ctx.behind_desk_supported -%]
100 [% behind_desk = l('Pickup holds from behind the desk when possible?') %]
101 <td><label for='[% setting %]'>[% behind_desk %]</label></td>
103 <input id='[% setting %]' name='[% setting %]'
104 type="checkbox" title="[% behind_desk %]"
105 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
112 <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
114 <select id='prefs_def_font'>
115 <option value='regular'>[% l("Regular Font") %]</option>
116 <option value='large'>[% l("Large Font") %]</option>
124 <input type="submit" value="[% l('Save') %]" class="opac-button"/>
126 [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]