Bugzilla – Attachment 150835 Details for
Bug 33069
File download from list in OPAC gives error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33069: Fix error in MARC download for OPAC lists
Bug-33069-Fix-error-in-MARC-download-for-OPAC-list.patch (text/plain), 1.69 KB, created by
Jonathan Druart
on 2023-05-09 09:55:50 UTC
(
hide
)
Description:
Bug 33069: Fix error in MARC download for OPAC lists
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-09 09:55:50 UTC
Size:
1.69 KB
patch
obsolete
>From 5be9109e5a812709e829d3e8fa36d949a78889c1 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >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 <kevin.ayrault87@gmail.com> >Signed-off-by: Magnus Enger <magnus@libriotech.no> >Nasty error before the patch; nice, tasty MARC download after. >Signed-off-by: Hinemoea Viault <hinemoea.viault@inlibro.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 2414d1566a4..ea81c1e7cea 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.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33069
:
150619
|
150631
|
150807
| 150835