Changeset 5757 for metadata


Ignore:
Timestamp:
10/29/14 17:51:44 (10 years ago)
Author:
Menzo Windhouwer
Message:

M toolkit/xslt/olac2cmdi.xsl

NOTE: now in sync with the XSLT used by the OAI harvester

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/branches/cmdi-1.1/toolkit/xslt/olac2cmdi.xsl

    r4320 r5757  
    5151                </MdSelfLink>
    5252                <MdProfile>clarin.eu:cr1:p_1288172614026</MdProfile>
    53                 <xsl:variable name="oai_id">
    54                     <xsl:value-of select="tokenize(/defns:OAI-PMH/defns:GetRecord[1]/defns:record[1]/defns:header[1]/defns:identifier[1], ':')[2]"/>
    55                 </xsl:variable>
    5653                <MdCollectionDisplayName>
    5754                    <xsl:value-of select="$provider_name"/>
     
    208205    <xsl:template match="dc:identifier" mode="preprocess">
    209206 
    210         <xsl:if test="contains(., 'http://') or contains(., 'urn:nbn') or contains(., 'hdl:')">
     207      <xsl:if test="contains(., 'http://') or contains(., 'https://') or contains(., 'urn:nbn') or contains(., 'hdl:')">
    211208        <ResourceProxy>
    212209            <xsl:attribute name="id"><xsl:value-of select="generate-id()"/></xsl:attribute>
     
    214211            <ResourceRef><xsl:value-of select="."/></ResourceRef>
    215212        </ResourceProxy>
    216         </xsl:if>
     213      </xsl:if>
    217214     
    218215    </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.