Skip to content

Commit 18cc676

Browse files
committed
Refine titles for secondary instances.
1 parent 64d01be commit 18cc676

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

xsl/ConvSpec-Preprocess0-Splitting.xsl

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,26 @@
494494
<xsl:when test="$df856sf3 != ''">
495495
<xsl:value-of select="$df856sf3"/>
496496
</xsl:when>
497+
<xsl:when test="$df300/marc:subfield[@code='3'] = 'all'">
498+
<xsl:variable name="vT">
499+
<xsl:call-template name="tChopPunct">
500+
<xsl:with-param name="pString" select="$df300/marc:subfield[@code='a'][1]"/>
501+
</xsl:call-template>
502+
</xsl:variable>
503+
<xsl:value-of select="concat('[', $vT, ']')"/>
504+
</xsl:when>
505+
<xsl:when test="$df300/marc:subfield[@code='a'][1] != ''">
506+
<xsl:variable name="vT">
507+
<xsl:call-template name="tChopPunct">
508+
<xsl:with-param name="pString" select="$df300/marc:subfield[@code='a'][1]"/>
509+
</xsl:call-template>
510+
</xsl:variable>
511+
<xsl:value-of select="concat('[', $vT, ']')"/>
512+
</xsl:when>
513+
<!-- If there is a 300 with a dollarA, why would we ever want the '3' to appear? -->
497514
<xsl:when test="$df300/marc:subfield[@code='3'] and $df300/marc:subfield[@code='3'] != 'all'">
498515
<xsl:value-of select="concat('[', $df300/marc:subfield[@code='3'][1], ']')"/>
499516
</xsl:when>
500-
<xsl:when test="$df300/marc:subfield[@code='3'] = 'all'">
501-
<xsl:value-of select="concat('[', $df300/marc:subfield[@code='a'][1], ']')"/>
502-
</xsl:when>
503517
<xsl:when test="$cf007 != ''">
504518
<xsl:variable name="cf007pos1" select="substring($cf007, 1, 1)"/>
505519
<xsl:variable name="cf007pos1and2" select="substring($cf007, 1, 2)"/>

0 commit comments

Comments
 (0)