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

(-)a/misc/migration_tools/bulkmarcimport.pl (-6 / +3 lines)
Lines 18-24 use C4::Biblio qw( Link Here
18
    ModBiblio
18
    ModBiblio
19
    ModBiblioMarc
19
    ModBiblioMarc
20
    GetFrameworkCode
20
    GetFrameworkCode
21
    GetMarcBiblio
22
    BiblioAutoLink
21
    BiblioAutoLink
23
);
22
);
24
use C4::Koha;
23
use C4::Koha;
Lines 634-643 RECORD: foreach my $record (@{$marc_records}) { Link Here
634
                    report_item_errors($record_id, $errors_ref);
633
                    report_item_errors($record_id, $errors_ref);
635
                }
634
                }
636
                C4::Biblio::_strip_item_fields($record, $framework);
635
                C4::Biblio::_strip_item_fields($record, $framework);
637
                if ($record_has_added_items || $matched_record_id) {
636
                my $biblio = Koha::Biblios->find($record_id);
638
                    # Replace with record from GetMarcBiblio with "$embeditems = 1"
637
                $record = $biblio->metadata->record( { embed_items => 1 } );
639
                    $record = GetMarcBiblio({biblionumber => $record_id, embed_items => 1});
638
640
                }
641
                push @search_engine_record_ids, $record_id;
639
                push @search_engine_record_ids, $record_id;
642
                push @search_engine_records, $record;
640
                push @search_engine_records, $record;
643
            }
641
            }
644
- 

Return to bug 29440