LP#1712854: Add wide_hold grid settings to server storage
authorKathy Lussier <klussier@masslnc.org>
Wed, 29 Aug 2018 21:00:39 +0000 (17:00 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 4 Sep 2018 18:03:07 +0000 (14:03 -0400)
Adds the new wide_hold grid settings used in the holds shelf and record holds
interfaces to server storage, as is done with other grid settings. Also removes
the legacy eg.grid.circ.holds.shelf and eg.grid.cat.catalog.holds settings.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql [new file with mode: 0644]

index cf51b60..7973a4d 100644 (file)
@@ -18714,10 +18714,10 @@ VALUES (
         'cwst', 'label'
     )
 ), (
         'cwst', 'label'
     )
 ), (
-    'eg.grid.cat.catalog.holds', 'gui', 'object',
+    'eg.grid.cat.catalog.wide_holds', 'gui', 'object',
     oils_i18n_gettext(
     oils_i18n_gettext(
-        'eg.grid.cat.catalog.holds',
-        'Grid Config: cat.catalog.holds',
+        'eg.grid.cat.catalog.wide_holds',
+        'Grid Config: cat.catalog.wide_holds',
         'cwst', 'label'
     )
 ), (
         'cwst', 'label'
     )
 ), (
@@ -18735,10 +18735,10 @@ VALUES (
         'cwst', 'label'
     )
 ), (
         'cwst', 'label'
     )
 ), (
-    'eg.grid.circ.holds.shelf', 'gui', 'object',
+    'eg.grid.circ.wide_holds.shelf', 'gui', 'object',
     oils_i18n_gettext(
     oils_i18n_gettext(
-        'eg.grid.circ.holds.shelf',
-        'Grid Config: circ.holds.shelf',
+        'eg.grid.circ.wide_holds.shelf',
+        'Grid Config: circ.wide_holds.shelf',
         'cwst', 'label'
     )
 ), (
         'cwst', 'label'
     )
 ), (
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.wide_holds-workstation-settings.sql
new file mode 100644 (file)
index 0000000..e693d68
--- /dev/null
@@ -0,0 +1,25 @@
+BEGIN;
+
+--SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT into config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.grid.circ.wide_holds.shelf', 'gui', 'object',
+    oils_i18n_gettext (
+        'eg.grid.circ.wide_holds.shelf',
+        'Grid Config: circ.wide_holds.shelf',
+        'cwst', 'label'
+    )
+), (
+    'eg.grid.cat.catalog.wide_holds', 'gui', 'object',
+    oils_i18n_gettext(
+        'eg.grid.cat.catalog.wide_holds',
+        'Grid Config: cat.catalog.wide_holds',
+        'cwst', 'label'
+    )
+);
+
+DELETE from config.workstation_setting_type
+WHERE name = 'eg.grid.cat.catalog.holds' OR name = 'eg.grid.circ.holds.shelf';
+
+COMMIT;