LP1869898 Remove staffcat AOUS; activate holds template
authorBill Erickson <berickxx@gmail.com>
Thu, 6 Aug 2020 17:58:14 +0000 (13:58 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 13 Aug 2020 15:16:37 +0000 (11:16 -0400)
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 <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.ang-cat-default.sql [new file with mode: 0644]

index 5856dab..18086b3 100644 (file)
@@ -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 (file)
index 0000000..96f4465
--- /dev/null
@@ -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;