Ignore:
Timestamp:
15/02/07 11:54:01 (13 years ago)
Author:
ko23
Message:

Refactoring intermediate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/DublinCore/XQuery/NDG-DublinCore.xquery

    r2132 r2171  
    2929                        string($DE/(dgMetadataProvenance | DataProvenance)/RecordCreation/CreatedDate)  
    3030                }, 
    31         for $StructuredKeyword in distinct-values($DE/dgStructuredKeyword [dgValidTermID/ParentListID=$cf_standard_names or dgValidTermID/ParentListID=$gcmd_science_valids or dgValidTermID/ParentListID=$gcmd_project_valids or dgValidTermID/ParentListID=$iso_topic_list ]//dgValidTerm)  
    32                 order by $StructuredKeyword 
    33                 return  
     31        for $StructuredKeyword in distinct-values($DE/dgStructuredKeyword[ 
     32        voclib:spot-vocab($voclib:cf_standard_names, dgValidTermID/ParentListID)  
     33        or voclib:spot-vocab($voclib:gcmd_science_valids, dgValidTermID/ParentListID)  
     34        or voclib:spot-vocab($voclib:gcmd_project_valids, dgValidTermID/ParentListID)  
     35        or voclib:spot-vocab($voclib:iso_topic_list, dgValidTermID/ParentListID) 
     36        or voclib:spot-vocab($voclib:bodc_parameter_usage_vocab, dgValidTermID/ParentListID) 
     37        or voclib:spot-vocab($voclib:bodc_parameter_discovery_vocab, dgValidTermID/ParentListID) 
     38        ]/dgValidTerm)  
     39        order by $StructuredKeyword 
     40        return  
    3441                element dc:subject {string($StructuredKeyword)}, 
    3542         
    36         for $StructuredKeyword1 in distinct-values($DE/dgDataEntity/dgDataSummary/dgParameterSummary/dgStdParameterMeasured[dgValidTermID/ParentListID=$cf_standard_names or dgValidTermID/ParentListID=$gcmd_science_valids or dgValidTermID/ParentListID=$gcmd_project_valids]//dgValidTerm)  
     43        for $StructuredKeyword1 in distinct-values($DE/dgDataEntity/dgDataSummary/dgParameterSummary/dgStdParameterMeasured[ 
     44        voclib:spot-vocab($voclib:gcmd_science_valids, dgValidTermID/ParentListID)  
     45        or voclib:spot-vocab($voclib:gcmd_project_valids, dgValidTermID/ParentListID) 
     46        or voclib:spot-vocab($voclib:bodc_parameter_usage_vocab, dgValidTermID/ParentListID) 
     47        or voclib:spot-vocab($voclib:bodc_parameter_discovery_vocab, dgValidTermID/ParentListID) 
     48        ]/dgValidTerm)  
    3749                order by $StructuredKeyword1 
    3850        return  
Note: See TracChangeset for help on using the changeset viewer.