[Koha-bugs] [Bug 4472] New: img tags in xslt broken after automatic translation

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Mon May 10 13:59:53 CEST 2010


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4472

           Summary: img tags in xslt broken after automatic translation
           Product: Koha
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: I18N/L10N
        AssignedTo: chris at bigballofwax.co.nz
        ReportedBy: katrin.fischer at bsz-bw.de
   Estimated Hours: 0.0
 Change sponsored?: ---


I tested Galen's patch to Bug 3214 and got an error 500 page, when I tried to
search something while German, French or Spanish were chosen.

Searching with English templates worked fine.

With Galen's help we found out that after automatic translation the img tags in
MARC21slim2OPACResults.xsl are not closed. This breaks the XSLT files.

I corrected all img tags in my XSLT files and everything worked fine.

Before:

<img src="/opac-tmpl/prog/famfamfam/silk/database.png" alt="Datenbank"
title="Datenbank">

After correction:

<img src="/opac-tmpl/prog/famfamfam/silk/database.png" alt="Datenbank"
title="Datenbank"/>

MARC21slim2OPACDetail.xsl contains no img tags, but a different solution to
create an img tag:

<xsl:element name="img"><xsl:attribute
name="src">/opac-tmpl/prog/famfamfam/<xsl:value-of
select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute
name="alt"></xsl:attribute></xsl:element>


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list