Browse Source

Merge pull request #68 from ajstanley/6.x

Added filter for blank subtitle field
pull/69/head 6.x-11.3
Ben Woodhead 13 years ago
parent
commit
541830f225
  1. 3
      xsl/mods_to_dc.xsl

3
xsl/mods_to_dc.xsl

@ -39,6 +39,7 @@ Version 1.0 2007-05-04 Tracy Meehleib <tmee@loc.gov>
<srw_dc:dcCollection xsi:schemaLocation="info:srw/schema/1/dc-schema http://www.loc.gov/standards/sru/dc-schema.xsd"> <srw_dc:dcCollection xsi:schemaLocation="info:srw/schema/1/dc-schema http://www.loc.gov/standards/sru/dc-schema.xsd">
<xsl:apply-templates/> <xsl:apply-templates/>
<xsl:for-each select="mods:modsCollection/mods:mods"> <xsl:for-each select="mods:modsCollection/mods:mods">
:67
<srw_dc:dc xsi:schemaLocation="info:srw/schema/1/dc-schema http://www.loc.gov/standards/sru/dc-schema.xsd"> <srw_dc:dc xsi:schemaLocation="info:srw/schema/1/dc-schema http://www.loc.gov/standards/sru/dc-schema.xsd">
<xsl:apply-templates/> <xsl:apply-templates/>
@ -66,9 +67,11 @@ Version 1.0 2007-05-04 Tracy Meehleib <tmee@loc.gov>
</xsl:if> </xsl:if>
<xsl:value-of select="mods:title"/> <xsl:value-of select="mods:title"/>
<xsl:if test="mods:subTitle"> <xsl:if test="mods:subTitle">
<xsl:if test="text() [normalize-space(.) ]">
<xsl:text>: </xsl:text> <xsl:text>: </xsl:text>
<xsl:value-of select="mods:subTitle"/> <xsl:value-of select="mods:subTitle"/>
</xsl:if> </xsl:if>
</xsl:if>
<xsl:if test="mods:partNumber"> <xsl:if test="mods:partNumber">
<xsl:text>. </xsl:text> <xsl:text>. </xsl:text>

Loading…
Cancel
Save