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:
69b77c4
)
Turbomarc needs number check for date 903 map PAZ-973
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 3 Oct 2014 10:37:41 +0000
(12:37 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 3 Oct 2014 10:37:41 +0000
(12:37 +0200)
etc/xsl/tmarc.xsl
patch
|
blob
|
history
diff --git
a/etc/xsl/tmarc.xsl
b/etc/xsl/tmarc.xsl
index
95e9975
..
c98ecbd
100644
(file)
--- a/
etc/xsl/tmarc.xsl
+++ b/
etc/xsl/tmarc.xsl
@@
-718,12
+718,12
@@
</xsl:for-each>
<xsl:for-each select="tmarc:d903">
- <xsl:if test="tmarc:sa">
+ <xsl:if test="number(tmarc:sa) > 0">
<pz:metadata type="publication-date">
- <xsl:value-of select="substring(tmarc:sa,1,4)"/>
+ <xsl:value-of select="number(tmarc:sa)"/>
</pz:metadata>
<pz:metadata type="date">
- <xsl:value-of select="substring(tmarc:sa,1,4)"/>
+ <xsl:value-of select="number(tmarc:sa)"/>
</pz:metadata>
</xsl:if>
</xsl:for-each>