Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 250a251
- > <xsl:variable name="analytics_query" select="marc:variables/marc:variable[@name='analytics_query']" />
- 260c261
- < <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:<xsl:value-of select="str:encode-uri(translate(marc:datafield[@tag=245]/marc:subfield[@code='a'], '/', ''), true())"/></xsl:attribute>
- ---
- > <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:("<xsl:value-of select="$analytics_query"/>")</xsl:attribute>
- 1177,1178c1178,1195
- < <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f773, '()', ''), true())"/></xsl:attribute>
- < <xsl:value-of select="$f773"/>
- ---
- > <xsl:variable name="title_query">
- > <xsl:call-template name="fix_query_term">
- > <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
- > </xsl:call-template>
- > </xsl:variable>
- > <xsl:variable name="author_query">
- > <xsl:if test="marc:subfield[@code='a']">
- > <xsl:call-template name="fix_query_term">
- > <xsl:with-param name="term">
- > <xsl:value-of select="marc:subfield[@code='a']"/>
- > </xsl:with-param>
- > </xsl:call-template>
- > </xsl:if>
- > </xsl:variable>
- > <a>
- > <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:("<xsl:value-of select="$title_query" />")<xsl:if test="$author_query">+AND+au:("<xsl:value-of select="$author_query"/>")</xsl:if>
- > </xsl:attribute>
- > <xsl:value-of select="$f773"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement