From beb3c5ca66d7559613a525c97d4abe0e27e18c47 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 --- 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 ); -- 2.39.5