From 82f3646b53f0cb360deff05bf9b52ed2ebe2f6cc Mon Sep 17 00:00:00 2001 From: Amy King Date: Thu, 21 Jan 2021 22:41:09 +0000 Subject: [PATCH] Bug 20238: Display description of ITEMTYPECAT in search category Test plan: 1. From homepage, go to Koha Administration 2. Go to Authorized values 3. Scroll to the bottom of page, or click next at the top, to go to the next page 4. Find ITEMTYPECAT and click Add 5. Give the new authorized value an Authorized value and Description 6. Save it 7. On the left, go to Item types 8. Click Edit on an item type 9. Under search category, select the new authorized value you just created. It should appear in the dropdown as its description 10. Click save changes 11. Under search category for the item type you just edited, you should see your new Authorized values' description --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index b2c4ca0bcf..b66b8531c2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -459,7 +459,7 @@ Item types administration [% itemtype.parent_type | html %] - [% itemtype.searchcategory | html %] + [% AuthorisedValues.GetByCode( 'ITEMTYPECAT', itemtype.searchcategory ) | html %] [% IF ( itemtype.notforloan ) %]Yes[% ELSE %] [% END %] [% IF ( itemtype.hideinopac ) %]Yes[% ELSE %] [% END %] -- 2.11.0