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