From 0fd8d186fa095f3029080352b885b19e24d6f3a9 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 To test: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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! 😊 --- 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') %]

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.

-- 2.39.5