Hi Donald,
I'll look into this and make any necessary fixes.
Thanks, Tracy
Tracy Meehleib
Network Development and MARC Standards Office
Library of Congress
101 Independence Ave SE
Washington, DC 20540-4402
+1 202 707 0121 (voice)
+1 202 707 0115 (fax)
[log in to unmask]
-----Original Message-----
From: Metadata Object Description Schema List [mailto:[log in to unmask]] On Behalf Of Donald Moses
Sent: Wednesday, November 27, 2013 8:00 PM
To: [log in to unmask]
Subject: [MODS] MODS to DC xslt not transforming dates
Hello:
I've notice that when transforming from MODS to DC the <dateIssued> and <dateCreated> elements don't seem to be getting populated in the DC. Has anyone else encountered this issue ? I modified the style sheet at http://www.loc.gov/standards/mods/v3/MODS3-4_DC_XSLT1-0.xsl
and included this pair of templates to output dates represented in the /mods:originInfo and /mods:relatedItem/mods:originInfo xpaths.
<xsl:template match="mods:relatedItem[mods:originInfo]">
<dc:date>
<xsl:for-each select="mods:originInfo/mods:dateCreated |
mods:originInfo/mods:dateIssued |
mods:originInfo/mods:dateCaptured | mods:originInfo/mods:dateOther">
<xsl:if test="normalize-space(.)!= ''">
<xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
</dc:date>
</xsl:template>
<xsl:template match="mods:originInfo[mods:dateCreated | mods:dateIssued
| mods:dateCaptured | mods:dateOther]">
<dc:date>
<xsl:for-each select="mods:dateCreated | mods:dateIssued | mods:dateCaptured | mods:dateOther">
<xsl:if test="normalize-space(.)!= ''">
<xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
</dc:date>
</xsl:template>
If anyone would like to test/confirm this as well I'd appreciate it.
Thanks,
Donald
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Donald Moses, MLIS
Digital Initiatives and Systems Librarian Robertson Library University of Prince Edward Island
550 University Ave, Charlottetown PE C1A 4P3 Canada
|