Bug 8015: (follow-up) update stage_file.pl
authorGalen Charlton <gmc@esilibrary.com>
Thu, 31 Oct 2013 22:10:31 +0000 (22:10 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 31 Oct 2013 22:51:13 +0000 (22:51 +0000)
This patch fixes the call to BatchStageMarcRecords() made
by the comand-line record importer.  At some point in the future
we could go further and teach that tool how to apply modification
templates.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
misc/stage_file.pl

index 3a8615e..2e15466 100755 (executable)
@@ -101,7 +101,7 @@ sub process_batch {
 
     print "... staging MARC records -- please wait\n";
     my ($batch_id, $num_valid_records, $num_items, @import_errors) =
-        BatchStageMarcRecords($record_type, $encoding, $marc_records, $input_file, $batch_comment, '', $add_items, 0,
+        BatchStageMarcRecords($record_type, $encoding, $marc_records, $input_file, undef, $batch_comment, '', $add_items, 0,
                               100, \&print_progress_and_commit);
     print "... finished staging MARC records\n";