[Koha-patches] [PATCH 19/78] smallfix to deal with imageurl
Jesse
pianohacker at gmail.com
Sat Jun 6 00:09:46 CEST 2009
2009/5/28 <paul.poulain at biblibre.com>
> From: Paul Poulain <paul.poulain at biblibre.com>
>
> return link to imageurl only if there is an imageurl
> (before this patch, returned an incomplete path, resulting in a HTML error)
> ---
> admin/authorised_values.pl | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl
> index 30da72a..a264464 100755
> --- a/admin/authorised_values.pl
> +++ b/admin/authorised_values.pl
> @@ -222,7 +222,7 @@ sub default_form {
> $row_data{category} = $results->[$i]{'category'};
> $row_data{authorised_value} =
> $results->[$i]{'authorised_value'};
> $row_data{lib} = $results->[$i]{'lib'};
> - $row_data{imageurl} = getitemtypeimagelocation(
> 'intranet', $results->[$i]{'imageurl'} );
> + $row_data{imageurl} =
> getitemtypeimagesrc('intranet') . '/' . $results->[$i]{'imageurl'} if
> $results->[$i]{'imageurl'};
> $row_data{edit} =
> "$script_name?op=add_form&id=".$results->[$i]{'id'}."&offset=$offset";
> $row_data{delete} =
> "$script_name?op=delete_confirm&searchfield=$searchfield&id=".$results->[$i]{'id'}."&offset=$offset";
> push(@loop_data, \%row_data);
> --
> 1.6.0.4
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
One reason to use getitemtypeimagelocation is that it works with remote
itemtype images (this is the reason for its creation).
--
Jesse Weaver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090605/afbb38ae/attachment-0002.htm>
More information about the Koha-patches
mailing list