Ignore:
Timestamp:
27/03/07 15:37:39 (12 years ago)
Author:
ko23
Message:

Corrected problem with ISO19139 showing areas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/ndg_xqueries.py

    r2302 r2334  
    12981298 
    12991299ISO19139Query = ''' 
    1300 (: This will be updated to do namespaces properly when a few more are officially available... :) 
    13011300import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery'; 
    13021301import module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/utilities' at 'xmldb:exist:///db/xqueryLib/Utilities/utility_xquery_lib.xquery'; 
     
    13101309declare namespace xsi='http://www.w3.org/2001/XMLSchema-instance';  
    13111310 
    1312 declare variable $targetCollection as xs:string {'TargetCollection'}; 
     1311declare variable $targetCollection as xs:string {'/db/discovery'}; 
    13131312declare variable $repositoryIdentifier as xs:string {'RepositoryID'}; 
    1314 declare variable $localIdentifier as xs:string {'LocalID'}; 
     1313declare variable $localIdentifier as xs:string {'neodc.nerc.ac.uk:DIF:NEODC_NEXTMAP'}; 
     1314(: declare variable $targetCollection as xs:string {'TargetCollection'}; 
     1315declare variable $repositoryIdentifier as xs:string {'RepositoryID'}; 
     1316declare variable $localIdentifier as xs:string {'LocalID'}; :) 
    13151317 
    13161318for $DE in collection($targetCollection)/moles:dgMetadata/moles:dgMetadataRecord[ 
    13171319    exists(moles:dgDataEntity)  
    1318     and moles:dgMetadataID/moles:schemeIdentifier='NDG-B0'  
    1319     and moles:dgMetadataID/moles:repositoryIdentifier=$repositoryIdentifier 
     1320    and moles:dgMetadataID/moles:schemeIdentifier='NDG-B0' 
    13201321    and moles:dgMetadataID/moles:localIdentifier=$localIdentifier] 
    13211322return  
     
    14911492                                            element geographicIdentifier { 
    14921493                                                element gmd:RS_Identifier { 
    1493                                                     element gco:CharacterString {element code {data(dgArea/dgValidTerm)}}, 
    1494                                                     element gco:CharacterString {element codeSpace {data(dgArea/dgValidTermID/ParentListID)}} 
     1494                                                element gco:CharacterString {element code {data($geoArea/moles:dgValidTerm)}}, 
     1495                                                element gco:CharacterString {element codeSpace {data($geoArea/moles:dgValidTermID/moles:ParentListID)}} 
    14951496                                                    } 
    14961497                                                } 
Note: See TracChangeset for help on using the changeset viewer.