Bug 25011: Improve display of MARC21 508 - Production credits in staff and OPAC

Makes some tiny changes to improve display and consistency between
OPAC and staff:
- Capitalization fix: Production Credits - Production credits
- Changes div to span avoiding display issues
- Make sequence of fields in display match (505, 508, 586)

To test:
- Catalog one or more records with none, one and multiple 508 $a
- Check and compare the staff and OPAC detail pages, both
  should display the production credits information correctly

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2020-03-27 23:48:56 +01:00 committed by Martin Renvoize
parent 52339bcef0
commit f300af96a7
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 24 additions and 24 deletions

View File

@ -1009,6 +1009,19 @@
</span>
</xsl:if>
<!-- 508 -->
<xsl:if test="marc:datafield[@tag=508]">
<span class="results_summary prod_credits">
<span class="label">Production credits: </span>
<xsl:for-each select="marc:datafield[@tag=508]">
<xsl:call-template name="subfieldSelectSpan">
<xsl:with-param name="codes">a</xsl:with-param>
</xsl:call-template>
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
</xsl:for-each>
</span>
</xsl:if>
<!-- 583 -->
<xsl:if test="marc:datafield[@tag=583]">
<span class="results_summary actionnote">
@ -1029,19 +1042,6 @@
</span>
</xsl:if>
<!-- 508 -->
<xsl:if test="marc:datafield[@tag=508]">
<div class="results_summary prod_credits">
<span class="label">Production credits: </span>
<xsl:for-each select="marc:datafield[@tag=508]">
<xsl:call-template name="subfieldSelectSpan">
<xsl:with-param name="codes">a</xsl:with-param>
</xsl:call-template>
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
</xsl:for-each>
</div>
</xsl:if>
<!-- 773 -->
<xsl:if test="marc:datafield[@tag=773]">
<xsl:for-each select="marc:datafield[@tag=773]">

View File

@ -1102,17 +1102,17 @@
</xsl:if>
<!-- 508 -->
<xsl:if test="marc:datafield[@tag=508]">
<div class="results_summary prod_credits">
<span class="label">Production Credits: </span>
<xsl:for-each select="marc:datafield[@tag=508]">
<xsl:call-template name="subfieldSelectSpan">
<xsl:with-param name="codes">a</xsl:with-param>
</xsl:call-template>
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
</xsl:for-each>
</div>
</xsl:if>
<xsl:if test="marc:datafield[@tag=508]">
<span class="results_summary prod_credits">
<span class="label">Production credits: </span>
<xsl:for-each select="marc:datafield[@tag=508]">
<xsl:call-template name="subfieldSelectSpan">
<xsl:with-param name="codes">a</xsl:with-param>
</xsl:call-template>
<xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
</xsl:for-each>
</span>
</xsl:if>
<!-- 586 -->
<xsl:if test="marc:datafield[@tag=586]">