From 60358f8b85fbc8b3a40a3b88dbbada37a9264729 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Date: Thu, 8 May 2025 16:24:29 +0100
Subject: [PATCH] Bug 39679: Add space before barcode in holds table

To test:
1) Place an item-level hold for an item with a barcode
2) In the holds list on request.pl, see that the Details
   column for your hold lists "Only item[barcode]" in the
   dropdown without a space before the barcode
3) Apply patch, restart_all, reload page
4) Confirm your hold has a space before the barcode

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: David Nind <david@davidnind.com>
---
 koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
index 2d65e83dc1..6fa18c3517 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
@@ -232,7 +232,7 @@
                                         <option selected="selected" value=""
                                             >Only item
                                             [%- IF ( hold.barcodenumber ) -%]
-                                                [%- hold.barcodenumber | html -%]
+                                                [%- ' ' _ hold.barcodenumber | html -%]
                                             [%- ELSE -%]
                                                 No barcode
                                             [%- END -%]
-- 
2.39.5