Merge subject-long normalization. Add localid (999). Add uniform fields. Rearrange...
[pazpar2-moved-to-github.git] / etc / opac.xsl
index aa1eabe..e4c5457 100644 (file)
   </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>