Looks in more places for system-control-nr
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 26 May 2010 12:10:05 +0000 (05:10 -0700)
committerNiels 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

index 71178b7..8ef68ce 100644 (file)
 
       <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>