View | Details | Raw Unified | Return to bug 37550
Collapse All | Expand All

(-)a/misc/migration_tools/bulkmarcimport.pl (-2 / +3 lines)
Lines 597-603 RECORD: foreach my $record ( @{$marc_records} ) { Link Here
597
                        AddItemBatchFromMarc( $record, $record_id, $biblioitemnumber, $framework );
597
                        AddItemBatchFromMarc( $record, $record_id, $biblioitemnumber, $framework );
598
                };
598
                };
599
                my $error_adding = $@;
599
                my $error_adding = $@;
600
                $record_has_added_items = @{$itemnumbers_ref};
601
600
602
                if ($error_adding) {
601
                if ($error_adding) {
603
                    warn "ERROR: Adding items to bib $record_id failed: $error_adding";
602
                    warn "ERROR: Adding items to bib $record_id failed: $error_adding";
Lines 607-612 RECORD: foreach my $record ( @{$marc_records} ) { Link Here
607
                    # the MARC columns in biblioitems were not set.
606
                    # the MARC columns in biblioitems were not set.
608
                    next RECORD;
607
                    next RECORD;
609
                }
608
                }
609
610
                $record_has_added_items = @{$itemnumbers_ref};
611
610
                if ( $dedup_barcode && grep { exists $_->{error_code} && $_->{error_code} eq 'duplicate_barcode' }
612
                if ( $dedup_barcode && grep { exists $_->{error_code} && $_->{error_code} eq 'duplicate_barcode' }
611
                    @$errors_ref )
613
                    @$errors_ref )
612
                {
614
                {
613
- 

Return to bug 37550