]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
added org setting for future ability to close patron-related staff client tabs after...
[Evergreen.git] / Open-ILS / xul / staff_client / server / admin / org_unit_settings.xhtml
1 <?xml version='1.0' encoding="UTF-8"?>
2 <!-- 
3 # Copyright (C) 2008  Georgia Public Library Service
4 # Bill Erickson <erickson@esilibrary.com>
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 -->
15
16 <!DOCTYPE html PUBLIC 
17         "-//W3C//DTD XHTML 1.0 Transitional//EN" 
18         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
19         <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
20 ]>
21
22 <html xmlns='http://www.w3.org/1999/xhtml'>
23     <head>
24         <title>&staff.server.admin.org_unit_settings.title;</title>
25         <link type='text/css' rel='stylesheet' href='admin.css'/>
26         <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/dojo.js"></script>
27  <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/openils_dojo.js"></script>
28         <script type="text/javascript" src='org_unit_settings.js'></script>
29         <script>
30             // Configure the different settings
31             var osSettings = {
32                 'circ.lost_materials_processing_fee' : {
33                     label : '&staff.server.admin.org_settings.lost_fee;',
34                     type : 'currency',
35                 },
36                 'cat.default_item_price' : {
37                     label : '&staff.server.admin.org_settings.default_price;',
38                     type : 'currency',
39                 },
40                 'auth.opac_timeout' : {
41                     label : '&staff.server.admin.org_settings.opac_timeout;',
42                     type : 'number',
43                 },
44                 'auth.staff_timeout' : {
45                     label : '&staff.server.admin.org_settings.staff_timeout;',
46                     type : 'number',
47                 },
48                 'org.bounced_emails' : {
49                     label : '&staff.server.admin.org_settings.from_address;',
50                     desc : '&staff.server.admin.org_settings.bounce_note;'
51                 },
52                 'circ.hold_expire_alert_interval' : {
53                     label : '&staff.server.admin.org_settings.circ.hold_expire_alert_interval;',
54                     desc : '&staff.server.admin.org_settings.circ.hold_expire_alert_interval.desc;',
55                 },
56                 'circ.hold_expire_interval' : {
57                     label : '&staff.server.admin.org_settings.circ.hold_expire_interval;',
58                     desc : '&staff.server.admin.org_settings.circ.hold_expire_interval.desc;',
59                 },
60                 'global.credit.allow' : {
61                     label : '&staff.server.admin.org_settings.global.credit.allow;',
62                     desc : '&staff.server.admin.org_settings.global.credit.allow.desc;',
63                     type : 'bool'
64                 },
65                 'global.default_locale' : {
66                     label : '&staff.server.admin.org_settings.global.default_locale;',
67                 },
68                 'circ.void_overdue_on_lost' : {
69                     label : '&staff.server.admin.org_settings.circ.void_overdue_on_lost;',
70                     type : 'bool'
71                 },
72                 'circ.hold_stalling.soft' : {
73                     label : '&staff.server.admin.org_settings.circ.hold_stalling.soft;',
74                     desc : '&staff.server.admin.org_settings.circ.hold_stalling.soft.desc;',
75                 },
76                 'circ.hold_boundary.hard' : {
77                     label : '&staff.server.admin.org_settings.circ.hold_boundary.hard;',
78                     type : 'number'
79                 },
80                 'circ.hold_boundary.soft' : {
81                     label : '&staff.server.admin.org_settings.circ.hold_boundary.soft;',
82                     type : 'number'
83                 },
84                 'opac.barcode_regex' : {
85                     label : '&staff.server.admin.org_settings.opac.barcode_regex;',
86                     desc : '&staff.server.admin.org_settings.opac.barcode_regex.desc;'
87                 },
88                 'global.password_regex' : {
89                     label : '&staff.server.admin.org_settings.global.password_regex;',
90                     desc : '&staff.server.admin.org_settings.global.password_regex.desc;'
91                 },
92                 'circ.item_checkout_history.max' : {
93                     label : '&staff.server.admin.org_settings.circ.item_checkout_history.max;',
94                     desc : '&staff.server.admin.org_settings.circ.item_checkout_history.max.desc;'
95                 },
96                 'circ.reshelving_complete.interval' : {
97                     label : '&staff.server.admin.org_settings.circ.reshelving_complete.interval;',
98                     desc : '&staff.server.admin.org_settings.circ.reshelving_complete.interval.desc;',
99                     noInherit : true
100                 },
101                 'circ.hold_estimate_wait_interval' : {
102                     label : '&staff.server.admin.org_settings.circ.hold_estimate_wait_interval;',
103                     desc : '&staff.server.admin.org_settings.circ.hold_estimate_wait_interval.desc;',
104                     type : 'number'
105                 },
106                 'circ.selfcheck.patron_login_timeout' : {
107                     label : '&staff.server.admin.org_settings.circ.selfcheck.patron_login_timeout;',
108                     desc : '&staff.server.admin.org_settings.circ.selfcheck.patron_login_timeout.desc;',
109                     type : 'number'
110                 },
111                 'circ.selfcheck.alert_on_checkout_event' : {
112                     label : '&staff.server.admin.org_settings.circ.selfcheck.alert_on_checkout_event;',
113                     desc : '&staff.server.admin.org_settings.circ.selfcheck.alert_on_checkout_event.desc;',
114                     type : 'bool'
115                 },
116                 'circ.selfcheck.require_patron_password' : {
117                     label : '&staff.server.admin.org_settings.circ.selfcheck.require_patron_password;',
118                     desc : '&staff.server.admin.org_settings.circ.selfcheck.require_patron_password.desc;',
119                     type : 'bool'
120                 },
121                 'global.juvenile_age_threshold' : {
122                     label : '&staff.server.admin.org_settings.global.juvenile_age_threshold;',
123                     desc : '&staff.server.admin.org_settings.global.juvenile_age_threshold.desc;',
124                 },
125                 'cat.bib.keep_on_empty' : {
126                     label : '&staff.server.admin.org_settings.cat.bib.keep_on_empty;',
127                     desc : '&staff.server.admin.org_settings.cat.bib.keep_on_empty.desc;',
128                     type : 'bool'
129                 },
130                 'cat.bib.alert_on_empty' : {
131                     label : '&staff.server.admin.org_settings.cat.bib.alert_on_empty;',
132                     desc : '&staff.server.admin.org_settings.cat.bib.alert_on_empty.desc;',
133                     type : 'bool'
134                 },
135                 'patron.password.use_phone' : {
136                     label : '&staff.server.admin.org_settings.patron.password.use_phone;',
137                     desc : '&staff.server.admin.org_settings.patron.password.use_phone.desc;',
138                     type : 'bool'
139                 },
140                 'ui.circ.patron_summary.horizontal' : {
141                     label : '&ui.circ.patron_summary.horizontal;',
142                     desc : '&ui.circ.patron_summary.horizontal.desc;',
143                     type : 'bool'
144                 },
145                 'ui.general.button_bar' : {
146                     label : '&ui.general.button_bar;',
147                     desc : '&ui.general.button_bar.desc;',
148                     type : 'bool'
149                 },
150                 'ui.network.progress_meter' : {
151                     label : '&ui.network.progress_meter;',
152                     desc : '&ui.network.progress_meter.desc;',
153                     type : 'bool'
154                 },
155                 'circ.charge_on_damaged' : {
156                     label : '&staff.server.admin.org_settings.circ.charge_on_damaged;',
157                     desc : '&staff.server.admin.org_settings.circ.charge_on_damaged.desc;',
158                     type : 'bool'
159                 },
160                 'circ.damaged_item_processing_fee' : {
161                     label : '&staff.server.admin.org_settings.circ.damaged_item_processing_fee;',
162                     desc : '&staff.server.admin.org_settings.circ.damaged_item_processing_fee.desc;',
163                 },
164
165                 'circ.void_lost_on_checkin' : {
166                     label : '&staff.server.admin.org_settings.circ.void_lost_on_checkin;',
167                     desc : '&staff.server.admin.org_settings.circ.void_lost_on_checkin.desc;',
168                     type : 'bool'
169                 },
170                 'circ.max_accept_return_of_lost' : {
171                     label : '&staff.server.admin.org_settings.circ.max_accept_return_of_lost;',
172                     desc : '&staff.server.admin.org_settings.circ.max_accept_return_of_lost.desc;',
173                 },
174                 'circ.void_lost_proc_fee_on_checkin' : {
175                     label : '&staff.server.admin.org_settings.circ.void_lost_proc_fee_on_checkin;',
176                     desc : '&staff.server.admin.org_settings.circ.void_lost_proc_fee_on_checkin.desc;',
177                     type : 'bool'
178                 },
179                 'circ.restore_overdue_on_lost_return' : {
180                     label : '&staff.server.admin.org_settings.circ.restore_overdue_on_lost_return;',
181                     desc : '&staff.server.admin.org_settings.circ.restore_overdue_on_lost_return.desc;',
182                     type : 'bool'
183                 },
184                 'circ.lost_immediately_available' : {
185                     label : '&staff.server.admin.org_settings.circ.lost_immediately_available;',
186                     desc : '&staff.server.admin.org_settings.circ.lost_immediately_available.desc;',
187                     type : 'bool'
188                 },
189                 'opac.allow_pending_address' : {
190                     label : '&staff.server.admin.org_settings.opac.allow_pending_address;',
191                     desc : '&staff.server.admin.org_settings.opac.allow_pending_address.desc;',
192                     type : 'bool'
193                 },
194                 'ui.circ.show_billing_tab_on_bills' : {
195                     label : '&staff.server.admin.org_settings.ui.circ.show_billing_tab_on_bills;',
196                     desc : '&staff.server.admin.org_settings.ui.circ.show_billing_tab_on_bills.desc;',
197                     type : 'bool'
198                 },
199                 'ui.circ.patron_display_timeout_interval' : {
200                     label : '&staff.server.admin.org_settings.ui.circ.patron_display_timeout_interval;',
201                     desc : '&staff.server.admin.org_settings.ui.circ.patron_display_timeout_interval.desc;',
202                 }
203             };
204         </script>
205     </head>
206     <body class="tundra tall">
207         <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
208             <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
209                 <h1>&staff.server.admin.org_unit_settings.title;</h1><br/>
210                 <span>&staff.server.admin.org_unit_settings.context;</span>
211                 <span>
212                     <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
213                         searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'> 
214                     </select>
215                 </span>
216                 <span>&staff.server.admin.org_unit_settings.uninherited;</span>
217             </div>
218             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
219                 <script>
220                     var osGridLayout = [{
221                         defaultCell: {styles: 'text-align: center;'},
222                         cells : [[
223                             {   name: 'Edit', 
224                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>Edit&lt;/a>',
225                                 get: osGetEditLink, 
226                                 formatter : osFormatEditLink
227                             },
228                             {name: 'Setting', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
229                             {name: 'Context', get: osGetGridData, field:'context'},
230                             {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
231                         ]]
232                     }];
233                 </script>
234                 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
235             </div>
236         </div>
237
238         <!-- edit dialog -->
239         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
240             <table class='form_table'>
241                 <thead>
242                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
243                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
244                 </thead>
245                 <tbody>
246                     <tr>
247                         <td>Context</td>
248                         <td> 
249                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
250                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
251                             </select>
252                         </td>
253                     </tr>
254                     <tr>
255                         <td>Value</td>
256                         <td>
257                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
258                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
259                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
260                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
261                                 <option value='true'>&common.true;</option>
262                                 <option value='false'>&common.false;</option>
263                             </select>
264                         </td>
265                     </tr>
266                     <tr>
267                         <td> 
268                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
269                         </td>
270                         <td> 
271                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
272                         </td>
273                     </tr>
274                 </tbody>
275             </table>
276         </div> <!-- edit dialog -->
277         <span id='os-true' class='hidden'>&common.true;</span>
278         <span id='os-false' class='hidden'>&common.false;</span>
279     </body>
280 </html>
281