Authority import merge profile and vandelay queue.
Updated marc_stream_importer script to handle authority imports.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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 {
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 {
--- /dev/null
+-- 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;
+
--- /dev/null
+-- 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;
+
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
--- /dev/null
+-- Verify kcls-evergreen:connexion-auth-imports on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;