JBAS-1390 Connexion authority imports
authorBill Erickson <berickxx@gmail.com>
Tue, 17 May 2016 14:35:41 +0000 (07:35 -0700)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Authority import merge profile and vandelay queue.

Updated marc_stream_importer script to handle authority imports.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/admin-scripts/eg-marc-stream-control.sh
KCLS/sql/schema/deploy/connexion-auth-imports.sql [new file with mode: 0644]
KCLS/sql/schema/revert/connexion-auth-imports.sql [new file with mode: 0644]
KCLS/sql/schema/sqitch.plan
KCLS/sql/schema/verify/connexion-auth-imports.sql [new file with mode: 0644]

index d9e4feb..ca4fc7b 100755 (executable)
@@ -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 (file)
index 0000000..37222e4
--- /dev/null
@@ -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 (file)
index 0000000..f7027e5
--- /dev/null
@@ -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;
+
index 0013d98..3b45bcd 100644 (file)
@@ -24,3 +24,4 @@ sip-activity-types [2.7-auth-reingest] 2016-03-15T21:30:39Z Bill Erickson <beric
 ingram-edi-mods [sip-activity-types] 2016-05-24T16:31:46Z Bill Erickson <berickxx@gmail.com> # Ingram EDI config updates
 org-unit-addrs-copy [sip-activity-types] 2016-05-03T14:17:59Z Bill Erickson <berickxx@gmail.com> # Give each org unit its own mailing address
 drop-cc-cols [sip-activity-types] 2016-05-03T15:26:50Z Bill Erickson <berickxx@gmail.com> # Drop unneeded CC payment columns
+connexion-auth-imports [sip-activity-types] 2016-05-11T15:10:49Z Bill Erickson,,, <berick@teapot> # 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 (file)
index 0000000..4966b27
--- /dev/null
@@ -0,0 +1,7 @@
+-- Verify kcls-evergreen:connexion-auth-imports on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;