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

(-)a/misc/migration_tools/bulkmarcimport.pl (-2 / +3 lines)
Lines 613-619 RECORD: foreach my $record ( @{$marc_records} ) { Link Here
613
                        AddItemBatchFromMarc( $record, $record_id, $biblioitemnumber, $framework );
613
                        AddItemBatchFromMarc( $record, $record_id, $biblioitemnumber, $framework );
614
                };
614
                };
615
                my $error_adding = $@;
615
                my $error_adding = $@;
616
                $record_has_added_items = @{$itemnumbers_ref};
617
616
618
                if ($error_adding) {
617
                if ($error_adding) {
619
                    warn "ERROR: Adding items to bib $record_id failed: $error_adding";
618
                    warn "ERROR: Adding items to bib $record_id failed: $error_adding";
Lines 623-628 RECORD: foreach my $record ( @{$marc_records} ) { Link Here
623
                    # the MARC columns in biblioitems were not set.
622
                    # the MARC columns in biblioitems were not set.
624
                    next RECORD;
623
                    next RECORD;
625
                }
624
                }
625
626
                $record_has_added_items = @{$itemnumbers_ref};
627
626
                if ( $dedup_barcode && grep { exists $_->{error_code} && $_->{error_code} eq 'duplicate_barcode' }
628
                if ( $dedup_barcode && grep { exists $_->{error_code} && $_->{error_code} eq 'duplicate_barcode' }
627
                    @$errors_ref )
629
                    @$errors_ref )
628
                {
630
                {
629
- 

Return to bug 37550