From 25ef5923d4bd273883bbed8efc4a09ce95e0ba59 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 3 May 2023 21:28:30 +0000 Subject: [PATCH] Bug 33069: Fix error in MARC download for OPAC lists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There was a code typo causing an error when you tried to download a list in MARC format: Not a CODE reference at /kohadevbox/koha/opac/opac-downloadshelf.pl line 93 To test: * In the OPAC: create a new list, public or private, with some records * Open the list * Try to download the list as MARC * Verify you get an error * Apply patch * Verify you now get the expected download file * Sign off :) Co-authored-by: Kévin AYRAULT --- opac/opac-downloadshelf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-downloadshelf.pl b/opac/opac-downloadshelf.pl index 2414d1566a..ea81c1e7ce 100755 --- a/opac/opac-downloadshelf.pl +++ b/opac/opac-downloadshelf.pl @@ -90,7 +90,7 @@ if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) { my $biblionumber = $content->biblionumber; my $biblio = Koha::Biblios->find($biblionumber); - my $record = $biblio->metadata->record->( + my $record = $biblio->metadata->record( { embed_items => 1, opac => 1, -- 2.30.2