[Koha] 777 fields (issued with entry) not displaying
schnydszch
eugenegf at yahoo.com
Fri Jun 10 16:04:22 NZST 2016
I tested adding 777 in my xslt by copying those related with 773 and
replacing it with 777 and also replacing "In" with "Issued with", I have the
following:
<xsl:if test="marc:datafield[@tag=777]">
<xsl:for-each select="marc:datafield[@tag=777]">
<xsl:if test="@ind1 !=1">
<xsl:choose>
<xsl:when test="@ind2=' '">
Issued with:
</xsl:when>
<xsl:when test="@ind2=8">
<xsl:if test="marc:subfield[@code='i']">
<xsl:value-of select="marc:subfield[@code='i']"/>
</xsl:if>
</xsl:when>
</xsl:choose>
<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']">
<xsl:attribute
name="href">/cgi-bin/koha/opac-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, '()', '')"/>
<xsl:if test="marc:subfield[@code='g']"><xsl:text>
</xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
</xsl:when>
<xsl:when test="marc:subfield[@code='0']">
<xsl:attribute
name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of
select="marc:subfield[@code='0']"/></xsl:attribute>
<xsl:value-of select="$f777"/>
</xsl:when>
<xsl:otherwise>
<xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of
select="translate($f777, '()', '')"/></xsl:attribute>
<xsl:value-of select="$f777"/>
<xsl:if test="marc:subfield[@code='g']"><xsl:text>
</xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="marc:subfield[@code='n']">
<xsl:value-of select="marc:subfield[@code='n']"/>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:if>
Screenshot of the one I tested is below:
<http://koha.1045719.n5.nabble.com/file/n5891081/for777.png>
I hope someone in the group can edit further the xslt.
Cheers! :)
--
View this message in context: http://koha.1045719.n5.nabble.com/777-fields-issued-with-entry-not-displaying-tp5891056p5891081.html
Sent from the Koha-general mailing list archive at Nabble.com.
More information about the Koha
mailing list