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' %]
10 <table class="full-width data_grid" id="acct_search_main"
11 title="[% l('Search and History Preferences') %]">
14 [% IF ctx.updated_user_settings %]
16 <div class='renew-summary'>
17 [% l('Account Successfully Updated') %]
22 [%- setting = 'opac.hits_per_page' -%]
24 <td width='20%'><label for='[% setting %]'>[% l("Search hits per page") %]</label></td>
26 <select id='[% setting %]' name='[% setting %]'>
27 [% UNLESS ctx.user_setting_map.$setting;
28 ctx.user_setting_map.$setting = 10;
30 FOR val IN [5, 8, 10, 15, 20, 25, 50] %]
31 <option value='[% val | uri %]'
32 [% IF ctx.user_setting_map.$setting == val %]
33 selected='selected'[% END %]>[% val | html %]</option>
36 <a href="#"><img alt="[% l('Search Hits Help') %]"
37 src="[% ctx.media_prefix %]/images/question-mark.png"
41 [%- setting = 'opac.default_search_location'; -%]
43 <td width='20%'><label for='[% setting %]'>[% l("Preferred search location") %]</label></td>
45 [%- thang = ctx.user.home_ou.id;
46 IF ctx.user_setting_map.$setting;
47 thang = ctx.user_setting_map.$setting;
50 INCLUDE build_org_selector name=setting value=thang;
54 [%- setting = 'opac.default_pickup_location'; -%]
56 <td width='20%'><label for='[% setting %]'>[% l("Preferred pickup 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 can_have_vols_only=1;
67 [%- setting = 'history.circ.retention_start' -%]
69 [% circ_name = l('Keep history of checked out items?') %]
70 <td><label for='[% setting %]'>[% circ_name%]</label></td>
72 <input id='[% setting %]' name='[% setting %]'
73 type="checkbox" title="[% circ_name %]"
74 [% IF ctx.user_setting_map.$setting; %] checked='checked' [% END %]/>
77 [%- setting = 'history.hold.retention_start' -%]
79 [% hold_name = l('Keep history of holds?') %]
80 <td><label for='[% setting %]'>[% hold_name %]</label></td>
82 <input id='[% setting %]' name='[% setting %]'
83 type="checkbox" title="[% hold_name %]"
84 [% IF ctx.user_setting_map.$setting; %] checked='checked' [% END %]/>
87 [%- setting = 'opac.temporary_list_no_warn' -%]
89 [% skip_warn = l('Skip warning when adding to temporary book list?') %]
90 <td><label for='[% setting %]'>[% skip_warn %]</label></td>
92 <input id='[% setting %]' name='[% setting %]'
93 type="checkbox" title="[% skip_warn %]"
94 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
97 [%- setting = 'circ.holds_behind_desk'; IF ctx.behind_desk_supported -%]
99 [% behind_desk = l('Pickup holds from behind the desk when possible?') %]
100 <td><label for='[% setting %]'>[% behind_desk %]</label></td>
102 <input id='[% setting %]' name='[% setting %]'
103 type="checkbox" title="[% behind_desk %]"
104 [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
111 <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
113 <select id='prefs_def_font'>
114 <option value='regular'>[% l("Regular Font") %]</option>
115 <option value='large'>[% l("Large Font") %]</option>
123 <input type="submit" value="[% l('Save') %]" class="opac-button"/>
125 [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]