From 33f531f88e1136b804ca393d0d40b3ed8f37ac7b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 13 Mar 2018 14:06:23 -0400 Subject: [PATCH] LP#1750894 Workstation & Cascade settings Adds a new config.workstation_setting_type table for managing workstation-specific settings. Adds new PG and perl API functionality for determining values for settings which may be represnted as workstation, user, and/or org unit settings. Teaches the AngularJS browser client to load and apply most settings at the server. Values for settings stored in localStorage/Hatch are migrated to server settings at time of next use. Stock workstation setting types added to accommodate most browser client settings. Signed-off-by: Bill Erickson --- Open-ILS/examples/fm_IDL.xml | 46 +- Open-ILS/src/perlmods/MANIFEST | 1 + .../perlmods/lib/OpenILS/Application/Actor.pm | 1 + .../lib/OpenILS/Application/Actor/Settings.pm | 306 ++++++ Open-ILS/src/sql/Pg/002.schema.config.sql | 58 ++ Open-ILS/src/sql/Pg/005.schema.actors.sql | 164 ++++ Open-ILS/src/sql/Pg/950.data.seed-values.sql | 894 +++++++++++++++++- .../XXXX.schema.workstation-settings.sql | 227 +++++ .../YYYY.data.workstation-settings.sql | 893 +++++++++++++++++ .../staff/admin/workstation/index.tt2 | 2 + .../ui/default/staff/admin/workstation/app.js | 4 +- .../js/ui/default/staff/circ/checkin/app.js | 13 +- .../web/js/ui/default/staff/services/hatch.js | 386 +++++++- 13 files changed, 2954 insertions(+), 41 deletions(-) create mode 100644 Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Settings.pm create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.schema.workstation-settings.sql create mode 100644 Open-ILS/src/sql/Pg/upgrade/YYYY.data.workstation-settings.sql diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 5d7be8ceff..66d146e0d0 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -12499,8 +12499,52 @@ SELECT usr, - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +