Bug 15444 - MARC21: Repeated 508 not correctly formatted (missing separator)
authorWinona Salesky <wsalesky@gmail.com>
Mon, 4 Jan 2016 14:33:00 +0000 (09:33 -0500)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 04:15:23 +0000 (04:15 +0000)
This patch adds a separator for multiple 508 fields to the XSLT display in the staff and OPAC detail view.
Separator is wrapped in span with class=‘separator’ for easy manipulation via css.

To test:
* Search the OPAC
* Click the title with multiple 508 fields
* Make sure the fields display properly
* Repeat for a few more titles
* Repeat in the Staff Client

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl

index a2f7a0c..556f44f 100644 (file)
                     <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>
index 1c0444d..3c04fbc 100644 (file)
                         <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>