Merge remote branch 'kc/new/for-3.4/enh_bulkmarcimport' into kcmaster

This commit is contained in:
Chris Cormack 2010-11-02 14:38:52 +13:00
commit e979344ea9
1 changed files with 2 additions and 1 deletions

View File

@ -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