]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
added some selfcheck configs
[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                 'circ.item_checkout_history.max' : {
88                     label : '&staff.server.admin.org_settings.circ.item_checkout_history.max;',
89                     desc : '&staff.server.admin.org_settings.circ.item_checkout_history.max.desc;'
90                 },
91                 'circ.reshelving_complete.interval' : {
92                     label : '&staff.server.admin.org_settings.circ.reshelving_complete.interval;',
93                     desc : '&staff.server.admin.org_settings.circ.reshelving_complete.interval.desc;',
94                     noInherit : true
95                 },
96                 'circ.hold_estimate_wait_interval' : {
97                     label : '&staff.server.admin.org_settings.circ.hold_estimate_wait_interval;',
98                     desc : '&staff.server.admin.org_settings.circ.hold_estimate_wait_interval.desc;',
99                     type : 'number'
100                 },
101                 'circ.selfcheck.patron_login_timeout' : {
102                     label : '&staff.server.admin.org_settings.circ.selfcheck.patron_login_timeout;',
103                     desc : '&staff.server.admin.org_settings.circ.selfcheck.patron_login_timeout.desc;',
104                     type : 'number'
105                 },
106                 'circ.selfcheck.alert_on_checkout_event' : {
107                     label : '&staff.server.admin.org_settings.circ.selfcheck.alert_on_checkout_event;',
108                     desc : '&staff.server.admin.org_settings.circ.selfcheck.alert_on_checkout_event.desc;',
109                     type : 'bool'
110                 },
111                 'circ.selfcheck.require_patron_password' : {
112                     label : '&staff.server.admin.org_settings.circ.selfcheck.require_patron_password;',
113                     desc : '&staff.server.admin.org_settings.circ.selfcheck.require_patron_password.desc;',
114                     type : 'bool'
115                 }
116             };
117         </script>
118     </head>
119     <body class="tundra tall">
120         <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
121             <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
122                 <h1>&staff.server.admin.org_unit_settings.title;</h1><br/>
123                 <span>&staff.server.admin.org_unit_settings.context;</span>
124                 <span>
125                     <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
126                         searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'> 
127                     </select>
128                 </span>
129                 <span>&staff.server.admin.org_unit_settings.uninherited;</span>
130             </div>
131             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
132                 <script>
133                     var osGridLayout = [{
134                         defaultCell: {styles: 'text-align: center;'},
135                         cells : [[
136                             {name: 'Edit', get: osGetEditLink, 
137                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>Edit&lt;/a>'},
138                             {name: 'Setting', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
139                             {name: 'Context', get: osGetGridData, field:'context', width:'auto'},
140                             {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
141                         ]]
142                     }];
143                 </script>
144                 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
145             </div>
146         </div>
147
148         <!-- edit dialog -->
149         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
150             <table class='form_table'>
151                 <thead>
152                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
153                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
154                 </thead>
155                 <tbody>
156                     <tr>
157                         <td>Context</td>
158                         <td> 
159                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
160                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
161                             </select>
162                         </td>
163                     </tr>
164                     <tr>
165                         <td>Value</td>
166                         <td>
167                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
168                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
169                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
170                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
171                                 <option value='true'>&common.true;</option>
172                                 <option value='false'>&common.false;</option>
173                             </select>
174                         </td>
175                     </tr>
176                     <tr>
177                         <td> 
178                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
179                         </td>
180                         <td> 
181                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
182                         </td>
183                     </tr>
184                 </tbody>
185             </table>
186         </div> <!-- edit dialog -->
187         <span id='os-true' class='hidden'>&common.true;</span>
188         <span id='os-false' class='hidden'>&common.false;</span>
189     </body>
190 </html>
191