diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index da0ebf7f2e..2f18d5266e 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -169,13 +169,14 @@ RECORD: while ( ) { # get records eval { $record = $batch->next() }; if ( $@ ) { - print "Bad MARC record: skipped\n"; + print "Bad MARC record $i: $@ skipped\n"; # FIXME - because MARC::Batch->next() combines grabbing the next # blob and parsing it into one operation, a correctable condition # such as a MARC-8 record claiming that it's UTF-8 can't be recovered # from because we don't have access to the original blob. Note # that the staging import can deal with this condition (via # C4::Charset::MarcToUTF8Record) because it doesn't use MARC::Batch. + $i++; next; } # skip if we get an empty record (that is MARC valid, but will result in AddBiblio failure