LP1913338 Catalog search form visibility stickiness
authorBill Erickson <berickxx@gmail.com>
Thu, 28 Jan 2021 15:32:11 +0000 (10:32 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 15 Sep 2021 18:50:23 +0000 (14:50 -0400)
On pages in the Angular staff catalog where the search form is collapsed
by default, users may now also manually expand and re-collapse the form.
The last used choice will be sticky via new workstation setting.

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.staffcat-sticky-search-form.sql [new file with mode: 0644]

index 0cea2b8..0187f7a 100644 (file)
@@ -21625,6 +21625,15 @@ VALUES (
     oils_i18n_gettext(
         'eg.orgselect.catalog.holdings',
         'Default org unit for catalog holdings tab',
+    )
+);
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.catalog.search.form.open', 'gui', 'bool',
+    oils_i18n_gettext(
+        'eg.catalog.search.form.open',
+        'Catalog Search Form Visibility Sticky Setting',
         'cwst', 'label'
     )
 );
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.staffcat-sticky-search-form.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.staffcat-sticky-search-form.sql
new file mode 100644 (file)
index 0000000..be47ba6
--- /dev/null
@@ -0,0 +1,15 @@
+BEGIN;
+
+-- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version);
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+    'eg.catalog.search.form.open', 'gui', 'bool',
+    oils_i18n_gettext(
+        'eg.catalog.search.form.open',
+        'Catalog Search Form Visibility Sticky Setting',
+        'cwst', 'label'
+    )
+);
+
+COMMIT;