Bug 29440: replace usage of removed GetMarcBiblio

Signed-off-by: Michał Kula <148193449+mkibp@users.noreply.github.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
David Gustafsson 2022-09-23 17:32:51 +02:00 committed by Katrin Fischer
parent 08908b5765
commit 2d50eb242d
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 5 deletions

View File

@ -18,7 +18,6 @@ use C4::Biblio qw(
ModBiblio
ModBiblioMarc
GetFrameworkCode
GetMarcBiblio
BiblioAutoLink
);
use C4::Koha;
@ -634,10 +633,9 @@ RECORD: foreach my $record (@{$marc_records}) {
report_item_errors($record_id, $errors_ref);
}
C4::Biblio::_strip_item_fields($record, $framework);
if ($record_has_added_items || $matched_record_id) {
# Replace with record from GetMarcBiblio with "$embeditems = 1"
$record = GetMarcBiblio({biblionumber => $record_id, embed_items => 1});
}
my $biblio = Koha::Biblios->find($record_id);
$record = $biblio->metadata->record( { embed_items => 1 } );
push @search_engine_record_ids, $record_id;
push @search_engine_records, $record;
}