Bug 35669: Update check-in message to show specific LOST authorised value descriptions

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>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 222329e97e)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Laura_Escamilla 2025-06-24 17:45:22 +00:00 committed by Paul Derscheid
parent 8c8778f334
commit e16efe833d
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 2 additions and 1 deletions

View File

@ -351,7 +351,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>