Skip to content

Commit 70b2e3b

Browse files
committed
254 to editionStatement; fix test.
1 parent 61ebb60 commit 70b2e3b

2 files changed

Lines changed: 11 additions & 15 deletions

File tree

test/ConvSpec-250-270.xspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<x:expect label="250 creates an editionStatement property of the Instance" test="//bf:Instance[1]/bf:editionStatement = '3rd draft / edited by Paul Watson'"/>
1616
</x:scenario>
1717

18-
<x:scenario label="254 - MUSICAL PRESENTATION STATEMENT">
18+
<x:scenario label="254 - MUSICAL EDITION STATEMENT">
1919
<x:context href="data/ConvSpec-250-270/marc.xml"/>
20-
<x:expect label="254 creates a musicFormt/MusicFormat property of the Work" test="//bf:Work[1]/bf:musicFormat/bf:MusicFormat/rdfs:label = 'Full score'"/>
20+
<x:expect label="254 creates a editionStatement property of the Instance" test="//bf:Instance[1]/bf:editionStatement = 'Full score'"/>
2121
</x:scenario>
2222

2323
<x:scenario label="255 - CARTOGRAPHIC MATHEMATICAL DATA">

xsl/ConvSpec-250-270.xsl

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,19 @@
1111

1212
<!-- Conversion specs for 250-270 -->
1313

14-
<xsl:template match="marc:datafield[@tag='254' or (@tag='880' and substring(marc:subfield[@code='6'],1,3)='254')]" mode="work">
14+
<xsl:template match="marc:datafield[@tag='254' or (@tag='880' and substring(marc:subfield[@code='6'],1,3)='254')]" mode="instance">
1515
<xsl:param name="serialization" select="'rdfxml'"/>
1616
<xsl:variable name="vXmlLang"><xsl:apply-templates select="." mode="xmllang"/></xsl:variable>
1717
<xsl:choose>
1818
<xsl:when test="$serialization = 'rdfxml'">
19-
<bf:musicFormat>
20-
<bf:MusicFormat>
21-
<rdfs:label>
22-
<xsl:if test="$vXmlLang != ''">
23-
<xsl:attribute name="xml:lang"><xsl:value-of select="$vXmlLang"/></xsl:attribute>
24-
</xsl:if>
25-
<xsl:call-template name="tChopPunct">
26-
<xsl:with-param name="pString" select="marc:subfield[@code='a']"/>
27-
</xsl:call-template>
28-
</rdfs:label>
29-
</bf:MusicFormat>
30-
</bf:musicFormat>
19+
<bf:editionStatement>
20+
<xsl:if test="$vXmlLang != ''">
21+
<xsl:attribute name="xml:lang"><xsl:value-of select="$vXmlLang"/></xsl:attribute>
22+
</xsl:if>
23+
<xsl:call-template name="tChopPunct">
24+
<xsl:with-param name="pString" select="marc:subfield[@code='a']"/>
25+
</xsl:call-template>
26+
</bf:editionStatement>
3127
</xsl:when>
3228
</xsl:choose>
3329
</xsl:template>

0 commit comments

Comments
 (0)