From 0c965868d9fa9b2e3f5e906501461cbffdf9b2c6 Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Thu, 19 Dec 2024 10:58:15 +0000 Subject: [PATCH] Bug 35975: Show biblionumber when download cart as BibTeX To test: 1. In OPAC, add a record to your cart 2. Go to your cart 3. Click Download -> BibTeX 4. Observe downloaded file in your favorite text editor 5. Observe Koha::Hash(xxx) within file contents 6. Apply patch 7. Repeat steps 3 and 4 8. Observe Koha::Hash has been replaced with biblionumber Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer (cherry picked from commit f66379c0750512f84b9746c1492ba527ed0b93ce) Signed-off-by: Paul Derscheid --- opac/opac-downloadcart.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-downloadcart.pl b/opac/opac-downloadcart.pl index db103bacba..764d91d3f4 100755 --- a/opac/opac-downloadcart.pl +++ b/opac/opac-downloadcart.pl @@ -102,7 +102,7 @@ if ($bib_list && $format) { $output .= marc2ris($record); } elsif ($format eq 'bibtex') { - $output .= marc2bibtex($record, $biblio); + $output .= marc2bibtex($record, $biblio->biblionumber); } elsif ( $format eq 'isbd' ) { my $framework = GetFrameworkCode( $biblio );