Changeset 1067 for metadata


Ignore:
Timestamp:
01/13/11 14:02:45 (13 years ago)
Author:
dietuyt
Message:

Adds a ResourceProxy? for dc:identifiers that contain
the string "http://"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/xslt/olac2cmdi.xsl

    r986 r1067  
    4141            </Header>
    4242            <Resources>
    43                 <ResourceProxyList/>
     43                <ResourceProxyList>
     44                    <xsl:apply-templates select="//dc:identifier" mode="preprocess"/>
     45                </ResourceProxyList>
    4446                <JournalFileProxyList/>
    4547                <ResourceRelationList/>
     
    186188
    187189
     190    <xsl:template match="dc:identifier" mode="preprocess">
     191 
     192        <xsl:if test="contains(., 'http://')">
     193        <ResourceProxy>
     194            <xsl:attribute name="id"><xsl:value-of select="generate-id()"/></xsl:attribute>
     195            <ResourceType>Resource</ResourceType>
     196            <ResourceRef><xsl:value-of select="."/></ResourceRef>
     197        </ResourceProxy>
     198        </xsl:if>
     199     
     200    </xsl:template>
    188201
    189202
Note: See TracChangeset for help on using the changeset viewer.