From e16efe833d976765b73b8fe0e908d267efe685cf Mon Sep 17 00:00:00 2001 From: Laura_Escamilla 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 Signed-off-by: Emily Lamancusa Signed-off-by: Lucas Gass (cherry picked from commit 222329e97e13a1b7a7639385c8dcd773fef8991a) Signed-off-by: Paul Derscheid --- 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 1634b826d6..e52eeae793 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -351,7 +351,8 @@ [% IF Koha.Preference('BlockReturnOfLostItems') %]

Item is lost, cannot be checked in.

[% ELSE %] -

Item was lost, now found.

+ [% itemlost_description = AuthorisedValues.GetDescriptionByKohaField({ kohafield => 'items.itemlost', authorised_value => item.itemlost }) %] +

Item was [% itemlost_description | html %], now found.

[% END %] [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]

A refund for the lost item charge has been applied to the borrowing patron's account.