[open-ils-commits] r14606 - in trunk/Open-ILS: src/sql/Pg src/sql/Pg/upgrade xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 26 11:37:51 EDT 2009
Author: phasefx
Date: 2009-10-26 11:37:48 -0400 (Mon, 26 Oct 2009)
New Revision: 14606
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0055.data.org-setting-autohide-patron-summary.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
Org unit setting for auto-hiding the patron summary sidebar
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-10-26 15:15:39 UTC (rev 14605)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2009-10-26 15:37:48 UTC (rev 14606)
@@ -51,7 +51,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0054'); -- berick
+INSERT INTO config.upgrade_log (version) VALUES ('0055'); -- phasefx
CREATE TABLE config.bib_source (
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2009-10-26 15:15:39 UTC (rev 14605)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2009-10-26 15:37:48 UTC (rev 14606)
@@ -1697,6 +1697,11 @@
'When true, the Date of Birth column in patron lists will default to Not Visible, and in the Patron Summary sidebar the value will display as <Hidden> unless the field label is clicked.',
'bool' ),
+( 'circ.auto_hide_patron_summary',
+ 'GUI: Toggle off the patron summary sidebar after first view.',
+ 'When true, the patron summary sidebar will collapse after a new patron sub-interface is selected.',
+ 'bool' ),
+
( 'credit.processor.default',
'Credit card processing: Name default credit processor',
'This might be "AuthorizeNet", "PayPal", etc.',
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0055.data.org-setting-autohide-patron-summary.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0055.data.org-setting-autohide-patron-summary.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0055.data.org-setting-autohide-patron-summary.sql 2009-10-26 15:37:48 UTC (rev 14606)
@@ -0,0 +1,13 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0055'); -- phasefx
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
+ VALUES (
+ 'circ.auto_hide_patron_summary',
+ 'GUI: Toggle off the patron summary sidebar after first view.',
+ 'When true, the patron summary sidebar will collapse after a new patron sub-interface is selected.',
+ 'bool'
+ );
+
+COMMIT;
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-10-26 15:15:39 UTC (rev 14605)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-10-26 15:37:48 UTC (rev 14606)
@@ -565,8 +565,9 @@
this.controller.view.cmd_patron_bills.setAttribute('style','');
this.controller.view.cmd_standing_penalties.setAttribute('style','');
this.controller.view[ btn ].setAttribute('style','background: blue; color: white;');
+ var auto_hide_patron_sidebar = String( this.OpenILS.data.hash.aous['circ.auto_hide_patron_summary'] ) == 'true';
var x = document.getElementById('splitter_grippy');
- if (x && ! dont_hide_summary) {
+ if (x && auto_hide_patron_sidebar && ! dont_hide_summary) {
if (! this.summary_hidden_once_already ) {
var first_deck = x.parentNode.previousSibling;
if (! first_deck.collapsed) x.doCommand();
More information about the open-ils-commits
mailing list