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