From ee302fd84637b809629a5fc77ef15371508eaad3 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 10 Dec 2019 08:00:16 +0100 Subject: [PATCH] Bug 24198: itemtype image not displayed in search results anymore In staff interface, itemtype image not displayed in search results anymore. This depends on system preference noItemTypeImages when itemtype is at biblio level. Looks like its a consequence of Bug 14385 Test plan : 1) On a catalog with itemtype is at biblio level 2) Set preference noItemTypeImages to "yes" 3) Check there are icons on itemtypes 4) Go to staff interface 5) Perform a search 6) Check you see icon in search results table --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 9f39b502f6..a6657e7f05 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1941,7 +1941,7 @@ sub searchResults { $oldbiblio->{result_number} = $i + 1; # add imageurl to itemtype if there is one - $oldbiblio->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); + $oldbiblio->{imageurl} = getitemtypeimagelocation( $search_context->{'interface'}, $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); $oldbiblio->{normalized_upc} = GetNormalizedUPC( $marcrecord,$marcflavour); $oldbiblio->{normalized_ean} = GetNormalizedEAN( $marcrecord,$marcflavour); -- 2.24.0