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

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

Fixing the xqueries to support the "right" browse query
in the ndgUtils egg.

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