From fb772c9a42ebea55d9a0dd8e4a1ff1fad05b9038 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 4 Aug 2025 14:35:56 +0200 Subject: [PATCH] Bug 40586: Show negative notforloan status in holds table on opac-user Content-Type: text/plain; charset=utf-8 If an item is on order, it may take a while before becoming available. Showing that too on the opac-user page is helpful for the user and may reduce questions. Signed-off-by: Marcel de Rooy --- koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc index 2df921a1db..17e0c85ad1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc @@ -1,3 +1,4 @@ +[% USE AuthorisedValues %] [% USE Branches %] [% USE ItemTypes %] [% USE KohaDates %] @@ -155,6 +156,8 @@ [% ELSE %] [% IF HOLD.itemtype %] Pending for next available item of item type '[% ItemTypes.GetDescription( HOLD.itemtype ) | html %]' + [% ELSIF HOLD.item && HOLD.item.notforloan < 0 %] + Pending ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => HOLD.item.notforloan ) %]) [% ELSE %] Pending [% END %] -- 2.39.5