Aligns opac_turbomarc.xsl with opac.xsl
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Thu, 20 May 2010 16:56:54 +0000 (18:56 +0200)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Thu, 20 May 2010 16:56:54 +0000 (18:56 +0200)
.. with respect to recent changes to opac.xsl

etc/opac_turbomarc.xsl

index 4c3fe80..83d2319 100644 (file)
       </pz:metadata>
     </xsl:for-each>
   </xsl:template>
-
   <xsl:template match="/">
-    <xsl:apply-templates select="opacRecord/bibliographicRecord"/>
+    <xsl:choose>
+      <xsl:when test="opacRecord">
+        <xsl:apply-templates select="opacRecord/bibliographicRecord"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:apply-templates/>
+      </xsl:otherwise>
+    </xsl:choose>
   </xsl:template>
 
 </xsl:stylesheet>