From 78e422b24acd82da021029a753ff1d299536f719 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Wed, 28 Dec 2022 10:00:47 +0100 Subject: [PATCH] Bug 28639: (follow-up) Changes method to embed see-from headings To have same code syntax call of Koha::RecordProcessor class --- Koha/OAI/Server/Repository.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Koha/OAI/Server/Repository.pm b/Koha/OAI/Server/Repository.pm index b5f9169cec..ac7de331f0 100644 --- a/Koha/OAI/Server/Repository.pm +++ b/Koha/OAI/Server/Repository.pm @@ -39,7 +39,6 @@ use C4::Context; use C4::Biblio qw( GetFrameworkCode ); use Koha::XSLT::Base; use Koha::Biblios; -use Koha::Filter::MARC::EmbedSeeFromHeadings; =head1 NAME @@ -182,7 +181,12 @@ sub get_biblio_marcxml { my $biblio = Koha::Biblios->find($biblionumber); my $record = $biblio->metadata->record({ embed_items => $with_items, opac => 1 }); if ( $embedseefromheadings ) { - Koha::Filter::MARC::EmbedSeeFromHeadings->filter($record); + my $record_processor = Koha::RecordProcessor->new( + { + filters => [ 'EmbedSeeFromHeadings' ], + } + ); + $record_processor->process($record); } if ( $expanded_avs ) { my $frameworkcode = GetFrameworkCode($biblionumber) || ''; -- 2.25.1