]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/myopac/prefs_settings.tt2
LP#1527342 Patron checkout history TPAC display
[Evergreen.git] / Open-ILS / src / templates / opac / myopac / prefs_settings.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     PROCESS "opac/parts/org_selector.tt2";
3     WRAPPER "opac/parts/myopac/prefs_base.tt2";
4     myopac_page = "prefs";
5     prefs_page = 'prefs_settings' %]
6
7     <h3 class="sr-only">[% l('Search and History Preferences') %]</h3>
8
9     <form method='post'>
10
11        <table class="full-width data_grid" id="acct_search_main"
12             title="[% l('Search and History Preferences') %]">
13             <tbody>
14
15                 [% IF ctx.updated_user_settings %]
16                 <tr><td colspan='2'>
17                     <div class='renew-summary'>
18                         [% l('Account Successfully Updated') %]
19                     </div>
20                 </td></tr>
21                 [% END %]
22
23                 [%- setting = 'opac.hits_per_page' -%]
24                 <tr >
25                     <td width='20%'><label for='[% setting %]'>[% l("Search hits per page") %]</label></td>
26                     <td>
27                         <select id='[% setting %]' name='[% setting %]'>
28                             [%  UNLESS ctx.user_setting_map.$setting;
29                                     ctx.user_setting_map.$setting = 10;
30                                 END;
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>
35                             [% END %]
36                         </select>
37                         <a href="#"><img alt="[% l('Search Hits Help') %]" 
38                             src="[% ctx.media_prefix %]/images/question-mark.png"
39                         /></a>
40                     </td>
41                 </tr>
42                 [%- setting = 'opac.default_search_location'; -%]
43                 <tr >
44                     <td width='20%'><label for='[% setting %]'>[% l("Preferred search location") %]</label></td>
45                     <td>
46                         [%- thang = ctx.user.home_ou.id;
47                             IF ctx.user_setting_map.$setting;
48                                 thang = ctx.user_setting_map.$setting;
49                             END;
50                             id = setting;
51                             INCLUDE build_org_selector name=setting value=thang;
52                         %]
53                     </td>
54                 </tr>
55                 [%- setting = 'opac.default_pickup_location'; -%]
56                 <tr>
57                     <td width='20%'><label for='[% setting %]'>[% l("Preferred pickup location") %]</label></td>
58                     <td>
59                         [%- thang = ctx.user.home_ou.id;
60                             IF ctx.user_setting_map.$setting;
61                                 thang = ctx.user_setting_map.$setting;
62                             END;
63                             id = setting;
64                             INCLUDE build_org_selector name=setting value=thang can_have_vols_only=1;
65                         %]
66                     </td>
67                 </tr>
68                 [%- setting = 'history.circ.retention_start' -%]
69                 <tr>
70                     [% circ_name = l('Keep history of checked out items?') %]
71                     <td><label for='[% setting %]'>[% circ_name%]</label></td>
72                     <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 %]/>
77                     </td>
78                 </tr>
79                 [%- setting = 'history.hold.retention_start' -%]
80                 <tr>
81                     [% hold_name =  l('Keep history of holds?') %]
82                     <td><label for='[% setting %]'>[% hold_name %]</label></td>
83                     <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 %]/>
88                     </td>
89                 </tr>
90                 [%- setting = 'opac.temporary_list_no_warn' -%]
91                 <tr>
92                     [% skip_warn =  l('Skip warning when adding to temporary book list?') %]
93                     <td><label for='[% setting %]'>[% skip_warn %]</label></td>
94                     <td>
95                         <input id='[% setting %]' name='[% setting %]' 
96                             type="checkbox" title="[% skip_warn %]"
97                             [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
98                     </td>
99                 </tr>
100                 [%- setting = 'circ.holds_behind_desk'; IF ctx.behind_desk_supported -%]
101                 <tr>
102                     [% behind_desk = l('Pickup holds from behind the desk when possible?') %]
103                     <td><label for='[% setting %]'>[% behind_desk %]</label></td>
104                     <td>
105                         <input id='[% setting %]' name='[% setting %]' 
106                             type="checkbox" title="[% behind_desk %]"
107                             [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
108                     </td>
109                 </tr>
110                 [% END %]
111
112                 <!--
113                 <tr>
114                     <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
115                     <td>
116                         <select id='prefs_def_font'>
117                             <option value='regular'>[% l("Regular Font") %]</option>
118                             <option value='large'>[% l("Large Font") %]</option>
119                         </select>
120                     </td>
121                 </tr>
122                 -->
123
124             </tbody>
125         </table>
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.') %]
129         <br/>
130         [% l('Are you sure you wish to continue?') %]
131         </div>
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"/>
135         [% ELSE %]
136         <input type="submit" value="[% l('Save') %]" class="opac-button"/>
137         [% END %]
138     </form>
139     [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]
140 [% END %]