]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
added org setting to turn on 'show bills tab first when bills owed'
[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             };
200         </script>
201     </head>
202     <body class="tundra tall">
203         <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
204             <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
205                 <h1>&staff.server.admin.org_unit_settings.title;</h1><br/>
206                 <span>&staff.server.admin.org_unit_settings.context;</span>
207                 <span>
208                     <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
209                         searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'> 
210                     </select>
211                 </span>
212                 <span>&staff.server.admin.org_unit_settings.uninherited;</span>
213             </div>
214             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
215                 <script>
216                     var osGridLayout = [{
217                         defaultCell: {styles: 'text-align: center;'},
218                         cells : [[
219                             {   name: 'Edit', 
220                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>Edit&lt;/a>',
221                                 get: osGetEditLink, 
222                                 formatter : osFormatEditLink
223                             },
224                             {name: 'Setting', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
225                             {name: 'Context', get: osGetGridData, field:'context'},
226                             {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
227                         ]]
228                     }];
229                 </script>
230                 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
231             </div>
232         </div>
233
234         <!-- edit dialog -->
235         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
236             <table class='form_table'>
237                 <thead>
238                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
239                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
240                 </thead>
241                 <tbody>
242                     <tr>
243                         <td>Context</td>
244                         <td> 
245                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
246                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
247                             </select>
248                         </td>
249                     </tr>
250                     <tr>
251                         <td>Value</td>
252                         <td>
253                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
254                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
255                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
256                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
257                                 <option value='true'>&common.true;</option>
258                                 <option value='false'>&common.false;</option>
259                             </select>
260                         </td>
261                     </tr>
262                     <tr>
263                         <td> 
264                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
265                         </td>
266                         <td> 
267                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
268                         </td>
269                     </tr>
270                 </tbody>
271             </table>
272         </div> <!-- edit dialog -->
273         <span id='os-true' class='hidden'>&common.true;</span>
274         <span id='os-false' class='hidden'>&common.false;</span>
275     </body>
276 </html>
277