LISTSERV mailing list manager LISTSERV 16.0

Help for MODS Archives


MODS Archives

MODS Archives


[email protected]


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

MODS Home

MODS Home

MODS  November 2013

MODS November 2013

Subject:

MODS to DC xslt not transforming dates

From:

Donald Moses <[log in to unmask]>

Reply-To:

Metadata Object Description Schema List <[log in to unmask]>

Date:

Wed, 27 Nov 2013 20:59:31 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (47 lines)

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

Top of Message | Previous Page | Permalink

Advanced Options


Options

Error during command authentication.

Error - unable to initiate communication with LISTSERV (errno=111). The server is probably not started.

Log In

Log In

Get Password

Get Password


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager