]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
created setting to enable the creation of pending addresses
[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" src='org_unit_settings.js'></script>
28         <script>
29             // Configure the different settings
30             var osSettings = {
31                 'circ.lost_materials_processing_fee' : {
32                     label : '&staff.server.admin.org_settings.lost_fee;',
33                     type : 'currency',
34                 },
35                 'cat.default_item_price' : {
36                     label : '&staff.server.admin.org_settings.default_price;',
37                     type : 'currency',
38                 },
39                 'auth.opac_timeout' : {
40                     label : '&staff.server.admin.org_settings.opac_timeout;',
41                     type : 'number',
42                 },
43                 'auth.staff_timeout' : {
44                     label : '&staff.server.admin.org_settings.staff_timeout;',
45                     type : 'number',
46                 },
47                 'org.bounced_emails' : {
48                     label : '&staff.server.admin.org_settings.from_address;',
49                     desc : '&staff.server.admin.org_settings.bounce_note;'
50                 },
51                 'circ.hold_expire_alert_interval' : {
52                     label : '&staff.server.admin.org_settings.circ.hold_expire_alert_interval;',
53                     desc : '&staff.server.admin.org_settings.circ.hold_expire_alert_interval.desc;',
54                 },
55                 'circ.hold_expire_interval' : {
56                     label : '&staff.server.admin.org_settings.circ.hold_expire_interval;',
57                     desc : '&staff.server.admin.org_settings.circ.hold_expire_interval.desc;',
58                 },
59                 'global.credit.allow' : {
60                     label : '&staff.server.admin.org_settings.global.credit.allow;',
61                     desc : '&staff.server.admin.org_settings.global.credit.allow.desc;',
62                     type : 'bool'
63                 },
64                 'global.default_locale' : {
65                     label : '&staff.server.admin.org_settings.global.default_locale;',
66                 },
67                 'circ.void_overdue_on_lost' : {
68                     label : '&staff.server.admin.org_settings.circ.void_overdue_on_lost;',
69                     type : 'bool'
70                 },
71                 'circ.hold_stalling.soft' : {
72                     label : '&staff.server.admin.org_settings.circ.hold_stalling.soft;',
73                     desc : '&staff.server.admin.org_settings.circ.hold_stalling.soft.desc;',
74                 },
75                 'circ.hold_boundary.hard' : {
76                     label : '&staff.server.admin.org_settings.circ.hold_boundary.hard;',
77                     type : 'number'
78                 },
79                 'circ.hold_boundary.soft' : {
80                     label : '&staff.server.admin.org_settings.circ.hold_boundary.soft;',
81                     type : 'number'
82                 },
83                 'opac.barcode_regex' : {
84                     label : '&staff.server.admin.org_settings.opac.barcode_regex;',
85                     desc : '&staff.server.admin.org_settings.opac.barcode_regex.desc;'
86                 },
87                 'global.password_regex' : {
88                     label : '&staff.server.admin.org_settings.global.password_regex;',
89                     desc : '&staff.server.admin.org_settings.global.password_regex.desc;'
90                 },
91                 'circ.item_checkout_history.max' : {
92                     label : '&staff.server.admin.org_settings.circ.item_checkout_history.max;',
93                     desc : '&staff.server.admin.org_settings.circ.item_checkout_history.max.desc;'
94                 },
95                 'circ.reshelving_complete.interval' : {
96                     label : '&staff.server.admin.org_settings.circ.reshelving_complete.interval;',
97                     desc : '&staff.server.admin.org_settings.circ.reshelving_complete.interval.desc;',
98                     noInherit : true
99                 },
100                 'circ.hold_estimate_wait_interval' : {
101                     label : '&staff.server.admin.org_settings.circ.hold_estimate_wait_interval;',
102                     desc : '&staff.server.admin.org_settings.circ.hold_estimate_wait_interval.desc;',
103                     type : 'number'
104                 },
105                 'circ.selfcheck.patron_login_timeout' : {
106                     label : '&staff.server.admin.org_settings.circ.selfcheck.patron_login_timeout;',
107                     desc : '&staff.server.admin.org_settings.circ.selfcheck.patron_login_timeout.desc;',
108                     type : 'number'
109                 },
110                 'circ.selfcheck.alert_on_checkout_event' : {
111                     label : '&staff.server.admin.org_settings.circ.selfcheck.alert_on_checkout_event;',
112                     desc : '&staff.server.admin.org_settings.circ.selfcheck.alert_on_checkout_event.desc;',
113                     type : 'bool'
114                 },
115                 'circ.selfcheck.require_patron_password' : {
116                     label : '&staff.server.admin.org_settings.circ.selfcheck.require_patron_password;',
117                     desc : '&staff.server.admin.org_settings.circ.selfcheck.require_patron_password.desc;',
118                     type : 'bool'
119                 },
120                 'global.juvenile_age_threshold' : {
121                     label : '&staff.server.admin.org_settings.global.juvenile_age_threshold;',
122                     desc : '&staff.server.admin.org_settings.global.juvenile_age_threshold.desc;',
123                 },
124                 'cat.bib.keep_on_empty' : {
125                     label : '&staff.server.admin.org_settings.cat.bib.keep_on_empty;',
126                     desc : '&staff.server.admin.org_settings.cat.bib.keep_on_empty.desc;',
127                     type : 'bool'
128                 },
129                 'cat.bib.alert_on_empty' : {
130                     label : '&staff.server.admin.org_settings.cat.bib.alert_on_empty;',
131                     desc : '&staff.server.admin.org_settings.cat.bib.alert_on_empty.desc;',
132                     type : 'bool'
133                 },
134                 'patron.password.use_phone' : {
135                     label : '&staff.server.admin.org_settings.patron.password.use_phone;',
136                     desc : '&staff.server.admin.org_settings.patron.password.use_phone.desc;',
137                     type : 'bool'
138                 },
139                 'ui.circ.patron_summary.horizontal' : {
140                     label : '&ui.circ.patron_summary.horizontal;',
141                     desc : '&ui.circ.patron_summary.horizontal.desc;',
142                     type : 'bool'
143                 },
144                 'ui.general.button_bar' : {
145                     label : '&ui.general.button_bar;',
146                     desc : '&ui.general.button_bar.desc;',
147                     type : 'bool'
148                 },
149                 'ui.network.progress_meter' : {
150                     label : '&ui.network.progress_meter;',
151                     desc : '&ui.network.progress_meter.desc;',
152                     type : 'bool'
153                 },
154                 'circ.charge_on_damaged' : {
155                     label : '&staff.server.admin.org_settings.circ.charge_on_damaged;',
156                     desc : '&staff.server.admin.org_settings.circ.charge_on_damaged.desc;',
157                     type : 'bool'
158                 },
159                 'circ.damaged_item_processing_fee' : {
160                     label : '&staff.server.admin.org_settings.circ.damaged_item_processing_fee;',
161                     desc : '&staff.server.admin.org_settings.circ.damaged_item_processing_fee.desc;',
162                 },
163
164                 'circ.void_lost_on_checkin' : {
165                     label : '&staff.server.admin.org_settings.circ.void_lost_on_checkin;',
166                     desc : '&staff.server.admin.org_settings.circ.void_lost_on_checkin.desc;',
167                     type : 'bool'
168                 },
169                 'circ.max_accept_return_of_lost' : {
170                     label : '&staff.server.admin.org_settings.circ.max_accept_return_of_lost;',
171                     desc : '&staff.server.admin.org_settings.circ.max_accept_return_of_lost.desc;',
172                 },
173                 'circ.void_lost_proc_fee_on_checkin' : {
174                     label : '&staff.server.admin.org_settings.circ.void_lost_proc_fee_on_checkin;',
175                     desc : '&staff.server.admin.org_settings.circ.void_lost_proc_fee_on_checkin.desc;',
176                     type : 'bool'
177                 },
178                 'circ.restore_overdue_on_lost_return' : {
179                     label : '&staff.server.admin.org_settings.circ.restore_overdue_on_lost_return;',
180                     desc : '&staff.server.admin.org_settings.circ.restore_overdue_on_lost_return.desc;',
181                     type : 'bool'
182                 },
183                 'circ.lost_immediately_available' : {
184                     label : '&staff.server.admin.org_settings.circ.lost_immediately_available;',
185                     desc : '&staff.server.admin.org_settings.circ.lost_immediately_available.desc;',
186                     type : 'bool'
187                 },
188                 'opac.allow_pending_address' : {
189                     label : '&staff.server.admin.org_settings.opac.allow_pending_address;',
190                     desc : '&staff.server.admin.org_settings.opac.allow_pending_address.desc;',
191                     type : 'bool'
192                 }
193             };
194         </script>
195     </head>
196     <body class="tundra tall">
197         <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
198             <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
199                 <h1>&staff.server.admin.org_unit_settings.title;</h1><br/>
200                 <span>&staff.server.admin.org_unit_settings.context;</span>
201                 <span>
202                     <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
203                         searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'> 
204                     </select>
205                 </span>
206                 <span>&staff.server.admin.org_unit_settings.uninherited;</span>
207             </div>
208             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
209                 <script>
210                     var osGridLayout = [{
211                         defaultCell: {styles: 'text-align: center;'},
212                         cells : [[
213                             {   name: 'Edit', 
214                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>Edit&lt;/a>',
215                                 get: osGetEditLink, 
216                                 formatter : osFormatEditLink
217                             },
218                             {name: 'Setting', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
219                             {name: 'Context', get: osGetGridData, field:'context'},
220                             {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
221                         ]]
222                     }];
223                 </script>
224                 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
225             </div>
226         </div>
227
228         <!-- edit dialog -->
229         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
230             <table class='form_table'>
231                 <thead>
232                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
233                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
234                 </thead>
235                 <tbody>
236                     <tr>
237                         <td>Context</td>
238                         <td> 
239                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
240                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
241                             </select>
242                         </td>
243                     </tr>
244                     <tr>
245                         <td>Value</td>
246                         <td>
247                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
248                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
249                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
250                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
251                                 <option value='true'>&common.true;</option>
252                                 <option value='false'>&common.false;</option>
253                             </select>
254                         </td>
255                     </tr>
256                     <tr>
257                         <td> 
258                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
259                         </td>
260                         <td> 
261                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
262                         </td>
263                     </tr>
264                 </tbody>
265             </table>
266         </div> <!-- edit dialog -->
267         <span id='os-true' class='hidden'>&common.true;</span>
268         <span id='os-false' class='hidden'>&common.false;</span>
269     </body>
270 </html>
271