Fix itemtype image problem in moremember.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Jesse Weaver 2008-08-22 10:54:31 -05:00 committed by Henri-Damien LAURENT
parent 2ef43f56f0
commit 799c32eb0f
3 changed files with 3 additions and 14 deletions

View File

@ -43,7 +43,6 @@ BEGIN {
&getFacets
&displayServers
&getnbpages
&getitemtypeimagesrcfromurl
&get_infos_of
&get_notforloan_label_of
&getitemtypeimagedir
@ -442,21 +441,11 @@ sub getitemtypeinfo {
$sth->execute($itemtype);
my $res = $sth->fetchrow_hashref;
$res->{imageurl} = getitemtypeimagesrcfromurl( $res->{imageurl} );
$res->{imageurl} = getitemtypeimagelocation( 'intranet', $res->{imageurl} );
return $res;
}
sub getitemtypeimagesrcfromurl {
my ($imageurl) = @_;
if ( defined $imageurl and $imageurl !~ m/^http/ ) {
$imageurl = getitemtypeimagesrc() . '/' . $imageurl;
}
return $imageurl;
}
=head2 getitemtypeimagedir
=over

View File

@ -240,7 +240,7 @@ for ( my $i = 0 ; $i < $count ; $i++ ) {
my $itemtypeinfo = getitemtypeinfo($itemtype);
$row{'itemtype_description'} = $itemtypeinfo->{description};
$row{'itemtype_image'} = getitemtypelocation( 'opac', $itemtypeinfo->{imageurl} );
$row{'itemtype_image'} = $itemtypeinfo->{imageurl};
$row{'charge'} = sprintf( "%.2f", $charge );

View File

@ -22,9 +22,9 @@ sub methods : Test( 1 ) {
getframeworks
getframeworkinfo
getitemtypeinfo
getitemtypeimagesrcfromurl
getitemtypeimagedir
getitemtypeimagesrc
getitemtypeimagelocation
_getImagesFromDirectory
_getSubdirectoryNames
getImageSets