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:
2f6f329
)
Looks in more places for system-control-nr
author
Niels Erik G. Nielsen
<nielserik@indexdata.com>
Wed, 26 May 2010 12:10:05 +0000
(
05:10
-0700)
committer
Niels Erik G. Nielsen
<nielserik@indexdata.com>
Wed, 26 May 2010 12:10:05 +0000
(
05:10
-0700)
If not found in 035$a, tries 035$b
etc/marc21.xsl
patch
|
blob
|
history
diff --git
a/etc/marc21.xsl
b/etc/marc21.xsl
index
71178b7
..
8ef68ce
100644
(file)
--- a/
etc/marc21.xsl
+++ b/
etc/marc21.xsl
@@
-76,7
+76,14
@@
<xsl:for-each select="marc:datafield[@tag='035']">
<pz:metadata type="system-control-nr">
- <xsl:value-of select="marc:subfield[@code='a']"/>
+ <xsl:choose>
+ <xsl:when test="marc:subfield[@code='a']">
+ <xsl:value-of select="marc:subfield[@code='a']"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="marc:subfield[@code='b']"/>
+ </xsl:otherwise>
+ </xsl:choose>
</pz:metadata>
</xsl:for-each>