Bug 13174 : XSLT fails if, and only if you have an author, linked to an authority
authorChris Cormack <chrisc@catalyst.net.nz>
Thu, 30 Oct 2014 23:54:04 +0000 (12:54 +1300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 31 Oct 2014 15:15:16 +0000 (12:15 -0300)
And only in MARC21

To test:

Only for MARC21 with XSLT on for detail

1/ Find a record that has an authority linked author in it
2/ View the detail page in the opac
3/ Notice bibliographic data is missing
4/ Apply patch
5/ Refresh notice bibliographic data is back

Signed-off-by: David Cook <dcook@prosentient.com.au>

Works as described.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>

Works as describe, the details are back!

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl

index 15960cd..353a96e 100644 (file)
                         <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/>
                         <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
                         <xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/>
+                        <xsl:with-param name="theme" select="$theme"/>
                     </xsl:call-template>
                 </h5>
             </xsl:when>
         <xsl:param name="authorfield" />
         <xsl:param name="UseAuthoritiesForTracings" />
         <xsl:param name="materialTypeLabel" />
+        <xsl:param name="theme" />
         <xsl:for-each select="$authorfield">
             <xsl:choose><xsl:when test="position()!=1"><xsl:text>; </xsl:text></xsl:when></xsl:choose>
             <xsl:choose>