]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
plugged in charge-on-damaged logic, org settings, and billing type
[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                 'circ.void_item_billing_on_lost_return' : {
150                     label : '&staff.server.admin.org_settings.circ.void_item_billing_on_lost_return;',
151                     desc : '&staff.server.admin.org_settings.circ.void_item_billing_on_lost_return.desc;',
152                     type : 'bool'
153                 },
154                 'circ.void_item_billing_on_lost_return_before_interval' : {
155                     label : '&staff.server.admin.org_settings.circ.void_item_billing_on_lost_return_before_interval;',
156                     desc : '&staff.server.admin.org_settings.circ.void_item_billing_on_lost_return_before_interval.desc;',
157                 },
158                 'circ.charge_on_damaged' : {
159                     label : '&staff.server.admin.org_settings.circ.charge_on_damaged;',
160                     desc : '&staff.server.admin.org_settings.circ.charge_on_damaged.desc;',
161                 },
162                 'circ.damaged_item_processing_fee' : {
163                     label : '&staff.server.admin.org_settings.circ.damaged_item_processing_fee;',
164                     desc : '&staff.server.admin.org_settings.circ.damaged_item_processing_fee.desc;',
165                 }
166             };
167         </script>
168     </head>
169     <body class="tundra tall">
170         <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
171             <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
172                 <h1>&staff.server.admin.org_unit_settings.title;</h1><br/>
173                 <span>&staff.server.admin.org_unit_settings.context;</span>
174                 <span>
175                     <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
176                         searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'> 
177                     </select>
178                 </span>
179                 <span>&staff.server.admin.org_unit_settings.uninherited;</span>
180             </div>
181             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
182                 <script>
183                     var osGridLayout = [{
184                         defaultCell: {styles: 'text-align: center;'},
185                         cells : [[
186                             {name: 'Edit', get: osGetEditLink, 
187                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>Edit&lt;/a>'},
188                             {name: 'Setting', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
189                             {name: 'Context', get: osGetGridData, field:'context'},
190                             {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
191                         ]]
192                     }];
193                 </script>
194                 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
195             </div>
196         </div>
197
198         <!-- edit dialog -->
199         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
200             <table class='form_table'>
201                 <thead>
202                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
203                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
204                 </thead>
205                 <tbody>
206                     <tr>
207                         <td>Context</td>
208                         <td> 
209                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
210                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
211                             </select>
212                         </td>
213                     </tr>
214                     <tr>
215                         <td>Value</td>
216                         <td>
217                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
218                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
219                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
220                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
221                                 <option value='true'>&common.true;</option>
222                                 <option value='false'>&common.false;</option>
223                             </select>
224                         </td>
225                     </tr>
226                     <tr>
227                         <td> 
228                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
229                         </td>
230                         <td> 
231                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
232                         </td>
233                     </tr>
234                 </tbody>
235             </table>
236         </div> <!-- edit dialog -->
237         <span id='os-true' class='hidden'>&common.true;</span>
238         <span id='os-false' class='hidden'>&common.false;</span>
239     </body>
240 </html>
241