Skip to content

Commit

Permalink
handling wrong MARC record better
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
  • Loading branch information
Paul POULAIN authored and Joshua Ferraro committed Nov 12, 2007
1 parent 321f369 commit ef1ac56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/migration_tools/rebuild_zebra.pl
Expand Up @@ -591,7 +591,7 @@
# FIXME next unless $record->field($biblionumbertagfield);
# check if biblionumber is present, otherwise, add it on the fly
if ($biblionumbertagfield eq '001') {
unless ($record->field($biblionumbertagfield)->data()) {
unless ($record->field($biblionumbertagfield) && $record->field($biblionumbertagfield)->data()) {
$record_correct=0;
my $field;
# if the field where biblionumber is already exist, just update it, otherwise create it
Expand Down

0 comments on commit ef1ac56

Please sign in to comment.