Ignore:
Timestamp:
13/11/08 15:30:13 (11 years ago)
Author:
cbyrom
Message:

Upgrade the various 'list' xqueries - to nest all results in a single
root element - so that only one document need be retrieved to get all
results + adjust ndgDirectory to cope with processing the new results +
fix the various namespaces mentioned in the codebase to map to the
current atom/moles ones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/xquery/molesList.xq

    r3841 r4427  
    22declare default element namespace 'http://ndg.nerc.ac.uk/moles'; 
    33declare variable $targetCollection as xs:string := 'TargetCollection'; 
     4<docs> 
     5{ 
    46for $DE in collection($targetCollection)/dgMetadata/dgMetadataRecord[exists(dgDataEntity)] 
    57let $f:=util:document-name($DE) 
    68return 
    79<dgMetadataRecord> 
    8 (: Yes, there is redundant info, we'll sort that out later, rapid bug fix 
    9 mode :) 
    1010{$DE/dgMetadataID/repositoryIdentifier}{$DE/dgMetadataID/localIdentifier}  
    1111<repositoryID>{string($DE/dgMetadataID/localIdentifier)}</repositoryID> 
     
    1313<created>{xmldb:created(util:collection-name($DE),$f)}</created> 
    1414</dgMetadataRecord> 
     15} 
     16</docs> 
Note: See TracChangeset for help on using the changeset viewer.