1 <?xml version='1.0' encoding="UTF-8"?>
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.
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.
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"-->
22 <html xmlns='http://www.w3.org/1999/xhtml'>
24 <title>Org Unit Settings</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>
29 // Configure the different settings
31 'circ.lost_materials_processing_fee' : {
32 label : '&staff.server.admin.org_settings.lost_fee;',
35 'cat.default_item_price' : {
36 label : '&staff.server.admin.org_settings.default_price;',
39 'auth.opac_timeout' : {
40 label : '&staff.server.admin.org_settings.opac_timeout;',
44 'auth.staff_timeout' : {
45 label : '&staff.server.admin.org_settings.staff_timeout;',
49 'org.bounced_emails' : {
50 label : '&staff.server.admin.org_settings.from_address;',
51 desc : '&staff.server.admin.org_settings.bounce_note;'
53 'circ.hold_expire_alert_interval' : {
54 label : '&staff.server.admin.org_settings.circ.hold_expire_alert_interval;',
55 desc : '&staff.server.admin.org_settings.circ.hold_expire_alert_interval.desc;',
57 'circ.hold_expire_interval' : {
58 label : '&staff.server.admin.org_settings.circ.hold_expire_interval;',
59 desc : '&staff.server.admin.org_settings.circ.hold_expire_interval.desc;',
61 'global.credit.allow' : {
62 label : '&staff.server.admin.org_settings.global.credit.allow;',
63 desc : '&staff.server.admin.org_settings.global.credit.allow.desc;',
66 'global.default_locale' : {
67 label : '&staff.server.admin.org_settings.global.default_locale;',
69 'circ.void_overdue_on_lost' : {
70 label : '&staff.server.admin.org_settings.circ.void_overdue_on_lost;',
73 'circ.hold_stalling.soft' : {
74 label : '&staff.server.admin.org_settings.circ.hold_stalling.soft;',
75 desc : '&staff.server.admin.org_settings.circ.hold_stalling.soft.desc;',
77 'circ.hold_boundary.hard' : {
78 label : '&staff.server.admin.org_settings.circ.hold_boundary.hard;',
81 'circ.hold_boundary.soft' : {
82 label : '&staff.server.admin.org_settings.circ.hold_boundary.soft;',
85 'opac.barcode_regex' : {
86 label : '&staff.server.admin.org_settings.opac.barcode_regex;',
87 desc : '&staff.server.admin.org_settings.opac.barcode_regex.desc;'
89 'circ.item_checkout_history.max' : {
90 label : '&staff.server.admin.org_settings.circ.item_checkout_history.max;',
91 desc : '&staff.server.admin.org_settings.circ.item_checkout_history.max.desc;'
93 'circ.reshelving_complete.interval' : {
94 label : '&staff.server.admin.org_settings.circ.reshelving_complete.interval;',
95 desc : '&staff.server.admin.org_settings.circ.reshelving_complete.interval.desc;',
101 <body class="tundra tall">
102 <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
103 <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
104 <h1>Org Unit Settings</h1><br/>
105 <span>Context Location</span>
107 <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
108 searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'>
111 <span> * Indicates the setting is not inherited from the parent at run time</span>
113 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
115 var osGridLayout = [{
116 defaultCell: {styles: 'text-align: center;'},
118 {name: 'Edit', get: osGetEditLink,
119 value: '<a href="javascript:void(0);" onclick="osLaunchEditor(\'SETTING\');">Edit</a>'},
120 {name: 'Setting', get: osGetGridData, field:'label', width:'auto'},
121 {name: 'Context', get: osGetGridData, field:'context', width:'auto'},
122 {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
126 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
131 <div dojoType="dijit.Dialog" jsId='osEditDialog' title="Edit Setting">
132 <table class='form_table'>
134 <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
135 <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
141 <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
142 searchAttr="shortname" autocomplete="true" labelAttr='shortname'>
149 <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
150 <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
151 <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
152 <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
153 <option value='true'>&common.true;</option>
154 <option value='false'>&common.false;</option>
160 <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>Delete Setting</button>
163 <button dojoType='dijit.form.Button' onclick='osEditSetting();'>Update Setting</button>
168 </div> <!-- edit dialog -->
169 <span id='os-true' class='hidden'>&common.true;</span>
170 <span id='os-false' class='hidden'>&common.false;</span>