</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: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:value-of select="tmarc:su" />
</pz:metadata>
<pz:metadata type="electronic-text">
- <xsl:if test="tmarc:sy">
- <xsl:value-of select="tmarc:sy/text()" />
- </xsl:if>
- <xsl:if test="tmarc:s3">
- <xsl:value-of select="tmarc:s3/text()" />
- </xsl:if>
+ <xsl:choose>
+ <xsl:when test="tmarc:sy">
+ <xsl:value-of select="tmarc:sy/text()" />
+ </xsl:when>
+ <xsl:when test="tmarc:s3">
+ <xsl:value-of select="tmarc:s3/text()" />
+ </xsl:when>
+ <xsl:otherwise>Get resource</xsl:otherwise>
+ </xsl:choose>
</pz:metadata>
<pz:metadata type="electronic-note">
<xsl:value-of select="tmarc:sz" />
</xsl:if>
<xsl:if test="tmarc:sg">
<pz:metadata type="journal-subpart">
- <xsl:value-of select="tmarc:sg"/> <xsl:value-of select="tmarc:sp"/>
+ <xsl:value-of select="tmarc:sg"/>
+ </pz:metadata>
+ </xsl:if>
+ <xsl:if test="tmarc:sp">
+ <pz:metadata type="journal-title-abbrev">
+ <xsl:value-of select="tmarc:sp"/>
</pz:metadata>
</xsl:if>
</xsl:for-each>