Lines 618-624
sub BatchCommitRecords {
Link Here
|
618 |
if ($record_type eq 'biblio') { |
618 |
if ($record_type eq 'biblio') { |
619 |
my $biblioitemnumber; |
619 |
my $biblioitemnumber; |
620 |
($recordid, $biblioitemnumber) = AddBiblio($marc_record, $framework, { skip_record_index => 1 }); |
620 |
($recordid, $biblioitemnumber) = AddBiblio($marc_record, $framework, { skip_record_index => 1 }); |
621 |
push @biblio_ids, $recordid; |
621 |
push @biblio_ids, $recordid if $recordid; |
622 |
$query = "UPDATE import_biblios SET matched_biblionumber = ? WHERE import_record_id = ?"; # FIXME call SetMatchedBiblionumber instead |
622 |
$query = "UPDATE import_biblios SET matched_biblionumber = ? WHERE import_record_id = ?"; # FIXME call SetMatchedBiblionumber instead |
623 |
if ($item_result eq 'create_new' || $item_result eq 'replace') { |
623 |
if ($item_result eq 'create_new' || $item_result eq 'replace') { |
624 |
my ($bib_items_added, $bib_items_replaced, $bib_items_errored) = _batchCommitItems($rowref->{'import_record_id'}, $recordid, $item_result, $biblioitemnumber); |
624 |
my ($bib_items_added, $bib_items_replaced, $bib_items_errored) = _batchCommitItems($rowref->{'import_record_id'}, $recordid, $item_result, $biblioitemnumber); |
625 |
- |
|
|