projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
15934c7
)
Changes to 'item' data by NE and quinn
author
Sebastian Hammer
<quinn@cmc.(none)>
Thu, 25 Mar 2010 00:52:15 +0000
(
01:52
+0100)
committer
Sebastian Hammer
<quinn@cmc.(none)>
Thu, 25 Mar 2010 00:52:15 +0000
(
01:52
+0100)
etc/cf.xsl
patch
|
blob
|
history
diff --git
a/etc/cf.xsl
b/etc/cf.xsl
index
873cfa1
..
959c82c
100644
(file)
--- a/
etc/cf.xsl
+++ b/
etc/cf.xsl
@@
-71,7
+71,7
@@
<xsl:template match="item">
<pz:metadata type="locallocation">
<xsl:choose>
<xsl:template match="item">
<pz:metadata type="locallocation">
<xsl:choose>
- <xsl:when test="location">
+ <xsl:when test="string-length(location)">
<xsl:value-of select="location"/>
</xsl:when>
<xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
<xsl:value-of select="location"/>
</xsl:when>
<xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
@@
-79,20
+79,28
@@
</pz:metadata>
<pz:metadata type="callnumber">
<xsl:choose>
</pz:metadata>
<pz:metadata type="callnumber">
<xsl:choose>
- <xsl:when test="callno">
+ <xsl:when test="string-length(callno)">
<xsl:value-of select="callno"/>
</xsl:when>
<xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
</xsl:choose>
</pz:metadata>
<xsl:value-of select="callno"/>
</xsl:when>
<xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
</xsl:choose>
</pz:metadata>
- <pz:metadata type="publicnote">
+ <pz:metadata type="available">
<xsl:choose>
<xsl:choose>
- <xsl:when test="available">
+ <xsl:when test="string-length(available)">
<xsl:value-of select="available"/>
</xsl:when>
<xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
</xsl:choose>
</pz:metadata>
<xsl:value-of select="available"/>
</xsl:when>
<xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
</xsl:choose>
</pz:metadata>
+ <pz:metadata type="publicnote">
+ <xsl:choose>
+ <xsl:when test="string-length(publicnote)">
+ <xsl:value-of select="publicnote"/>
+ </xsl:when>
+ <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+ </xsl:choose>
+ </pz:metadata>
</xsl:template>
<xsl:template match="due">
</xsl:template>
<xsl:template match="due">