From fabe13324ec461a83c899e025ce83f7d47391a7b Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Mon, 17 Mar 2008 07:21:25 -0400 Subject: [PATCH] fixing itemtype icon display for item-level_itype = OFF Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl | 9 +++++---- opac/opac-search.pl | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index 7fd1a23a9c..d45d0b03e6 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -173,13 +173,14 @@ $(document).ready(function(){ ">.01.TZZZZZZZ.jpg" alt="" class="thumbnail" /> - + + " title="" /> - + . " title="View details for this title"> " title="View details for this title"> " title="View details for this title"> by " title="Search for works by this author"> 

- @@ -217,8 +218,8 @@ $(document).ready(function(){

-

">Place Hold " name="biblionumber" value="" title="Click to add to cart" /> - "> +

">Place Hold " name="biblionumber" value="" title="Click to add to cart" /> + ">

diff --git a/opac/opac-search.pl b/opac/opac-search.pl index f35a113c00..41b655d236 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -91,7 +91,8 @@ my $itemtypes = GetItemTypes; my @itemtypesloop; my $selected=1; my $cnt; -my $imgdir = getitemtypeimagesrc(); +my $imgdir = getitemtypeimagesrc('opac'); + foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { my %row =( number=>$cnt++, imageurl=> $itemtypes->{$thisitemtype}->{'imageurl'}?($imgdir."/".$itemtypes->{$thisitemtype}->{'imageurl'}):"", -- 2.39.5