Advertisement
rudolfbyker

diff kohanna/MARC21slim2OPACDetail.xsl web/MARC21slim2OPACDetail.xsl

Jan 4th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. 250a251
  2. > <xsl:variable name="analytics_query" select="marc:variables/marc:variable[@name='analytics_query']" />
  3. 260c261
  4. < <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>
  5. ---
  6. > <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=Host-item:("<xsl:value-of select="$analytics_query"/>")</xsl:attribute>
  7. 1177,1178c1178,1195
  8. < <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>
  9. < <xsl:value-of select="$f773"/>
  10. ---
  11. > <xsl:variable name="title_query">
  12. > <xsl:call-template name="fix_query_term">
  13. > <xsl:with-param name="term"><xsl:value-of select="marc:subfield[@code='t']"/></xsl:with-param>
  14. > </xsl:call-template>
  15. > </xsl:variable>
  16. > <xsl:variable name="author_query">
  17. > <xsl:if test="marc:subfield[@code='a']">
  18. > <xsl:call-template name="fix_query_term">
  19. > <xsl:with-param name="term">
  20. > <xsl:value-of select="marc:subfield[@code='a']"/>
  21. > </xsl:with-param>
  22. > </xsl:call-template>
  23. > </xsl:if>
  24. > </xsl:variable>
  25. > <a>
  26. > <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>
  27. > </xsl:attribute>
  28. > <xsl:value-of select="$f773"/>
  29.  
Tags: koha
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement