From f99568f358e637d8000a9c37db1068225c055ebb Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 22 Jul 2022 17:59:34 -0300 Subject: [PATCH] [POC] Bug 31224: Use metadata_record in opac-MARCdetail.pl --- opac/opac-MARCdetail.pl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl index c902f849c41..79f59938c6f 100755 --- a/opac/opac-MARCdetail.pl +++ b/opac/opac-MARCdetail.pl @@ -92,7 +92,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $patron = Koha::Patrons->find($loggedinuser); my $biblio = Koha::Biblios->find($biblionumber); -my $record = $biblio->metadata->record( +my $record = $biblio->metadata_record( { embed_items => 1, opac => 1, @@ -116,15 +116,6 @@ unless ( $patron and $patron->category->override_hidden_items ) { my $framework = $biblio ? $biblio->frameworkcode : q{}; my $tagslib = &GetMarcStructure( 0, $framework ); -my $record_processor = Koha::RecordProcessor->new({ - filters => 'ViewPolicy', - options => { - interface => 'opac', - frameworkcode => $framework - } -}); -$record_processor->process($record); - # get biblionumbers stored in the cart if(my $cart_list = $query->cookie("bib_list")){ my @cart_list = split(/\//, $cart_list); -- 2.34.1