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:
37efb5d
)
Adds OCLC number as specified by LoT
author
Niels Erik G. Nielsen
<nielserik@indexdata.com>
Mon, 6 Dec 2010 18:19:44 +0000
(19:19 +0100)
committer
Niels Erik G. Nielsen
<nielserik@indexdata.com>
Mon, 6 Dec 2010 18:19:44 +0000
(19:19 +0100)
etc/tmarc.xsl
patch
|
blob
|
history
diff --git
a/etc/tmarc.xsl
b/etc/tmarc.xsl
index
8784bc1
..
3a1e7ff
100644
(file)
--- a/
etc/tmarc.xsl
+++ b/
etc/tmarc.xsl
@@
-118,6
+118,21
@@
</xsl:choose>
</xsl:variable>
</xsl:choose>
</xsl:variable>
+ <xsl:variable name="oclc_number">
+ <xsl:choose>
+ <xsl:when test='contains(tmarc:c001,"ocn") or
+ contains(tmarc:c001,"ocm") or
+ contains(tmarc:c001,"OCoLC") '>
+ <xsl:value-of select="tmarc:c001"/>
+ </xsl:when>
+ <xsl:when test='contains(tmarc:d035/tmarc:sa,"ocn") or
+ contains(tmarc:d035/tmarc:sa,"ocm") or
+ contains(tmarc:d035/tmarc:sa,"OCoLC") '>
+ <xsl:value-of select="tmarc:d035/tmarc:sa"/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+
<pz:record>
<!--
<xsl:attribute name="mergekey">
<pz:record>
<!--
<xsl:attribute name="mergekey">
@@
-136,6
+151,10
@@
</pz:metadata>
</xsl:for-each>
</pz:metadata>
</xsl:for-each>
+ <pz:metadata type="oclc-number">
+ <xsl:value-of select="$oclc_number" />
+ </pz:metadata>
+
<xsl:for-each select="tmarc:d010">
<pz:metadata type="lccn">
<xsl:value-of select="tmarc:sa" />
<xsl:for-each select="tmarc:d010">
<pz:metadata type="lccn">
<xsl:value-of select="tmarc:sa" />