source: exist/trunk/xquery/molesList.xq @ 3164

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/xquery/molesList.xq@3164
Revision 3164, 568 bytes checked in by lawrence, 12 years ago (diff)

Support for listing MDIP documents

RevLine 
[3151]1(: This moles listing query returns all the moles documents and their identifiers within a specific TargetCollection and a particular type (default is dgDataEntity) :)
[3118]2declare default element namespace 'http://ndg.nerc.ac.uk/moles';
3for $DE in collection('TargetCollection')/dgMetadata/dgMetadataRecord[exists(dgDataEntity)]
[3164]4let $f:=util:document-name($DE)
[3118]5return
6<dgMetadataRecord>
[3164]7{$DE/dgMetadataID/repositoryIdentifier}{$DE/dgMetadataID/localIdentifier}
8<fileName>{$f}</fileName>
9<created>{xmldb:created(util:collection-name($DE),$f)}</created>
[3118]10</dgMetadataRecord>
Note: See TracBrowser for help on using the repository browser.