<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+<!DOCTYPE stylesheet>
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
<!-- Edited: Bug 1807 [ENH] XSLT enhancements sponsored by bywater solutions 2015/01/19 WS wsalesky@gmail.com -->
<xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
<xsl:variable name="TracingQuotesLeft">
<xsl:choose>
- <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
+ <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICUStyleQuotes']='1'">{</xsl:when>
<xsl:otherwise>"</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="TracingQuotesRight">
<xsl:choose>
- <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">}</xsl:when>
+ <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICUStyleQuotes']='1'">}</xsl:when>
<xsl:otherwise>"</xsl:otherwise>
</xsl:choose>
</xsl:variable>
</xsl:choose>
</xsl:variable>
- <!-- Indicate if record is suppressed in OPAC -->
- <xsl:if test="$OpacSuppression = 1">
- <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
- <span class="results_summary suppressed_opac">Suppressed in OPAC</span>
- </xsl:if>
- </xsl:if>
-
<!-- Title Statement -->
<!-- Alternate Graphic Representation (MARC 880) -->
<xsl:if test="$display880">
<xsl:with-param name="index">se</xsl:with-param>
</xsl:call-template>
</xsl:if>
-
- <!-- Series -->
- <xsl:if test="marc:datafield[@tag=440 or @tag=490]">
- <span class="results_summary series"><span class="label">Series: </span>
- <!-- 440 -->
- <xsl:for-each select="marc:datafield[@tag=440]">
- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">av</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </a>
- <xsl:call-template name="part"/>
- <xsl:choose>
- <xsl:when test="position()=last()">
- <xsl:if test="../marc:datafield[@tag=490][@ind1!=1]">
- <xsl:text>; </xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <!-- 490 Series not traced, Ind1 = 0 -->
- <xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]">
- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">av</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </a>
- <xsl:call-template name="part"/>
- <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
- </xsl:for-each>
- <!-- 490 Series traced, Ind1 = 1 -->
- <xsl:if test="marc:datafield[@tag=490][@ind1=1]">
- <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811]">
- <xsl:choose>
- <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:subfield[@code='w'], true())"/></xsl:attribute>
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">a_t</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </a>
- </xsl:when>
- <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
- <a><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:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">a_t</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/>"&q=au:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">a_t</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </a>
- <xsl:call-template name="part"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>: </xsl:text>
- <xsl:value-of select="marc:subfield[@code='v']" />
- <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
- </xsl:for-each>
-
- <xsl:for-each select="marc:datafield[@tag=830]">
- <xsl:choose>
- <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
- <a href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}">
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">a_t</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </a>
- </xsl:when>
- <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
- <a><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:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">a_t</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>"</xsl:attribute>
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">a_t</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </a>
- <xsl:call-template name="part"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text>: </xsl:text>
- <xsl:value-of select="marc:subfield[@code='v']" />
- <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
- </xsl:for-each>
- </xsl:if>
-
- </span>
- </xsl:if>
+ <xsl:call-template name="show-series">
+ <xsl:with-param name="searchurl">/cgi-bin/koha/catalogue/search.pl</xsl:with-param>
+ <xsl:with-param name="UseControlNumber" select="$UseControlNumber"/>
+ <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
+ </xsl:call-template>
<!-- Analytics information -->
<xsl:variable name="leader7_class">
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+AND+(bib-level:a+OR+bib-level:b)</xsl:attribute>
</xsl:when>
<xsl:otherwise>
- <xsl:attribute name="href">/cgi-bin/koha/catalogue/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/catalogue/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:otherwise>
</xsl:choose>
<xsl:text>Show analytics</xsl:text>
<xsl:with-param name="basetags">260</xsl:with-param>
<xsl:with-param name="codes">abcg</xsl:with-param>
<xsl:with-param name="class">results_summary publisher</xsl:with-param>
- <xsl:with-param name="label">Publisher: </xsl:with-param>
+ <xsl:with-param name="label">Publication details: </xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:call-template>
</xsl:when>
<xsl:when test="marc:datafield[@tag=260]">
- <span class="results_summary publisher"><span class="label">Publisher: </span>
+ <span class="results_summary publisher"><span class="label">Publication details: </span>
<xsl:for-each select="marc:datafield[@tag=260]">
- <xsl:if test="marc:subfield[@code='a']">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">a</xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <xsl:text> </xsl:text>
- <xsl:if test="marc:subfield[@code='b']">
- <a>
- <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Provider:"<xsl:value-of select="str:encode-uri(marc:subfield[@code='b'], true())"/>"</xsl:attribute>
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">b</xsl:with-param>
- </xsl:call-template>
- </a>
- </xsl:if>
- <xsl:text> </xsl:text>
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">cg</xsl:with-param>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
+ <xsl:for-each select="marc:subfield">
+ <xsl:if test="@code='a'">
+ <a>
+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=pl:"<xsl:value-of select="str:encode-uri(current(), true())"/>"</xsl:attribute>
+ <xsl:value-of select="current()"/>
+ </a>
+ </xsl:if>
+ <xsl:if test="@code='b'">
+ <a>
+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Provider:"<xsl:value-of select="str:encode-uri(current(), true())"/>"</xsl:attribute>
+ <xsl:value-of select="current()"/>
+ </a>
+ </xsl:if>
+ <xsl:if test="@code='c'">
+ <a>
+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=copydate:"<xsl:value-of select="str:encode-uri(current(), true())"/>"</xsl:attribute>
+ <xsl:value-of select="current()"/>
+ </a>
+ </xsl:if>
+ <xsl:if test="@code='g'">
+ <xsl:call-template name="chopPunctuation">
+ <xsl:with-param name="chopString">
+ <xsl:value-of select="current()"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="position() != last()">
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ </xsl:for-each>
+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
</xsl:for-each>
</span>
</xsl:when>
<xsl:text> </xsl:text>
<a class='authlink'>
<xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
- <xsl:element name="img">
- <xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute>
- <xsl:attribute name="alt"></xsl:attribute>
- <xsl:attribute name="height">15</xsl:attribute>
- <xsl:attribute name="width">15</xsl:attribute>
+ <xsl:element name="i">
+ <xsl:attribute name="class">fa fa-search</xsl:attribute>
+ <xsl:attribute name="aria-label">View authority record</xsl:attribute>
</xsl:element>
</a>
</xsl:if>
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">avxyz</xsl:with-param>
<xsl:with-param name="delimeter"> AND </xsl:with-param>
- <xsl:with-param name="prefix">(su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/></xsl:with-param>
+ <xsl:with-param name="prefix">(index-term-genre<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/></xsl:with-param>
<xsl:with-param name="suffix"><xsl:value-of select="$TracingQuotesRight"/>)</xsl:with-param>
<xsl:with-param name="urlencode">1</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
- <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/><xsl:value-of select="marc:subfield[@code='a']"/><xsl:value-of select="$TracingQuotesRight"/></xsl:attribute>
+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=index-term-genre<xsl:value-of select="$SubjectModifier"/>:<xsl:value-of select="$TracingQuotesLeft"/><xsl:value-of select="marc:subfield[@code='a']"/><xsl:value-of select="$TracingQuotesRight"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="subfieldSelect">
<xsl:text> </xsl:text>
<a class='authlink'>
<xsl:attribute name="href">/cgi-bin/koha/authorities/detail.pl?authid=<xsl:value-of select="str:encode-uri(marc:subfield[@code=9], true())"/></xsl:attribute>
- <xsl:element name="img">
- <xsl:attribute name="src">/intranet-tmpl/prog/img/filefind.png</xsl:attribute>
- <xsl:attribute name="alt"></xsl:attribute>
- <xsl:attribute name="height">15</xsl:attribute>
- <xsl:attribute name="width">15</xsl:attribute>
+ <xsl:element name="i">
+ <xsl:attribute name="class">fa fa-search</xsl:attribute>
+ <xsl:attribute name="aria-label">View authority record</xsl:attribute>
</xsl:element>
</a>
</xsl:if>
</span>
</xsl:if>
+<!-- MARC21 777 - Issued With Entry -->
+ <xsl:if test="marc:datafield[@tag=777]">
+ <xsl:for-each select="marc:datafield[@tag=777]">
+ <xsl:if test="@ind1 != 1">
+ <span class="results_summary issued_with">
+ <span class="label">
+ <xsl:choose>
+ <xsl:when test="@ind2=8 and marc:subfield[@code='i']">
+ <xsl:value-of select="marc:subfield[@code='i']"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>Issued with:</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text> </xsl:text>
+ </span>
+ <xsl:variable name="f777">
+ <xsl:call-template name="chopPunctuation">
+ <xsl:with-param name="chopString">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">a_t</xsl:with-param>
+ </xsl:call-template>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
+ <xsl:value-of select="translate($f777, '()', '')"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/></xsl:attribute>
+ <xsl:value-of select="$f777"/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="marc:subfield[@code='g']">
+ <xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/>
+ </xsl:if>
+ </span>
+ <xsl:if test="marc:subfield[@code='n']">
+ <xsl:text> </xsl:text><span class="results_summary in_note"><xsl:value-of select="marc:subfield[@code='n']"/></span>
+ </xsl:if>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:if>
+
+<!-- Publisher or Distributor Number -->
+ <xsl:if test="marc:datafield[@tag=028]">
+ <span class="results_summary publisher_number ">
+ <span class="label">Publisher number: </span>
+ <xsl:for-each select="marc:datafield[@tag=028]">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">abq</xsl:with-param>
+ <xsl:with-param name="delimeter"><xsl:text> | </xsl:text></xsl:with-param>
+ </xsl:call-template>
+ </xsl:for-each>
+ </span>
+ </xsl:if>
+
<!-- DDC classification -->
<xsl:if test="marc:datafield[@tag=082]">
<span class="results_summary ddc">
</span>
</xsl:if>
+ <!-- 505 - Formatted contents note -->
<xsl:if test="marc:datafield[@tag=505]">
<div class="results_summary contents">
<xsl:choose>
- <xsl:when test="marc:datafield[@tag=505]/@ind1=0">
- <span class="label">Contents:</span>
- </xsl:when>
- <xsl:when test="marc:datafield[@tag=505]/@ind1=1">
- <span class="label">Incomplete contents:</span>
- </xsl:when>
- <xsl:when test="marc:datafield[@tag=505]/@ind1=2">
- <span class="label">Partial contents:</span>
- </xsl:when>
+ <xsl:when test="marc:datafield[@tag=505]/@ind1=0">
+ <span class="label">Contents:</span>
+ </xsl:when>
+ <xsl:when test="marc:datafield[@tag=505]/@ind1=1">
+ <span class="label">Incomplete contents:</span>
+ </xsl:when>
+ <xsl:when test="marc:datafield[@tag=505]/@ind1=2">
+ <span class="label">Partial contents:</span>
+ </xsl:when>
</xsl:choose>
<xsl:for-each select="marc:datafield[@tag=505]">
<div class='contentblock'>
<xsl:choose>
<xsl:when test="@ind2=0">
<xsl:call-template name="subfieldSelectSpan">
- <xsl:with-param name="codes">tru</xsl:with-param>
+ <xsl:with-param name="newline">1</xsl:with-param>
+ <xsl:with-param name="codes">trug</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="subfieldSelectSpan">
- <xsl:with-param name="codes">atru</xsl:with-param>
+ <xsl:with-param name="newline">1</xsl:with-param>
+ <xsl:with-param name="codes">atrug</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:when>
<xsl:otherwise>
- <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate($f773, '()', ''), true())"/></xsl:attribute>
- <xsl:value-of select="$f773"/>
+ <a>
+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate(marc:subfield[@code='t'], '()', ''), true())"/><xsl:if test="marc:subfield[@code='a']">+AND+au:<xsl:value-of select="str:encode-uri(translate(marc:subfield[@code='a'], '()', ''), true())"/></xsl:if></xsl:attribute>
+ <xsl:value-of select="$f773"/>
</a>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
+ <!-- 770 - Supplement/Special issue entry -->
+ <xsl:if test="marc:datafield[@tag=770]">
+ <span class="results_summary supplement"><span class="label">Supplement: </span>
+ <xsl:for-each select="marc:datafield[@tag=770]">
+ <xsl:if test="marc:subfield[@code='i']">
+ <span class="770_rel_info">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">i</xsl:with-param>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+ </span>
+ </xsl:if>
+ <a>
+ <xsl:choose>
+ <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
+ <xsl:attribute name="href">
+ /cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate(marc:subfield[@code='t'], '()', ''),true())"/></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">a_t</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
+ </a>
+ <xsl:text> </xsl:text>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
+ </xsl:call-template>
+ <xsl:choose>
+ <xsl:when test="position()=last()"></xsl:when>
+ <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </span>
+ </xsl:if>
+
+ <!-- 772 - Supplement parent entry -->
+ <xsl:if test="marc:datafield[@tag=772]">
+ <span class="results_summary supplement_parent"><span class="label">Supplement to: </span>
+ <xsl:for-each select="marc:datafield[@tag=772]">
+ <xsl:if test="marc:subfield[@code='i']">
+ <span class="772_rel_info">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">i</xsl:with-param>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+ </span>
+ </xsl:if>
+ <a>
+ <xsl:choose>
+ <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
+ <xsl:attribute name="href">
+ /cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(translate(marc:subfield[@code='t'], '()', ''),true())"/></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="marc:subfield[@code='a'] or marc:subfield[@code='t']">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">a_t</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
+ </a>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">bdghkmnr9usxyz</xsl:with-param>
+ </xsl:call-template>
+ <xsl:choose>
+ <xsl:when test="position()=last()"></xsl:when>
+ <xsl:otherwise><span class="separator"> | </span></xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </span>
+ </xsl:if>
<!-- 775 Other Edition -->
<xsl:if test="marc:datafield[@tag=775]">
</xsl:for-each>
</xsl:if>
- <xsl:if test="$OPACBaseURL!=''">
- <span class="results_summary opac_view"><span class="label">OPAC view: </span>
- <a><xsl:attribute name="href"><xsl:value-of select="$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:datafield[@tag=999]/marc:subfield[@code='c'], true())"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>Open in new window</a>.
- </span>
- </xsl:if>
+ <!-- Indicate if record is suppressed in OPAC -->
+ <xsl:choose>
+ <xsl:when test="$OpacSuppression = 1 and marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
+ <span class="results_summary suppressed_opac">
+ <span class="label">OPAC view: </span>
+ Suppressed in OPAC
+ </span>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:if test="$OPACBaseURL!=''">
+ <span class="results_summary opac_view"><span class="label">OPAC view: </span>
+ <a><xsl:attribute name="href"><xsl:value-of select="$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="str:encode-uri(marc:datafield[@tag=999]/marc:subfield[@code='c'], true())"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>Open in new window</a>.
+ </span>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+
+
</xsl:template>
</xsl:call-template>
</xsl:template>
- <xsl:template name="part">
- <xsl:variable name="partNumber">
- <xsl:call-template name="specialSubfieldSelect">
- <xsl:with-param name="axis">n</xsl:with-param>
- <xsl:with-param name="anyCodes">n</xsl:with-param>
- <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="partName">
- <xsl:call-template name="specialSubfieldSelect">
- <xsl:with-param name="axis">p</xsl:with-param>
- <xsl:with-param name="anyCodes">p</xsl:with-param>
- <xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:if test="string-length(normalize-space($partNumber))">
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString" select="$partNumber"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:if test="string-length(normalize-space($partName))">
- <xsl:call-template name="chopPunctuation">
- <xsl:with-param name="chopString" select="$partName"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:template>
-
<xsl:template name="specialSubfieldSelect">
<xsl:param name="anyCodes"/>
<xsl:param name="axis"/>