Bug 15727: Add MARC21 385 - Audience to detail pages
This add 385$m$a to the staff and intranet detail pages. To test: - Catalog different variations of 385 and verify the display in the OPAC and staff client is ok Examples can be found in the LOC MARC21 documentation: http://www.loc.gov/marc/bibliographic/bd385.html Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
48d887c236
commit
3ebfa1a74a
2 changed files with 54 additions and 1 deletions
|
@ -515,6 +515,33 @@
|
|||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 385 - Audience -->
|
||||
<xsl:if test="marc:datafield[@tag=385]">
|
||||
<span class="results_summary audience">
|
||||
<span class="label">Audience: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=385]">
|
||||
<xsl:if test="marc:subfield[@code='m']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">m</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:text>: </xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
<xsl:with-param name="delimeter">, </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>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:call-template name="showISBNISSN"/>
|
||||
|
||||
|
|
|
@ -546,7 +546,33 @@
|
|||
</span>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<!-- 385 - Audience -->
|
||||
<xsl:if test="marc:datafield[@tag=385]">
|
||||
<span class="results_summary audience">
|
||||
<span class="label">Audience: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=385]">
|
||||
<xsl:if test="marc:subfield[@code='m']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">m</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:text>: </xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
<xsl:with-param name="delimeter">, </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>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=020]/marc:subfield[@code='a']">
|
||||
<span class="results_summary isbn"><span class="label">ISBN: </span>
|
||||
|
|
Loading…
Reference in a new issue