Bugzilla – Attachment 3448 Details for
Bug 5960
Itemtype icons not showing in search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-5960-Itemtype-icons-not-showing-correctly-in-sta.patch (text/plain), 2.97 KB, created by
Chris Cormack
on 2011-03-28 00:57:27 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-03-28 00:57:27 UTC
Size:
2.97 KB
patch
obsolete
>From 1c10c5d02a39ff3502c91fd73ba87921ca5b92d5 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Mon, 28 Mar 2011 13:55:27 +1300 >Subject: [PATCH] Bug 5960 : Itemtype icons not showing correctly in staff search results > >--- > C4/Search.pm | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index cd970b7..b698a93 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1480,7 +1480,7 @@ sub searchResults { > $oldbiblio->{result_number} = $i + 1; > > # add imageurl to itemtype if there is one >- $oldbiblio->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); >+ $oldbiblio->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); > > $oldbiblio->{'authorised_value_images'} = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) ); > $oldbiblio->{normalized_upc} = GetNormalizedUPC( $marcrecord,$marcflavour); >@@ -1601,7 +1601,7 @@ sub searchResults { > $onloan_items->{$key}->{branchname} = $item->{branchname}; > $onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; > $onloan_items->{$key}->{itemcallnumber} = $item->{itemcallnumber}; >- $onloan_items->{$key}->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $item->{itype} }->{imageurl} ); >+ $onloan_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); > # if something's checked out and lost, mark it as 'long overdue' > if ( $item->{itemlost} ) { > $onloan_items->{$prefix}->{longoverdue}++; >@@ -1674,7 +1674,7 @@ sub searchResults { > $other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value; > $other_items->{$key}->{count}++ if $item->{$hbranch}; > $other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; >- $other_items->{$key}->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $item->{itype} }->{imageurl} ); >+ $other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); > } > # item is available > else { >@@ -1685,7 +1685,7 @@ sub searchResults { > $available_items->{$prefix}->{$_} = $item->{$_}; > } > $available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} }; >- $available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $item->{itype} }->{imageurl} ); >+ $available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); > } > } > } # notforloan, item level and biblioitem level >-- >1.7.1 >
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 5960
: 3448