From: phasefx Date: Mon, 26 Oct 2009 15:37:48 +0000 (+0000) Subject: Org unit setting for auto-hiding the patron summary sidebar X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0cc03c86faf26a85cd13b64d4a5614fbb4c6c0e5;p=evergreen%2Ftadl.git Org unit setting for auto-hiding the patron summary sidebar git-svn-id: svn://svn.open-ils.org/ILS/trunk@14606 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index a85f84f809..805182a161 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log ( 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 ( diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 7dcd9b2732..9c522575ce 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1697,6 +1697,11 @@ INSERT into config.org_unit_setting_type '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 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.', diff --git a/Open-ILS/src/sql/Pg/upgrade/0055.data.org-setting-autohide-patron-summary.sql b/Open-ILS/src/sql/Pg/upgrade/0055.data.org-setting-autohide-patron-summary.sql new file mode 100644 index 0000000000..63283fe948 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0055.data.org-setting-autohide-patron-summary.sql @@ -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; diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 0bcd8f6525..70fe2676ec 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -565,8 +565,9 @@ patron.display.prototype = { 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();