From: Bill Erickson Date: Thu, 6 Aug 2020 17:58:14 +0000 (-0400) Subject: LP1869898 Remove staffcat AOUS; activate holds template X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0c3e75b56a9d95b5fbfdb71ce2b00a7a7fb55cdf;p=evergreen%2Fmasslnc.git LP1869898 Remove staffcat AOUS; activate holds template Remove the org unit setting for enabling access to the Angular staff catalog, since it is now the default catalog. Activate the stock holds-for-bib print template, which is used by the staff catalog holds-for-record grid. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- 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 5856dabfe0..18086b3704 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -20025,25 +20025,6 @@ VALUES ( ) ); --- NOTE: This setting should be removed once the Angular catalog --- becomes the default. -INSERT into config.org_unit_setting_type - (name, datatype, grp, label, description) -VALUES ( - 'ui.staff.angular_catalog.enabled', 'bool', 'gui', - oils_i18n_gettext( - 'ui.staff.angular_catalog.enabled', - 'GUI: Enable Experimental Angular Staff Catalog', - 'coust', 'label' - ), - oils_i18n_gettext( - 'ui.staff.angular_catalog.enabled', - 'Display an entry point in the browser client for the ' || - 'experimental Angular staff catalog.', - 'coust', 'description' - ) -); - INSERT INTO config.org_unit_setting_type (name, label, description, grp, datatype) VALUES ( @@ -20230,7 +20211,7 @@ $TEMPLATE$ INSERT INTO config.print_template (id, name, locale, active, owner, label, template) VALUES ( - 2, 'holds_for_bib', 'en-US', FALSE, + 2, 'holds_for_bib', 'en-US', TRUE, (SELECT id FROM actor.org_unit WHERE parent_ou IS NULL), oils_i18n_gettext(2, 'Holds for Bib Record', 'cpt', 'label'), $TEMPLATE$ diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql new file mode 100644 index 0000000000..96f44657a9 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql @@ -0,0 +1,18 @@ + +BEGIN; + +-- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version); + +DELETE FROM actor.org_unit_setting + WHERE name = 'ui.staff.angular_catalog.enabled'; + +DELETE FROM config.org_unit_setting_type_log + WHERE field_name = 'ui.staff.angular_catalog.enabled'; + +DELETE FROM config.org_unit_setting_type + WHERE name = 'ui.staff.angular_catalog.enabled'; + +-- activate the stock hold-for-bib server print template +UPDATE config.print_template SET active = TRUE WHERE name = 'holds_for_bib'; + +COMMIT;