Add pz22usi.xsl to the list of ignored files. The master copy is in
[pazpar2-moved-to-github.git] / 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>