LP1888723 Use existing user setting for copy templates
authorBill Erickson <berickxx@gmail.com>
Tue, 9 Feb 2021 16:33:33 +0000 (11:33 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Sun, 15 Aug 2021 23:56:20 +0000 (19:56 -0400)
Also propagate the new 'defaults' workstation setting to the seed data
file.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.volcopy-settings.sql

index 1396a8d..46d9b39 100644 (file)
@@ -87,7 +87,7 @@ export class VolCopyService {
 
         // These will come up later -- prefetch.
         .then(_ => this.serverStore.getItemBatch([
-            'cat.copy.templates',
+            'webstaff.cat.copy.templates',
             'eg.cat.volcopy.defaults',
             'eg.cat.record.summary.collapse'
         ]))
index 791ba23..0bd33a3 100644 (file)
@@ -21799,6 +21799,15 @@ VALUES (
     oils_i18n_gettext(
         'eg.grid.acq.funding_source.credit',
         'Grid Config: eg.grid.acq.funding_source.credit',
+    )
+);
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.cat.volcopy.defaults', 'cat', 'object',
+    oils_i18n_gettext(
+        'eg.cat.volcopy.defaults',
+        'Holdings Editor Default Values and Visibility',
         'cwst', 'label'
     )
 );
index cbac2a5..741288a 100644 (file)
@@ -1,3 +1,6 @@
+BEGIN;
+
+--SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version);
 
 INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
 VALUES (
@@ -7,13 +10,6 @@ VALUES (
         'Holdings Editor Default Values and Visibility',
         'cwst', 'label'
     )
-), (
-    'cat.copy.templates', 'cat', 'object',
-    oils_i18n_gettext(
-        'cat.copy.templates',
-        'Holdings Editor Copy Templates',
-        'cwst', 'label'
-    )
 );
 
-
+COMMIT;