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 <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f66379c075)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Lari Taskula 2024-12-19 10:58:15 +00:00 committed by Paul Derscheid
parent 74f85e12a9
commit 0c965868d9
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 1 deletions

View File

@ -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 );