From: Bill Erickson Date: Thu, 19 Jan 2012 16:03:44 +0000 (-0500) Subject: Default Vandelay merge profiles X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c541a4797457907be2382866888e93ed6edec6eb;p=evergreen%2Fmasslnc.git Default Vandelay merge profiles Adds 2 default vandelay merge profiles, in part so users will have some useful sample data, but also so the community can have some basic/consistent profiles for documentation purposes. 1. Match-Only Merge This is a no-op merge. It's only purpose is to allow Vandelay, which requires a profile of some sort to do anything, to find matching records. This is useful for importing holdings when the MARC from the source record is not desired. It will also be useful in the (forthecoming) Vandelay-driven Acquisitions lineitem linking (LP pending). The target/incumbent record is not affected. 2. Full Overlay Used for overlaying an entire inbound MARC record over its target record. The target/incumbent record is completely replaced by the inbound record. For both, 901c is used because it's automatically updated on the target record to match the internal ID, regardless of any field preservation/stripping. Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 79f88d53fd..0aacca1817 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -11306,4 +11306,10 @@ INSERT INTO action_trigger.environment ( 'owning_lib.billing_address' ); +INSERT INTO vandelay.merge_profile (owner, name, replace_spec) + VALUES (1, 'Match-Only Merge', '901c'); + +INSERT INTO vandelay.merge_profile (owner, name, preserve_spec) + VALUES (1, 'Full Overlay', '901c'); + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.vandelay-default-merge-profiles.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.vandelay-default-merge-profiles.sql new file mode 100644 index 0000000000..df3d014340 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.vandelay-default-merge-profiles.sql @@ -0,0 +1,14 @@ +-- Evergreen DB patch XXXX.data.vandelay-default-merge-profiles.sql +BEGIN; + +-- check whether patch can be applied +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +INSERT INTO vandelay.merge_profile (owner, name, replace_spec) + VALUES (1, 'Match-Only Merge', '901c'); + +INSERT INTO vandelay.merge_profile (owner, name, preserve_spec) + VALUES (1, 'Full Overlay', '901c'); + + +COMMIT;