Changeset 1251 for TI07-MOLES


Ignore:
Timestamp:
27/06/06 17:24:55 (13 years ago)
Author:
selatham
Message:

half created a claddier version of Stub-B to Dublin Core XSL

Location:
TI07-MOLES/branches/claddier/DublinCore
Files:
2 added
1 moved

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/branches/claddier/DublinCore/XSLT/ndg_to_DC.xsl

    r659 r1251  
    55      
    66     Author - Sue Latham 01/06/2005 
     7     Updated BUT NOT COMPLETE 27/06/2006 - Version for claddier project with dgDataGranule URI included in IDs. 
     8 
    79     Copyright (C) 2005 CCLRC & NERC( Natural Environment Research Council ). 
    810    This software may be distributed under the terms of the 
     
    5759                        </xsl:for-each> 
    5860                         
    59                         <!-- Pick out only hierarchy's of the GCMD terms for the subjecty. Only created if a top level GCMD term appears first. --> 
     61                        <!-- Pick out only hierarchy's of the GCMD terms for the subject. Only created if a top level GCMD term appears first. --> 
    6062                        <xsl:for-each select="dgDataSummary/dgParameterSummary/dgStdParameterMeasured"> 
    6163                                        <xsl:if test="(./ListLevel = 0 ) and (./dgValidTermID/ParentListID = 'http://gcmd.gsfc.nasa.gov/Resources/valids/gcmd_parameters.html' )"> 
     
    127129                                </dc:date> 
    128130                        </xsl:if> 
     131 
     132                        <xsl:for-each select="//dgMetadataRecord/dgDataEntity/dgDataGranule"> 
     133                                <xsl:variable name="DataGranuleURLs" select="concat($DataGranuleURLs, ', ' ./instance/URI )"></xsl:variable> 
     134                        </xsl:for-each> 
     135 
    129136                        <dc:identifier> 
    130                                 <xsl:value-of select="$DataEntityID"/> 
    131                         </dc:identifier>         
     137                                <xsl:value-of select="concat($DataEntityID, ',' $DataGranuleURLs"/> 
     138                        </dc:identifier> 
    132139        </xsl:template> 
    133140</xsl:stylesheet> 
Note: See TracChangeset for help on using the changeset viewer.