Ignore:
Timestamp:
09/02/07 11:38:07 (13 years ago)
Author:
ko23
Message:

Refactoring intermediate

File:
1 edited

Legend:

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

    r2077 r2132  
    44declare namespace dc='http://purl.org/dc/elements/1.1/'; 
    55declare namespace oai_dc='http://www.openarchives.org/OAI/2.0/oai_dc'; 
    6 declare variable $targetCollection as xs:string {'/db/ndg_B_metadata'}; 
    7 declare variable $gcmd_science_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/gcmd_parameters.html'}; 
    8 declare variable $gcmd_project_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/projects.html'}; 
    9 declare variable $cf_standard_names as xs:string {'http://www.cgd.ucar.edu/cms/eaton/cf-metadata/standard_name.html'}; 
    10 declare variable $iso_topic_list as xs:string {'http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_TopicCategoryCode'}; 
     6declare variable $targetCollection as xs:string {'TargetCollection'}; 
     7declare variable $repositoryIdentifier as xs:string {'RepositoryID'}; 
     8declare variable $localIdentifier as xs:string {'LocalID'}; 
    119 
    12 for $DE in collection($targetCollection)/dgMetadata/dgMetadataRecord[dgDataEntity!='' and dgMetadataID/schemeIdentifier='NDG-B0' and dgMetadataID/repositoryIdentifier='badc.nerc.ac.uk' and dgMetadataID/localIdentifier='dataent1'] 
     10for $DE in collection($targetCollection)/dgMetadata/dgMetadataRecord[ 
     11exists('dgDataEntity')  
     12and dgMetadataID/schemeIdentifier='NDG-B0'  
     13and dgMetadataID/repositoryIdentifier=$repositoryIdentifier 
     14and dgMetadataID/localIdentifier=$localIdentifier] 
    1315return  
    1416element oai_dc:dc { 
Note: See TracChangeset for help on using the changeset viewer.