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:
db3f551
)
Looks in more places for system-control-nr
author
Niels Erik G. Nielsen
<nielserik@indexdata.com>
Wed, 26 May 2010 16:13:56 +0000
(09:13 -0700)
committer
Niels Erik G. Nielsen
<nielserik@indexdata.com>
Wed, 26 May 2010 16:13:56 +0000
(09:13 -0700)
...if 035$a not found the try 035$b
etc/tmarc.xsl
patch
|
blob
|
history
diff --git
a/etc/tmarc.xsl
b/etc/tmarc.xsl
index
8ecdf18
..
f561f81
100644
(file)
--- a/
etc/tmarc.xsl
+++ b/
etc/tmarc.xsl
@@
-138,9
+138,16
@@
</pz:metadata>
</xsl:for-each>
- <xsl:for-each select="tmarc:d035">
+ <xsl:for-each select="tmarc:d035">
<pz:metadata type="system-control-nr">
- <xsl:value-of select="tmarc:sa" />
+ <xsl:choose>
+ <xsl:when test="tmarc:sa">
+ <xsl:value-of select="tmarc:sa"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="tmarc:sb"/>
+ </xsl:otherwise>
+ </xsl:choose>
</pz:metadata>
</xsl:for-each>