LP#1117808: add cat.default_merge_profile library setting
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 10 Feb 2017 15:49:33 +0000 (10:49 -0500)
committerKathy Lussier <klussier@masslnc.org>
Fri, 17 Feb 2017 15:13:36 +0000 (10:13 -0500)
This new library setting specifies the default merge profile
to select in the record bucket merge and Z39.50 record overlay
interfaces.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/YYYY.data.default_vmp_ou_setting.sql [new file with mode: 0644]

index d6bb2ef..6b49c3c 100644 (file)
@@ -5048,6 +5048,23 @@ INSERT into config.org_unit_setting_type
         'description'
     ),
     'string', null)
+,(
+    'cat.default_merge_profile', 'cat',
+    oils_i18n_gettext(
+        'cat.default_merge_profile',
+        'Default Merge Profile (Z39.50 and Record Buckets)',
+        'coust',
+        'label'
+    ),
+     oils_i18n_gettext(
+        'cat.default_merge_profile',
+        'Default merge profile to use during Z39.50 imports and record bucket merges',
+        'coust',
+        'description'
+    ),
+    'link',
+    'vmp'
+)
 ,( 'opac.browse.pager_shortcuts', 'opac',
     oils_i18n_gettext(
         'opac.browse.pager_shortcuts',
diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.data.default_vmp_ou_setting.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.data.default_vmp_ou_setting.sql
new file mode 100644 (file)
index 0000000..ebc8b16
--- /dev/null
@@ -0,0 +1,25 @@
+BEGIN;
+
+-- SELECT evergreen.upgrade_deps_block_check('YYYY', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+(
+    'cat.default_merge_profile', 'cat',
+    oils_i18n_gettext(
+        'cat.default_merge_profile',
+        'Default Merge Profile (Z39.50 and Record Buckets)',
+        'coust',
+        'label'
+    ),
+     oils_i18n_gettext(
+        'cat.default_merge_profile',
+        'Default merge profile to use during Z39.50 imports and record bucket merges',
+        'coust',
+        'description'
+    ),
+    'link',
+    'vmp'
+);
+
+COMMIT;