Changeset 3164 for exist/trunk


Ignore:
Timestamp:
18/12/07 16:30:35 (12 years ago)
Author:
lawrence
Message:

Support for listing MDIP documents

Location:
exist/trunk/xquery
Files:
1 added
1 edited

Legend:

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

    r3151 r3164  
    22declare default element namespace 'http://ndg.nerc.ac.uk/moles'; 
    33for $DE in collection('TargetCollection')/dgMetadata/dgMetadataRecord[exists(dgDataEntity)] 
     4let $f:=util:document-name($DE) 
    45return 
    56<dgMetadataRecord> 
    6 {$DE/dgMetadataID/repositoryIdentifier}{$DE/dgMetadataID/localIdentifier}<fileName>{util:document-name($DE)}</fileName> 
     7{$DE/dgMetadataID/repositoryIdentifier}{$DE/dgMetadataID/localIdentifier} 
     8<fileName>{$f}</fileName> 
     9<created>{xmldb:created(util:collection-name($DE),$f)}</created> 
    710</dgMetadataRecord> 
Note: See TracChangeset for help on using the changeset viewer.