|
310 | 310 | </xsl:choose> |
311 | 311 | </xsl:template> |
312 | 312 |
|
| 313 | + <xsl:template match="marc:datafield[@tag='024']" mode="work"> |
| 314 | + <xsl:if test='starts-with(marc:subfield[@code="a"], "http://worldcat.org/entity/work/")' > |
| 315 | + <xsl:choose> |
| 316 | + <xsl:when test="$serialization = 'rdfxml'"> |
| 317 | + <xsl:for-each select="marc:subfield[@code='a']"> |
| 318 | + <bf:identifiedBy> |
| 319 | + <bf:Identifier> |
| 320 | + <xsl:attribute name="rdf:about"><xsl:value-of select="."/></xsl:attribute> |
| 321 | + </bf:Identifier> |
| 322 | + </bf:identifiedBy> |
| 323 | + </xsl:for-each> |
| 324 | + </xsl:when> |
| 325 | + </xsl:choose> |
| 326 | + </xsl:if> |
| 327 | + </xsl:template> |
| 328 | + |
313 | 329 | <xsl:template match="marc:datafield[@tag='033']" mode="work"> |
314 | 330 | <xsl:param name="serialization" select="'rdfxml'"/> |
315 | 331 | <xsl:variable name="vDate"> |
|
852 | 868 | </xsl:apply-templates> |
853 | 869 | </xsl:when> |
854 | 870 | <xsl:when test="@tag='024'"> |
855 | | - <xsl:variable name="vIdentifier"> |
856 | | - <xsl:choose> |
857 | | - <xsl:when test="@ind1 = '0'">bf:Isrc</xsl:when> |
858 | | - <xsl:when test="@ind1 = '1'">bf:Upc</xsl:when> |
859 | | - <xsl:when test="@ind1 = '2'">bf:Ismn</xsl:when> |
860 | | - <xsl:when test="@ind1 = '3'">bf:Ean</xsl:when> |
861 | | - <xsl:when test="@ind1 = '4'">bf:Sici</xsl:when> |
862 | | - <xsl:otherwise>bf:Identifier</xsl:otherwise> |
863 | | - </xsl:choose> |
864 | | - </xsl:variable> |
865 | | - <xsl:apply-templates select="." mode="instanceId"> |
866 | | - <xsl:with-param name="serialization" select="$serialization"/> |
867 | | - <xsl:with-param name="pIdentifier"><xsl:value-of select="$vIdentifier"/></xsl:with-param> |
868 | | - <xsl:with-param name="pInvalidLabel">invalid</xsl:with-param> |
869 | | - </xsl:apply-templates> |
| 871 | + <xsl:if test='not(starts-with(marc:subfield[@code="a"], "http://worldcat.org/entity/work/"))' > |
| 872 | + <xsl:variable name="vIdentifier"> |
| 873 | + <xsl:choose> |
| 874 | + <xsl:when test="@ind1 = '0'">bf:Isrc</xsl:when> |
| 875 | + <xsl:when test="@ind1 = '1'">bf:Upc</xsl:when> |
| 876 | + <xsl:when test="@ind1 = '2'">bf:Ismn</xsl:when> |
| 877 | + <xsl:when test="@ind1 = '3'">bf:Ean</xsl:when> |
| 878 | + <xsl:when test="@ind1 = '4'">bf:Sici</xsl:when> |
| 879 | + <xsl:otherwise>bf:Identifier</xsl:otherwise> |
| 880 | + </xsl:choose> |
| 881 | + </xsl:variable> |
| 882 | + <xsl:apply-templates select="." mode="instanceId"> |
| 883 | + <xsl:with-param name="serialization" select="$serialization"/> |
| 884 | + <xsl:with-param name="pIdentifier"><xsl:value-of select="$vIdentifier"/></xsl:with-param> |
| 885 | + <xsl:with-param name="pInvalidLabel">invalid</xsl:with-param> |
| 886 | + </xsl:apply-templates> |
| 887 | + </xsl:if> |
870 | 888 | </xsl:when> |
871 | 889 | <xsl:when test="@tag='025'"> |
872 | 890 | <xsl:apply-templates select="." mode="instanceId"> |
|
0 commit comments