Skip to content

Commit

Permalink
[#53577373] Add authority link search to XSLT 830
Browse files Browse the repository at this point in the history
The 830 link in both staff and OPAC was doing a series title
search by default, not searching against the authority RCN.
  • Loading branch information
Jane Wagner committed Jul 18, 2013
1 parent 1d826c3 commit 902eae0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Expand Up @@ -320,7 +320,15 @@
<xsl:if test="marc:datafield[@tag=490][@ind1=1]">
<xsl:for-each select="marc:datafield[@tag=830]">
<span class="results_summary"><span class="label displayseriesaddedlabel">Series Added Entry Title: </span>
<a href="/cgi-bin/koha/catalogue/search.pl?q=series-title:{marc:subfield[@code='a']}">
<a>
<xsl:choose>
<xsl:when test="marc:subfield[@code=0 and $SearchByRcn=1]">
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=linked_rcn:%22<xsl:value-of select="marc:subfield[@code=0]"/>%22</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=series-title:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
Expand Down
10 changes: 9 additions & 1 deletion koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
Expand Up @@ -337,7 +337,15 @@
<xsl:if test="marc:datafield[@tag=490][@ind1=1]">
<xsl:for-each select="marc:datafield[@tag=830]">
<span class="results_summary"><span class="displayseriesaddedlabel label">Series Added Entry Title: </span>
<a href="/cgi-bin/koha/opac-search.pl?q=series-title:{marc:subfield[@code='a']}">
<a>
<xsl:choose>
<xsl:when test="marc:subfield[@code=0 and $SearchByRcn=1]">
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=linked_rcn:%22<xsl:value-of select="marc:subfield[@code=0]"/>%22</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=series-title:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
Expand Down

0 comments on commit 902eae0

Please sign in to comment.