Print

Print


Hi Tracy: 
thanks very much. Your fix provides a better result than the one I had
originally suggested. 
Great to have the XSLT updated. 
Donald

>>> On 12/9/2013 at 06:14 PM, in message
<[log in to unmask]>,
"Meehleib, Tracy" <[log in to unmask]> wrote:


Hi Donald,

The MODS 3.4 to DC 1.0 XSLT has been revised and uploaded
<http://www.loc.gov/standards/mods/v3/MODS3-4_DC_XSLT1-0.xsl>. Please
let me know if you have any additional issues.

Thank you,
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