projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
[pazpar2-moved-to-github.git]
/
etc
/
opac_turbomarc.xsl
diff --git
a/etc/opac_turbomarc.xsl
b/etc/opac_turbomarc.xsl
index
4c3fe80
..
83d2319
100644
(file)
--- a/
etc/opac_turbomarc.xsl
+++ b/
etc/opac_turbomarc.xsl
@@
-57,9
+57,15
@@
</pz:metadata>
</xsl:for-each>
</xsl:template>
</pz:metadata>
</xsl:for-each>
</xsl:template>
-
<xsl:template match="/">
<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>
</xsl:template>
</xsl:stylesheet>