Bugzilla – Attachment 96131 Details for
Bug 24198
itemtype image not displayed in search results anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24198: itemtype image not displayed in search results anymore
Bug-24198-itemtype-image-not-displayed-in-search-r.patch (text/plain), 1.44 KB, created by
Fridolin Somers
on 2019-12-10 07:03:58 UTC
(
hide
)
Description:
Bug 24198: itemtype image not displayed in search results anymore
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2019-12-10 07:03:58 UTC
Size:
1.44 KB
patch
obsolete
>From ee302fd84637b809629a5fc77ef15371508eaad3 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24198
: 96131