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
you need to install+enable the apache module "proxy_balancer" for load balancing...
[pazpar2-moved-to-github.git]
/
etc
/
opac.xsl
diff --git
a/etc/opac.xsl
b/etc/opac.xsl
index
57b2b5f
..
617a18b
100644
(file)
--- a/
etc/opac.xsl
+++ b/
etc/opac.xsl
@@
-16,13
+16,28
@@
<xsl:template name="record-hook">
<xsl:for-each select="/opacRecord/holdings/holding">
<pz:metadata type="locallocation">
<xsl:template name="record-hook">
<xsl:for-each select="/opacRecord/holdings/holding">
<pz:metadata type="locallocation">
- <xsl:value-of select="localLocation"/>
+ <xsl:choose>
+ <xsl:when test="localLocation">
+ <xsl:value-of select="localLocation"/>
+ </xsl:when>
+ <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+ </xsl:choose>
</pz:metadata>
<pz:metadata type="callnumber">
</pz:metadata>
<pz:metadata type="callnumber">
- <xsl:value-of select="callNumber"/>
+ <xsl:choose>
+ <xsl:when test="callNumber">
+ <xsl:value-of select="callNumber"/>
+ </xsl:when>
+ <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+ </xsl:choose>
</pz:metadata>
<pz:metadata type="publicnote">
</pz:metadata>
<pz:metadata type="publicnote">
- <xsl:value-of select="publicNote"/>
+ <xsl:choose>
+ <xsl:when test="publicNote">
+ <xsl:value-of select="publicNote"/>
+ </xsl:when>
+ <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+ </xsl:choose>
</pz:metadata>
</xsl:for-each>
</xsl:template>
</pz:metadata>
</xsl:for-each>
</xsl:template>