From 0a306bc28c3c931e06bcd5caea293871f5af4471 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 24 Apr 2009 09:57:24 -0500 Subject: [PATCH] bug 2505 followup: restored correct item type image display Signed-off-by: Galen Charlton --- opac/opac-detail.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 3df09893f8..ae6bc419f6 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -146,6 +146,10 @@ for my $itm (@items) { if ( defined $itm->{'location'} ) { $itm->{'location_description'} = $shelflocations->{ $itm->{'location'} }; } + if (exists $itm->{itype} && defined($itm->{itype}) && exists $itemtypes->{ $itm->{itype} }) { + $itm->{'imageurl'} = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} ); + $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{'description'}; + } foreach (qw(ccode enumchron copynumber itemnotes)) { $itemfields{$_} = 1 if ($itm->{$_}); } -- 2.39.5