From 9dc5a9208f9ed141c084403077d5dac156e93e4e Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Mon, 10 Nov 2008 17:16:16 +0100 Subject: [PATCH] bug 2772: bad image location This patch make Page.pm to use the getitemtypeinfo function to generate the imageurl, and check (in the template) if an image is set. Before this patch, always the "Alt" information was shown, because the url wasn't right. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- C4/VirtualShelves/Page.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index 2176df5304..1e44bc9493 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -179,6 +179,7 @@ SWITCH: { $this_item->{'dateadded'} = format_date($this_item->{'dateadded'}); $this_item->{'coins'} = GetCOinSBiblio($this_item->{'biblionumber'}); warn $this_item->{'coins'}; + $this_item->{'imageurl'} = getitemtypeinfo($this_item->{'itemtype'})->{'imageurl'}; } push @paramsloop, {display => 'privateshelves'} if $category == 1; $showadd = 1; -- 2.39.5