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

Refactoring intermediate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/ISO19115-19139/XQuery/NDG-ISO19115-139.xquery

    r1690 r2171  
     1import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery'; 
     2import module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/utilities' at 'xmldb:exist:///db/xqueryLib/Utilities/utility_xquery_lib.xquery'; 
     3import module namespace stubblib='http://ndg.nerc.ac.uk/xquery/lib/stubb' at 'xmldb:exist:///db/xqueryLib/StubB/stubb_xquery_lib.xquery'; 
     4 
     5declare variable $targetCollection as xs:string {'TargetCollection'}; 
     6declare variable $repositoryIdentifier as xs:string {'RepositoryID'}; 
     7declare variable $localIdentifier as xs:string {'LocalID'}; 
     8 
    19declare default element namespace 'http://www.isotc211.org/2005/gmd'; 
    210declare namespace moles='http://ndg.nerc.ac.uk/moles'; 
     
    816declare namespace f='http://ndg.nerc.ac.uk/moles/localfunctions'; 
    917 
    10 for $DE in collection('/db/ndg_B_metadata')/moles:dgMetadata/moles:dgMetadataRecord[ 
     18for $DE in collection($targetCollection)/moles:dgMetadata/moles:dgMetadataRecord[ 
    1119        exists(moles:dgDataEntity)  
    1220        and moles:dgMetadataID/moles:schemeIdentifier='NDG-B0'  
     
    3442        for $DataCuratorRole in $DE/moles:dgDataEntity/moles:dgDataRoles/moles:dgDataCurator/moles:dgRoleHolder[not(exists(moles:endDate)) or moles:endDate=''] 
    3543        return  
    36                 for $DataCuratorRoleHolder in collection('/db/ndg_B_metadata')/moles:dgMetadata/(moles:dgPerson | moles:dgOrganisation)[ 
     44                for $DataCuratorRoleHolder in collection($targetCollection)/moles:dgMetadata/(moles:dgPerson | moles:dgOrganisation)[ 
    3745                        moles:dgMetadataID/moles:schemeIdentifier='NDG-B0'  
    3846                        and moles:dgMetadataID/moles:repositoryIdentifier=$DataCuratorRole/(moles:dgPersonID | moles:dgOrganisationID)/moles:repositoryIdentifier 
Note: See TracChangeset for help on using the changeset viewer.