[Koha-patches] [PATCH] bad image location

Joe Atzberger joe.atzberger at liblime.com
Fri Mar 6 16:10:17 CET 2009


Not that it's worth resubmitting over, but "Please enter the commit message
for your changes" probably shouldn't be part of the actual commit message.
-- Joe

On Fri, Mar 6, 2009 at 5:38 AM, <henridamien.laurent at biblibre.com> wrote:

> From: Nahuel Angelinetti <nahuel.angelinetti at biblibre.com>
>
> This patch make Page.pm to use the getitemtypeinfo function to generate the
> imageurl, and check (in the template) if an
> image is set.
> I backported a function from koha3.2, and the use of URI::Split.
> Before this patch, always the "Alt" information was shown, because the url
> wasn't right.
>
> Please enter the commit message for your changes.
>
> Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
> ---
>  .../opac-tmpl/prog/en/modules/opac-shelves.tmpl    |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
> b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
> index 750101a..76c540e 100644
> --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
> +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
> @@ -121,7 +121,10 @@ $.tablesorter.addParser({
>             </td>
>                 <!-- /TMPL_IF -->
>             <!-- TMPL_UNLESS NAME="item-level_itypes" --><td>
> -                <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!--
> TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description"
> -->" /><!-- TMPL_VAR NAME="description" -->
> +                <!-- TMPL_IF NAME="imageurl" -->
> +                    <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!--
> TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description"
> -->" />
> +                </TMPL_IF>
> +                <!-- TMPL_VAR NAME="description" -->
>             </td> <!-- /TMPL_UNLESS -->
>
>             <td><!-- TMPL_IF NAME="BiblioDefaultViewmarc" --><a
> class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!--
> TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title"
> --> <!-- TMPL_VAR NAME="subtitle" --></a>
> --
> 1.5.6.3
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090306/cf643fd5/attachment-0002.htm>


More information about the Koha-patches mailing list