From c1c3b496689057688be0d1788d1c74d61aca1bef 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=utf8 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 Signed-off-by: Magnus Enger Nasty error before the patch; nice, tasty MARC download after. Signed-off-by: Hinemoea Viault Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- 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.39.5