LP#1712854: Add wide_hold grid settings to server storage user/kmlussier/lp-1712854-hold_ui_speed_improvements
authorKathy Lussier <klussier@masslnc.org>
Wed, 29 Aug 2018 21:00:39 +0000 (17:00 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 29 Aug 2018 21:17:57 +0000 (17:17 -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>
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 aa0f163..048bd34 100644 (file)
@@ -18663,10 +18663,10 @@ VALUES (
         'cwst', 'label'
     )
 ), (
-    'eg.grid.cat.catalog.holds', 'gui', 'object',
+    'eg.grid.cat.catalog.wide_holds', 'gui', 'object',
     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'
     )
 ), (
@@ -18684,10 +18684,10 @@ VALUES (
         'cwst', 'label'
     )
 ), (
-    'eg.grid.circ.holds.shelf', 'gui', 'object',
+    'eg.grid.circ.wide_holds.shelf', 'gui', 'object',
     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'
     )
 ), (
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;