From 04134fdc0a5796d7035514c361f8ee8d557ea56f 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. --- 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 cd48d884a0..bf2db91945 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