Bugzilla – Attachment 183476 Details for
Bug 35669
Update check in message for a specific authorised value in the LOST authorised values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35669: Update check-in message to show specific LOST authorised value descriptions
Bug-35669-Update-check-in-message-to-show-specific.patch (text/plain), 2.54 KB, created by
David Nind
on 2025-06-24 19:28:12 UTC
(
hide
)
Description:
Bug 35669: Update check-in message to show specific LOST authorised value descriptions
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-06-24 19:28:12 UTC
Size:
2.54 KB
patch
obsolete
>From 67499a10990dd500c59f12f467330bacb18b8f3f Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >Date: Tue, 24 Jun 2025 17:45:22 +0000 >Subject: [PATCH] Bug 35669: Update check-in message to show specific LOST > authorised value descriptions >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This displays the LOST authorized value description when checking an >item in, instead of the generic "Item was lost, now found." message. > >Test plan: >1. Set an itemâs Lost status to "Lost". When you check in that item, > you should see the message: âItem was lost, now found.â >2. Set an itemâs Lost status to "Missing". When you check in that > item, you should see the message: âItem was lost, now found.â > (default behavior before patch) >3. Apply the patch. >4. Set an itemâs Lost status to "Missing" again. When you check in > that item, the message should now be: âItem was Missing, now found.â > (using the authorised value description) >5. Repeat step 4 with other custom LOST authorised values. The check-in > message should correctly reflect the corresponding authorised > value descriptions. >6. Sign off and have a wonderful day! ð > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 0309793b6f..937e24ce5d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -343,7 +343,8 @@ > [% IF Koha.Preference('BlockReturnOfLostItems') %] > <p class="problem ret_blocked">Item is lost, cannot be checked in.</p> > [% ELSE %] >- <p class="problem ret_checkedin">Item was lost, now found.</p> >+ [% itemlost_description = AuthorisedValues.GetDescriptionByKohaField({ kohafield => 'items.itemlost', authorised_value => item.itemlost }) %] >+ <p class="problem ret_checkedin">Item was [% itemlost_description | html %], now found.</p> > [% END %] > [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %] > <p class="problem ret_refund">A refund for the lost item charge has been applied to the borrowing patron's account.</p> >-- >2.39.5
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 35669
:
160371
|
160383
|
165526
|
165651
|
169501
|
169520
|
183472
| 183476