From 23f85cae11fdd5356875b52b6d1f88af9d0e141a 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 Signed-off-by: Henri-Damien LAURENT --- opac/opac-detail.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 3d5b7ad1c2..85eeaa70ca 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -139,6 +139,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