Changeset 4320 for metadata


Ignore:
Timestamp:
01/22/14 14:15:37 (10 years ago)
Author:
larlam
Message:

Old provider definition files retired, DC/OLAC to CMDI mapping changed to match. Reflects MPI svn changeset 39764.

Location:
metadata/trunk/toolkit/xslt
Files:
2 deleted
1 edited

Legend:

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

    r1570 r4320  
    1414
    1515    <xsl:key name="iso-lookup" match="lang" use="sil"/>
    16     <xsl:key name="provider-lookup" match="prov" use="identifier"/>
    1716
    1817    <!--
     
    2322    <xsl:variable name="lang-top" select="document(concat($iso_xml_path,'sil_to_iso6393.xml'))/languages"/>
    2423
    25     <xsl:param name="providers_path"/>
    26     <xsl:variable name="id-top" select="document(concat($providers_path,'id_to_name.xml'))/providers"/>
     24    <!--
     25        Name of the provider the record was harvested from (or empty
     26        if name is not known).
     27      -->
     28    <xsl:param name="provider_name"/>
    2729   
    2830
     
    5355                </xsl:variable>
    5456                <MdCollectionDisplayName>
    55                     <xsl:apply-templates select="$id-top">
    56                         <xsl:with-param name="curr-label" select="$oai_id"/>
    57                     </xsl:apply-templates>
     57                    <xsl:value-of select="$provider_name"/>
    5858                </MdCollectionDisplayName>
    5959            </Header>
     
    204204        <xsl:value-of select="key('iso-lookup', $silcode)/iso"/>
    205205    </xsl:template>
    206    
    207     <xsl:template match="providers">
    208         <xsl:param name="curr-label"/>
    209         <xsl:variable name="id">
    210             <xsl:value-of select="$curr-label"/>
    211         </xsl:variable>
    212         <xsl:value-of select="key('provider-lookup', $id)/name"/>
    213     </xsl:template>
    214    
    215206
    216207
Note: See TracChangeset for help on using the changeset viewer.