From a196d7d94f373ac4f4f389b78de361f5fb821b5e Mon Sep 17 00:00:00 2001 From: Samu Heiskanen Date: Wed, 8 Dec 2021 01:03:47 +0000 Subject: [PATCH] Bug 29043: Remaining bug is the incorrect title "Place a hold on No title" This version takes account of the batch-mode. I only just add the line: $template->param( biblio => $biblio ) if scalar @biblionumbers == 1; inside the foreach loop. All my other patch-fixes are obsolete. --- reserve/request.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reserve/request.pl b/reserve/request.pl index 72a43b1098..6df3cb368b 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -326,6 +326,8 @@ foreach my $biblionumber (@biblionumbers) { $template->param('nobiblio' => 1); last; } + + $template->param( biblio => $biblio ) if scalar @biblionumbers == 1; my $count = Koha::Holds->search( { biblionumber => $biblionumber } )->count(); @@ -735,8 +737,6 @@ foreach my $biblionumber (@biblionumbers) { push @biblioloop, \%biblioloopiter; } -my $biblio = Koha::Biblios->find( $biblionumber ); - # display infos $template->param( reserveloop => 1, @@ -745,7 +745,6 @@ $template->param( date => $date, biblionumber => $biblionumber, findborrower => $findborrower, - biblio => $biblio, holdsview => 1, C4::Search::enabled_staff_search_views, ); -- 2.25.1