From 14455120351276a5b209b8777cec1f7913b84d31 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 22 Apr 2023 13:43:29 +0000 Subject: [PATCH] Bug 33365: (QA follow-up) Add check on item-level_itypes With biblio level itemtypes you won't have any on the item type level, so I feel like it will make sense to hide the column here like we do in other spots. To test: * pref at specific item = itemtype column shows * pref at biblio level = no itemtype column Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../en/modules/cataloguing/value_builder/cn_browser.tt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt index 38f1896b08..0b9f2e1138 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt @@ -1,6 +1,7 @@ [% USE Asset %] [% USE AuthorisedValues %] [% USE ItemTypes %] +[% USE Koha %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Call number browser › Cataloging › Koha @@ -51,7 +52,9 @@ Title Library Collection - Item type + [% IF Koha.Preference('item-level_itypes') %] + Item type + [% END %] [% FOREACH cn_loo IN cn_loop %] @@ -68,7 +71,9 @@ [% cn_loo.branchname | html %] [% AuthorisedValues.GetByCode( 'CCODE', cn_loo.ccode ) | html %] - [% ItemTypes.GetDescription( cn_loo.itype ) | html %] + [% IF Koha.Preference('item-level_itypes') %] + [% ItemTypes.GetDescription( cn_loo.itype ) | html %] + [% END %] [% END %] -- 2.39.5