Bug 20986: Add 867 and 868 holdings display

Add line breaks in the 866 Holdings display in the OPAC details and Staff details page.  Add 867 and 868 textual holdings with line breaks in the OPAC and Staff details display.

Signed-off-by: Ed Veal <eveal@mckinneytexas.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Joy Nelson 2018-06-22 15:22:40 -07:00 committed by Martin Renvoize
parent 6d046c2e3d
commit c23276324c
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
2 changed files with 53 additions and 4 deletions

View file

@ -1065,16 +1065,41 @@
<!-- 866 textual holdings -->
<xsl:if test="marc:datafield[@tag=866]">
<span class="results_summary holdings_note"><span class="label">Holdings note: </span>
<span class="results_summary holdings_note"><span class="label">Holdings: </span><br />
<xsl:for-each select="marc:datafield[@tag=866]">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">axz</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:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text><br /></xsl:otherwise></xsl:choose>
</xsl:for-each>
</span>
</xsl:if>
<!-- 867 textual holdings -->
<xsl:if test="marc:datafield[@tag=867]">
<span class="results_summary holdings_note"><span class="label">Supplements: </span><br />
<xsl:for-each select="marc:datafield[@tag=867]">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">axz</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><br /></xsl:otherwise></xsl:choose>
</xsl:for-each>
</span>
</xsl:if>
<!-- 868 textual holdings -->
<xsl:if test="marc:datafield[@tag=868]">
<span class="results_summary holdings_note"><span class="label">Indexes: </span><br />
<xsl:for-each select="marc:datafield[@tag=868]">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">axz</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><br /></xsl:otherwise></xsl:choose>
</xsl:for-each>
</span>
</xsl:if>
<!-- 775 Other Edition -->
<xsl:if test="marc:datafield[@tag=775]">
<span class="results_summary other_editions"><span class="label">Other editions: </span>

View file

@ -1201,12 +1201,36 @@
<!-- 866 textual holdings -->
<xsl:if test="marc:datafield[@tag=866]">
<span class="results_summary holdings_note"><span class="label">Holdings note: </span>
<span class="results_summary holdings_note"><span class="label">Holdings: </span> <br />
<xsl:for-each select="marc:datafield[@tag=866]">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">az</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:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text><br /></xsl:otherwise></xsl:choose>
</xsl:for-each>
</span>
</xsl:if>
<!-- 867 textual holdings -->
<xsl:if test="marc:datafield[@tag=867]">
<span class="results_summary holdings_note"><span class="label">Supplements: </span> <br />
<xsl:for-each select="marc:datafield[@tag=867]">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">az</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><br /></xsl:otherwise></xsl:choose>
</xsl:for-each>
</span>
</xsl:if>
<!-- 868 textual holdings -->
<xsl:if test="marc:datafield[@tag=868]">
<span class="results_summary holdings_note"><span class="label">Indexes: </span> <br />
<xsl:for-each select="marc:datafield[@tag=868]">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">az</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><br /></xsl:otherwise></xsl:choose>
</xsl:for-each>
</span>
</xsl:if>