Bug 7332: Translated title (MARC21 242) not shown
The cataloger-supplied translated title stored in MARC21 field 242 was not being displayed when XSLT was enabled. Test plan: 1) Enable XSLT for OPAC Details and Results, and Intranet Details. 2) Create or add a record with a 242 field 3) See that the translated title is not displayed in OPAC Details or Results, or Intranet Details 4) Apply patch 5) See that the translated title is now displayed in OPAC Details and Results, and Intranet Details Signed-off-by: Duncan Tyler <duncan@duncan-SoT.wgtn.cat-it.co.nz> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
629f3f322c
commit
9156de6384
3 changed files with 42 additions and 0 deletions
|
@ -403,6 +403,21 @@
|
|||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=242]">
|
||||
<span class="results_summary translated_title"><span class="label">Title translated: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=242]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abchnp</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>
|
||||
|
||||
<!-- Uniform Title Statement: Alternate Graphic Representation (MARC 880) -->
|
||||
<xsl:if test="$display880">
|
||||
<xsl:call-template name="m880Select">
|
||||
|
|
|
@ -462,6 +462,22 @@
|
|||
</span>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=242]">
|
||||
<span class="results_summary translated_title"><span class="label">Title translated: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=242]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abchnp</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>
|
||||
|
||||
<!-- Uniform Title Statement: Alternate Graphic Representation (MARC 880) -->
|
||||
<xsl:if test="$display880">
|
||||
<xsl:call-template name="m880Select">
|
||||
|
|
|
@ -904,6 +904,17 @@
|
|||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:datafield[@tag=242]">
|
||||
<span class="results_summary">
|
||||
<span class="label">Title translated: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=242]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abh</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=856]">
|
||||
<span class="results_summary">
|
||||
<span class="label">Online Access: </span>
|
||||
|
|
Loading…
Reference in a new issue