[Koha-bugs] [Bug 19575] Use canonical field names and resolve aliased fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 13 15:40:34 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19575

--- Comment #77 from David Gustafsson <glasklas at gmail.com> ---
Could the cause be that the value of an: is unquoted in clause where
UseAuthoritiesForTracings is set in the excerpt below
(koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl line
308):

<xsl:choose>
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or
marc:datafield[@tag=111] or marc:datafield[@tag=700] or
marc:datafield[@tag=710] or marc:datafield[@tag=711]">
    <p class="author">av
    <xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and
@ind1!='z']">
    <a>
    <xsl:choose>
        <xsl:when test="marc:subfield[@code=9] and
$UseAuthoritiesForTracings='1'">
            <xsl:attribute
name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of
select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
        </xsl:when>
        <xsl:otherwise>
        <xsl:attribute
name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of
select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
        </xsl:otherwise>
    </xsl:choose>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list