Bug 33069: Fix error in MARC download for OPAC lists

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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c1c3b49668)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2023-05-03 21:28:30 +00:00 committed by Martin Renvoize
parent fb196f8845
commit cb93d9c30c
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -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,