Bugzilla – Attachment 186686 Details for
Bug 40586
opac-user, holds-table.inc: Include on order status when item.notforloan < 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40586: Show negative notforloan status in holds table on opac-user
Bug-40586-Show-negative-notforloan-status-in-holds.patch (text/plain), 1.98 KB, created by
Jonathan Druart
on 2025-09-22 12:48:07 UTC
(
hide
)
Description:
Bug 40586: Show negative notforloan status in holds table on opac-user
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-22 12:48:07 UTC
Size:
1.98 KB
patch
obsolete
>From 7bc0466c30cd9200c76dffe85336268f54601314 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 4 Aug 2025 14:35:56 +0200 >Subject: [PATCH] Bug 40586: Show negative notforloan status in holds table on > opac-user > >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. > >Test plan: >Pick an item and set notforloan to On order (-1) or another custom >negative notforloan status. >Put an item level hold on that item. >Go to the OPAC user page of that patron. Verify that the AV description >is added now to the status column of the holds table. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 43cc5e75d02..9c869c75cfe 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 %] >@@ -171,6 +172,8 @@ > [% ELSE %] > [% IF HOLD.itemtype %] > <span>Pending for next available item of item type '[% ItemTypes.GetDescription( HOLD.itemtype ) | html %]'</span> >+ [% ELSIF HOLD.item && HOLD.item.notforloan < 0 %] >+ <span>Pending ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => HOLD.item.notforloan ) %])</span> > [% ELSE %] > <span>Pending</span> > [% END %] >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40586
:
185097
|
185098
|
185808
|
186533
| 186686 |
186687