[open-ils-commits] r17316 - in trunk/Open-ILS: web/opac/locale/en-US web/templates/default/conify/global/config xul/staff_client/chrome/content/main (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Aug 23 15:19:56 EDT 2010
Author: erickson
Date: 2010-08-23 15:19:51 -0400 (Mon, 23 Aug 2010)
New Revision: 17316
Added:
trunk/Open-ILS/web/templates/default/conify/global/config/rule_age_hold_protect.tt2
trunk/Open-ILS/web/templates/default/conify/global/config/rule_circ_duration.tt2
trunk/Open-ILS/web/templates/default/conify/global/config/rule_max_fine.tt2
trunk/Open-ILS/web/templates/default/conify/global/config/rule_recurring_fine.tt2
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
Log:
conify UIs for config.rule_ stuff;
Includes duration, recurring fine, max fine, and age hold protect
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-08-23 18:39:43 UTC (rev 17315)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-08-23 19:19:51 UTC (rev 17316)
@@ -697,6 +697,10 @@
<!ENTITY staff.main.menu.admin.server_admin.conify.circulation_modifier.label "Circulation Modifiers">
<!ENTITY staff.main.menu.admin.server_admin.conify.org_unit_setting_type "Organization Unit Setting Types">
<!ENTITY staff.main.menu.admin.server_admin.conify.usr_setting_type "User Setting Types">
+<!ENTITY staff.main.menu.admin.server_admin.conify.config_rule_circ_duration "Circulation Duration Rules">
+<!ENTITY staff.main.menu.admin.server_admin.conify.config_rule_recurring_fine "Circulation Recurring Fine Rules">
+<!ENTITY staff.main.menu.admin.server_admin.conify.config_rule_max_fine "Circulation Max Fine Rules">
+<!ENTITY staff.main.menu.admin.server_admin.conify.config_rule_age_hold_protect "Age Hold Protect Rules">
<!ENTITY staff.main.menu.admin.server_admin.conify.global_flag.label "Global Flags">
<!ENTITY staff.main.menu.admin.server_admin.acq.label "Acquisitions">
Added: trunk/Open-ILS/web/templates/default/conify/global/config/rule_age_hold_protect.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/rule_age_hold_protect.tt2 (rev 0)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/rule_age_hold_protect.tt2 2010-08-23 19:19:51 UTC (rev 17316)
@@ -0,0 +1,27 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Age Hold Protect Rules' %]
+<script type="text/javascript">
+ dojo.require('openils.Util');
+ dojo.require('openils.widget.AutoGrid');
+ openils.Util.addOnLoad( function() { ruleAgeProtectGrid.loadAll(); } );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+ <div>Age Hold Protect Rules</div>
+ <div>
+ <button dojoType='dijit.form.Button' onClick='ruleAgeProtectGrid.showCreateDialog()'>New Age Hold Protect Rule</button>
+ <button dojoType='dijit.form.Button' onClick='ruleAgeProtectGrid.deleteSelected()'>Delete Selected</button>
+ </div>
+ </div>
+ <div>
+ <table jsId="ruleAgeProtectGrid"
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'age', 'prox']"
+ suppressFields="['id']"
+ query="{id: '*'}"
+ fmClass='crahp'
+ editOnEnter='true'/>
+</div>
+[% END %]
+
+
Added: trunk/Open-ILS/web/templates/default/conify/global/config/rule_circ_duration.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/rule_circ_duration.tt2 (rev 0)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/rule_circ_duration.tt2 2010-08-23 19:19:51 UTC (rev 17316)
@@ -0,0 +1,27 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Circ Duration Rules' %]
+<script type="text/javascript">
+ dojo.require('openils.Util');
+ dojo.require('openils.widget.AutoGrid');
+ openils.Util.addOnLoad( function() { ruleCircDurationGrid.loadAll(); } );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+ <div>Circ Duration Rules</div>
+ <div>
+ <button dojoType='dijit.form.Button' onClick='ruleCircDurationGrid.showCreateDialog()'>New Duration Rule</button>
+ <button dojoType='dijit.form.Button' onClick='ruleCircDurationGrid.deleteSelected()'>Delete Selected</button>
+ </div>
+ </div>
+ <div>
+ <table jsId="ruleCircDurationGrid"
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'max_renewals', 'shrt', 'normal', 'extended']"
+ suppressFields="['id']"
+ query="{id: '*'}"
+ fmClass='crcd'
+ editOnEnter='true'/>
+</div>
+[% END %]
+
+
Added: trunk/Open-ILS/web/templates/default/conify/global/config/rule_max_fine.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/rule_max_fine.tt2 (rev 0)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/rule_max_fine.tt2 2010-08-23 19:19:51 UTC (rev 17316)
@@ -0,0 +1,27 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Circ Max Fine Rules' %]
+<script type="text/javascript">
+ dojo.require('openils.Util');
+ dojo.require('openils.widget.AutoGrid');
+ openils.Util.addOnLoad( function() { ruleMaxFineGrid.loadAll(); } );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+ <div>Circ Max Fine Rules</div>
+ <div>
+ <button dojoType='dijit.form.Button' onClick='ruleMaxFineGrid.showCreateDialog()'>New Max Fine Rule</button>
+ <button dojoType='dijit.form.Button' onClick='ruleMaxFineGrid.deleteSelected()'>Delete Selected</button>
+ </div>
+ </div>
+ <div>
+ <table jsId="ruleMaxFineGrid"
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'amount', 'is_percent']"
+ suppressFields="['id']"
+ query="{id: '*'}"
+ fmClass='crmf'
+ editOnEnter='true'/>
+</div>
+[% END %]
+
+
Added: trunk/Open-ILS/web/templates/default/conify/global/config/rule_recurring_fine.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/rule_recurring_fine.tt2 (rev 0)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/rule_recurring_fine.tt2 2010-08-23 19:19:51 UTC (rev 17316)
@@ -0,0 +1,27 @@
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Recurring Fine Rules' %]
+<script type="text/javascript">
+ dojo.require('openils.Util');
+ dojo.require('openils.widget.AutoGrid');
+ openils.Util.addOnLoad( function() { ruleRecurringFineGrid.loadAll(); } );
+</script>
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+ <div>Recurring Fine Rules</div>
+ <div>
+ <button dojoType='dijit.form.Button' onClick='ruleRecurringFineGrid.showCreateDialog()'>New Recurring Fine Rule</button>
+ <button dojoType='dijit.form.Button' onClick='ruleRecurringFineGrid.deleteSelected()'>Delete Selected</button>
+ </div>
+ </div>
+ <div>
+ <table jsId="ruleRecurringFineGrid"
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'recurrence_interval', 'low', 'normal', 'high']"
+ suppressFields="['id']"
+ query="{id: '*'}"
+ fmClass='crrf'
+ editOnEnter='true'/>
+</div>
+[% END %]
+
+
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-08-23 18:39:43 UTC (rev 17315)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2010-08-23 19:19:51 UTC (rev 17316)
@@ -617,6 +617,22 @@
['oncommand'],
function() { open_eg_web_page('conify/global/permission/grp_penalty_threshold'); }
],
+ 'cmd_local_admin_config_rule_circ_duration' : [
+ ['oncommand'],
+ function() { open_eg_web_page('conify/global/config/rule/circ_duration'); }
+ ],
+ 'cmd_local_admin_config_rule_recurring_fine' : [
+ ['oncommand'],
+ function() { open_eg_web_page('conify/global/config/rule/recurring_fine'); }
+ ],
+ 'cmd_local_admin_config_rule_max_fine' : [
+ ['oncommand'],
+ function() { open_eg_web_page('conify/global/config/rule/max_fine'); }
+ ],
+ 'cmd_local_admin_config_rule_age_hold_protect' : [
+ ['oncommand'],
+ function() { open_eg_web_page('conify/global/config/rule/age_hold_protect'); }
+ ],
'cmd_local_admin_external_text_editor' : [
['oncommand'],
function() {
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2010-08-23 18:39:43 UTC (rev 17315)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul 2010-08-23 19:19:51 UTC (rev 17316)
@@ -159,6 +159,10 @@
<command id="cmd_server_admin_global_flag"/>
<command id="cmd_server_admin_org_unit_setting_type"/>
<command id="cmd_server_admin_usr_setting_type"/>
+ <command id="cmd_server_admin_config_rule_circ_duration"/>
+ <command id="cmd_server_admin_config_rule_recurring_fine"/>
+ <command id="cmd_server_admin_config_rule_max_fine"/>
+ <command id="cmd_server_admin_config_rule_age_hold_protect"/>
<command id="cmd_server_admin_booking_resource" />
<command id="cmd_server_admin_booking_resource_type" />
<command id="cmd_server_admin_booking_resource_attr" />
@@ -385,6 +389,10 @@
<menuitem label="&staff.main.menu.admin.server_admin.conify.global_flag.label;" command="cmd_server_admin_global_flag"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.org_unit_setting_type;" command="cmd_server_admin_org_unit_setting_type"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.usr_setting_type;" command="cmd_server_admin_usr_setting_type"/>
+ <menuitem label="&staff.main.menu.admin.server_admin.conify.config_rule_circ_duration;" command="cmd_server_admin_config_rule_circ_duration"/>
+ <menuitem label="&staff.main.menu.admin.server_admin.conify.config_rule_recurring_fine;" command="cmd_server_admin_config_rule_recurring_fine"/>
+ <menuitem label="&staff.main.menu.admin.server_admin.conify.config_rule_max_fine;" command="cmd_server_admin_config_rule_max_fine"/>
+ <menuitem label="&staff.main.menu.admin.server_admin.conify.config_rule_age_hold_protect;" command="cmd_server_admin_config_rule_age_hold_protect"/>
<menu id="main.menu.admin.server.acq" label="&staff.main.menu.admin.server_admin.acq.label;" accesskey="&staff.main.menu.admin.server_admin.acq.accesskey;">
<menupopup id="main.menu.admin.server.acq.popup">
<menuitem label="&staff.main.menu.admin.server_admin.acq.fund.label;" accesskey="&staff.main.menu.admin.server_admin.acq.fund.accesskey;" command="cmd_server_admin_acq_fund" />
More information about the open-ils-commits
mailing list