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 (
'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.',
--- /dev/null
+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;
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();