bug 2423: actually ignore already-imported records
When recommiting a partially completed MARC record batch, records that were already imported (or had an error status) were being processed again, leading to duplicate bibs. Corrected so that these records are actually ignored. Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
cee7483d52
commit
e37f6a385a
1 changed files with 2 additions and 0 deletions
|
@ -469,6 +469,7 @@ sub BatchCommitBibRecords {
|
|||
}
|
||||
if ($rowref->{'status'} eq 'error' or $rowref->{'status'} eq 'imported') {
|
||||
$num_ignored++;
|
||||
next;
|
||||
}
|
||||
|
||||
my $marc_record = MARC::Record->new_from_usmarc($rowref->{'marc'});
|
||||
|
@ -627,6 +628,7 @@ sub BatchRevertBibRecords {
|
|||
while (my $rowref = $sth->fetchrow_hashref) {
|
||||
if ($rowref->{'status'} eq 'error' or $rowref->{'status'} eq 'reverted') {
|
||||
$num_ignored++;
|
||||
next;
|
||||
}
|
||||
|
||||
my $bib_result = _get_revert_action($overlay_action, $rowref->{'overlay_status'}, $rowref->{'status'});
|
||||
|
|
Loading…
Reference in a new issue