From: Dan Briem Date: Sun, 20 Feb 2022 20:05:02 +0000 (-0500) Subject: LP#1961534 Setting to hide the "Clear These Holds" button X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=99abae9a0f7b2240fa38723e67e68879c9f0e9f7;p=working%2FEvergreen.git 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 --- 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') %]"> -