From b3b6737ef018f30c54e2344b3f5726fd2f2889b1 Mon Sep 17 00:00:00 2001
From: Samu Heiskanen <samu.heiskanen@hypernova.fi>
Date: Wed, 8 Dec 2021 01:46: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.

Signed-off-by: Samu Heiskanen <samu.heiskanen@hypernova.fi>
---
 reserve/request.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/reserve/request.pl b/reserve/request.pl
index 76d00f35bf..cd979a3694 100755
--- a/reserve/request.pl
+++ b/reserve/request.pl
@@ -327,6 +327,8 @@ foreach my $biblionumber (@biblionumbers) {
         last;
     }
 
+    $template->param( biblio =>$biblio ) if scalar @biblionumbers == 1;
+
     my $count = Koha::Holds->search( { biblionumber => $biblionumber } )->count();
 
     # adding a fixed value for priority options
-- 
2.25.1