From c0f4bd11cceb61538e972351acd68e4024062dc5 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 11 Dec 2019 10:28:34 -0100 Subject: [PATCH] Bug 24121: Item types icons in intra search results are requesting icons from opac images path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When searching in INTRA you'll notice the item type icons not showing. To test: 1) Set syspref item-level_itypes to biblio 2) Confirm that there is a biblioitems.itemtype mapping to a MARC field 3) Verify that item type icons are set for all the types 4) Perform a search where biblios with said MARC field is filled with a type value 5) Verify that where the icon should appear, it's showing the browser icon for image not found 6) Apply patch. 7) Repeat step 4. 8) Observe the icons are now displayed correctly Sponsored-by: Governo Regional dos Açores Signed-off-by: Fridolin Somers Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 433d578418759946db723e33ce719b27464af5c1) Signed-off-by: Lucas Gass --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index fe8898fed6..97382cb4db 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1942,7 +1942,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.39.5