From d0399c9af3612e8fbe761cc3e2ab118c8aa43ffb Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 14 Feb 2014 12:40:00 -0500 Subject: [PATCH] LP#1279998 marc_stream_importer option no-match import; delete repairs * Adds another command line option for --import-no-match, so that importing non-matching records is now optional. * Improve vandelay response reporting to ensure that all imported records get cleaned up. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- Open-ILS/src/support-scripts/marc_stream_importer.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/support-scripts/marc_stream_importer.pl b/Open-ILS/src/support-scripts/marc_stream_importer.pl index bdb740bac5..e0a2aa33ce 100755 --- a/Open-ILS/src/support-scripts/marc_stream_importer.pl +++ b/Open-ILS/src/support-scripts/marc_stream_importer.pl @@ -55,6 +55,7 @@ my %defaults = ( 'nodaemon' => 0, 'wait=i' => 5, 'import-by-queue' => 0, + 'import-no-match' => 0, 'auto-overlay-exact' => 0, 'auto-overlay-1match' => 0, 'auto-overlay-best-match' => 0 @@ -253,8 +254,9 @@ sub process_spool { # filename sub bib_queue_import { my $rec_ids = shift; - my $extra = {import_no_match => 1}; + my $extra = {report_all => 1}; $extra->{merge_profile} = $merge_profile if $merge_profile; + $extra->{import_no_match} = 1 if $real_opts->{'import-no-match'}; $extra->{auto_overlay_1match} = 1 if $real_opts->{'auto-overlay-1match'}; $extra->{auto_overlay_best_match} = 1 if $real_opts->{'auto-overlay-best-match'}; -- 2.11.0