From 2e51759f648eebfb3c04ed08c8335d404cf7cfa8 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 18 Oct 2022 16:25:35 +0100 Subject: [PATCH] Bug 31224: Convert C4::Record::marcrecord2csv Update marcrecord2csv to user RecordProcessor directly for embedding listed items. Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- C4/Record.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/C4/Record.pm b/C4/Record.pm index 29f105a9f10..15978a5b2be 100644 --- a/C4/Record.pm +++ b/C4/Record.pm @@ -461,11 +461,9 @@ sub marcrecord2csv { # Getting the record my $biblio = Koha::Biblios->find($biblionumber); return unless $biblio; - my $record = eval { - $biblio->metadata->record( - { embed_items => 1, itemnumbers => $itemnumbers } ); - }; + my $record = eval { $biblio->metadata_record( { embed_items => 1, itemnumbers => $itemnumbers } ); }; return unless $record; + # Getting the framework my $frameworkcode = $biblio->frameworkcode; -- 2.34.1