Bug 15092: item type descriptions not showing in OPAC advsearch
Go to OPAC > Advanced Search Tab 'Item type' only shows itemtype icons, no descriptions. Descriptions must be shown always To test: 1) Go to OPAC > Advanced search 2) Check no descriptions for item types Also check that, reloading the page, item types shows in random order 3) Apply the patch 4) Check there are descriptions now and order is by description Followed test plan, works as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
3a90d0f165
commit
96dc8bbd8e
|
|
@ -211,6 +211,10 @@ $template->param(search_languages_loop => $languages_limit_loop,);
|
|||
|
||||
# load the Type stuff
|
||||
my $itemtypes = GetItemTypesCategorized;
|
||||
# add translated_description to itemtypes
|
||||
foreach my $itemtype ( keys %{$itemtypes} ) {
|
||||
$itemtypes->{$itemtype}->{translated_description} = getitemtypeinfo( $itemtype, 'opac' )->{translated_description};
|
||||
}
|
||||
# the index parameter is different for item-level itemtypes
|
||||
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype';
|
||||
my @advancedsearchesloop;
|
||||
|
|
|
|||
Loading…
Reference in New Issue