Adds 999$a, c or d as 'localid'
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 5 Oct 2010 13:17:29 +0000 (06:17 -0700)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 5 Oct 2010 13:17:29 +0000 (06:17 -0700)
etc/tmarc.xsl

index 795b4d0..08eb335 100644 (file)
         </pz:metadata>
       </xsl:for-each>
 
+      <xsl:for-each select="tmarc:d999">
+        <pz:metadata type="localid">
+          <xsl:choose>
+            <xsl:when test="tmarc:sa">
+              <xsl:value-of select="tmarc:sa"/>
+            </xsl:when>
+            <xsl:when test="tmarc:sc">
+              <xsl:value-of select="tmarc:sc"/>
+            </xsl:when> 
+            <xsl:otherwise>
+              <xsl:value-of select="tmarc:sd"/>
+            </xsl:otherwise>
+          </xsl:choose>
+        </pz:metadata>
+      </xsl:for-each>
+
+
       <!-- passthrough id data -->
       <xsl:for-each select="pz:metadata">
         <xsl:copy-of select="." />