Re-introduce the -1 on substring. Fix 1-based on same. Use $856$a as final option...
authorDennis Schafroth <dennis@indexdata.com>
Wed, 29 Feb 2012 11:17:24 +0000 (12:17 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 29 Feb 2012 11:17:24 +0000 (12:17 +0100)
etc/marc21.xsl

index dacf75a..e7bee0c 100644 (file)
                                </xsl:variable>
                                <xsl:choose>
                                        <xsl:when test="substring($value,string-length($value)) = ','">
-                                               <xsl:value-of select="substring($value,0,string-length($value))" />
+                                               <xsl:value-of select="substring($value,1,string-length($value)-1)" />
                                        </xsl:when>
                                        <xsl:otherwise>
                                                <xsl:value-of select="$value" />
          <xsl:value-of select="marc:subfield[@code='u']"/>
        </pz:metadata>
        <pz:metadata type="electronic-text">
-         <xsl:value-of select="marc:subfield[@code='y' or @code='3']"/>
+         <xsl:value-of select="marc:subfield[@code='y' or @code='3' or @code='a']"/>
        </pz:metadata>
        <pz:metadata type="electronic-note">
          <xsl:value-of select="marc:subfield[@code='z']"/>