Fix malformed OPAC search syntax that caused this bug:
When using the default stylesheet for MARC21 XSLT OPAC details display, the
search links for name headings (from 100, 700, 710, 710, 111, and 711) that are
linked to authority records don't work. When the user clicks on such a link,
they are directed to the advanced search form instead of the search results.
---
.../prog/en/xslt/MARC21slim2OPACDetail.xsl | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
index 080be22..2e0ba36 100644
--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
@@ -75,7 +75,7 @@
<a>
<xsl:choose>
<xsl:when test="marc:[EMAIL PROTECTED]">
- <xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?authid=<xsl:value-of
select="marc:[EMAIL PROTECTED]"/></xsl:attribute>
+ <xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:[EMAIL
PROTECTED]"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:[EMAIL
PROTECTED]'a']"/></xsl:attribute>
@@ -90,7 +90,7 @@
<a>
<xsl:choose>
<xsl:when test="marc:[EMAIL PROTECTED]">
- <xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?authid=<xsl:value-of
select="marc:[EMAIL PROTECTED]"/></xsl:attribute>
+ <xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:[EMAIL
PROTECTED]"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:[EMAIL
PROTECTED]'a']"/></xsl:attribute>
@@ -104,7 +104,7 @@
<a>
<xsl:choose>
<xsl:when test="marc:[EMAIL PROTECTED]">
- <xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?authid=<xsl:value-of
select="marc:[EMAIL PROTECTED]"/></xsl:attribute>
+ <xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:[EMAIL
PROTECTED]"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:[EMAIL
PROTECTED]'a']"/></xsl:attribute>
--
1.5.5.GIT
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches