From 99abae9a0f7b2240fa38723e67e68879c9f0e9f7 Mon Sep 17 00:00:00 2001 From: Dan Briem Date: Sun, 20 Feb 2022 15:05:02 -0500 Subject: [PATCH] LP#1961534 Setting to hide the "Clear These Holds" button New org unit setting to hide the Clear These Holds button from the Holds Shelf interface. Signed-off-by: Dan Briem --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 20 +++++++++++++++++ .../xxxx.data.hide_clear_these_holds_button.sql | 25 ++++++++++++++++++++++ .../templates/staff/circ/holds/t_shelf_list.tt2 | 3 ++- Open-ILS/web/js/ui/default/staff/circ/holds/app.js | 6 ++++++ 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/xxxx.data.hide_clear_these_holds_button.sql 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 58f4a18fcc..1a2a74b318 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -22049,3 +22049,23 @@ VALUES ( 'cwst', 'label' ) ); + +INSERT INTO config.org_unit_setting_type ( + name, grp, label, description, datatype +) VALUES ( + 'ui.hide_clear_these_holds_button', + 'gui', + oils_i18n_gettext( + 'ui.hide_clear_these_holds_button', + 'Hide the Clear These Holds button', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'ui.hide_clear_these_holds_button', + 'Hide the Clear These Holds button from the Holds Shelf interface.', + 'coust', + 'description' + ), + 'bool' +); diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.hide_clear_these_holds_button.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.hide_clear_these_holds_button.sql new file mode 100644 index 0000000000..7c442f573b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.hide_clear_these_holds_button.sql @@ -0,0 +1,25 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version); + +INSERT INTO config.org_unit_setting_type ( +name, grp, label, description, datatype +) VALUES ( + 'ui.hide_clear_these_holds_button', + 'gui', + oils_i18n_gettext( + 'ui.hide_clear_these_holds_button', + 'Hide the Clear These Holds button', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'ui.hide_clear_these_holds_button', + 'Hide the Clear These Holds button from the Holds Shelf interface.', + 'coust', + 'description' + ), + 'bool' +); + +COMMIT; \ No newline at end of file diff --git a/Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 b/Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 index c89823cff0..c3d0b271b1 100644 --- a/Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 +++ b/Open-ILS/src/templates/staff/circ/holds/t_shelf_list.tt2 @@ -17,7 +17,8 @@ hidden="active_mode" disabled="is_clearing" label="[% l('Show All Holds') %]"> -