From: Bill Erickson Date: Tue, 17 May 2016 14:35:41 +0000 (-0700) Subject: JBAS-1390 Connexion authority imports X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8f8e6dba6ad096e10a26a978085d250562fb9136;p=working%2FEvergreen.git JBAS-1390 Connexion authority imports Authority import merge profile and vandelay queue. Updated marc_stream_importer script to handle authority imports. Signed-off-by: Bill Erickson --- diff --git a/KCLS/admin-scripts/eg-marc-stream-control.sh b/KCLS/admin-scripts/eg-marc-stream-control.sh index d9e4febc9e..ca4fc7bedb 100755 --- a/KCLS/admin-scripts/eg-marc-stream-control.sh +++ b/KCLS/admin-scripts/eg-marc-stream-control.sh @@ -8,6 +8,8 @@ STAFF_PASSWORD=$2 STAFF_USER=admin BIB_QUEUE=14 BIB_MERGE_PROFILE=1 +AUTH_QUEUE=3 # TODO: change to match deployment +AUTH_MERGE_PROFILE=156 # TODO: change to match deployment # marc_stream_importer.pl creates the PID file for us function marc_stream_start { @@ -17,9 +19,17 @@ function marc_stream_start { fi cd /openils/bin sudo -u opensrf OSRF_LOG_CLIENT=1 ./marc_stream_importer.pl \ - --merge-profile $BIB_MERGE_PROFILE --user $STAFF_USER \ - --bib-auto-overlay-exact --bib-import-no-match \ - --password $STAFF_PASSWORD --bib-queue $BIB_QUEUE >> /dev/null 2>&1 & + --user $STAFF_USER \ + --password $STAFF_PASSWORD \ + --merge-profile $BIB_MERGE_PROFILE \ + --auth-merge-profile $AUTH_MERGE_PROFILE \ + --bib-auto-overlay-exact \ + --auth-auto-overlay-exact \ + --bib-import-no-match \ + --auth-import-no-match \ + --bib-queue $BIB_QUEUE \ + --auth-queue $AUTH_QUEUE \ + >> /dev/null 2>&1 & } function marc_stream_stop { diff --git a/KCLS/sql/schema/deploy/connexion-auth-imports.sql b/KCLS/sql/schema/deploy/connexion-auth-imports.sql new file mode 100644 index 0000000000..37222e46ce --- /dev/null +++ b/KCLS/sql/schema/deploy/connexion-auth-imports.sql @@ -0,0 +1,12 @@ +-- Deploy kcls-evergreen:connexion-auth-imports to pg +-- requires: sip-activity-types + +BEGIN; + +INSERT INTO vandelay.authority_queue (owner, name) VALUES (1, 'Connexion'); + +INSERT INTO vandelay.merge_profile (owner, name, strip_spec) + VALUES (1, 'Connexion Authority Imports', '905'); + +COMMIT; + diff --git a/KCLS/sql/schema/revert/connexion-auth-imports.sql b/KCLS/sql/schema/revert/connexion-auth-imports.sql new file mode 100644 index 0000000000..f7027e5be7 --- /dev/null +++ b/KCLS/sql/schema/revert/connexion-auth-imports.sql @@ -0,0 +1,11 @@ +-- Revert kcls-evergreen:connexion-auth-imports from pg + +BEGIN; + +DELETE FROM vandelay.authority_queue WHERE name = 'Connexion' AND owner = 1; + +DELETE FROM vandelay.merge_profile + WHERE owner = 1 AND name = 'Connexion Authority Imports'; + +COMMIT; + diff --git a/KCLS/sql/schema/sqitch.plan b/KCLS/sql/schema/sqitch.plan index 0013d982e4..3b45bcd200 100644 --- a/KCLS/sql/schema/sqitch.plan +++ b/KCLS/sql/schema/sqitch.plan @@ -24,3 +24,4 @@ sip-activity-types [2.7-auth-reingest] 2016-03-15T21:30:39Z Bill Erickson # Ingram EDI config updates org-unit-addrs-copy [sip-activity-types] 2016-05-03T14:17:59Z Bill Erickson # Give each org unit its own mailing address drop-cc-cols [sip-activity-types] 2016-05-03T15:26:50Z Bill Erickson # Drop unneeded CC payment columns +connexion-auth-imports [sip-activity-types] 2016-05-11T15:10:49Z Bill Erickson,,, # OCLC Connexion Authority Record Imports Data diff --git a/KCLS/sql/schema/verify/connexion-auth-imports.sql b/KCLS/sql/schema/verify/connexion-auth-imports.sql new file mode 100644 index 0000000000..4966b27299 --- /dev/null +++ b/KCLS/sql/schema/verify/connexion-auth-imports.sql @@ -0,0 +1,7 @@ +-- Verify kcls-evergreen:connexion-auth-imports on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK;