From 48dd2ca9c001b1c170e9e9458c05fa2707289b1f Mon Sep 17 00:00:00 2001 From: Laura Escamilla Date: Wed, 28 Jun 2023 19:03:34 +0000 Subject: [PATCH] Bug 34122: Fix for shelving locations that were applying to all item records. Signed-off-by: Sam Lau --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index d4ead1659f..9d698758bf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -423,6 +423,7 @@ [% IF item.permanent_location %] [% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %] [% permloc_authval | html %] + [% IF item.location %] [% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %] [% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %] ([% item_location | html %]) @@ -430,6 +431,7 @@ [% ELSE %] [% item_location | html %] [% END %] + [% END %] [% IF ( itemdata_ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %][% END %] -- 2.30.2