source: exist/trunk/xquery/numsimSummary.xq @ 3118

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

Splitting out the (authoratative?) python xqueries into named
files within the new egg for exist (and other ndg utilities)

Line 
1(: This query provides a NumSim summary line for use in the browse search :)
2declare namespace m='http://ndg.nerc.ac.uk/moles';
3declare namespace n='http://ndg.nerc.ac.uk/numsim';
4for $dd in collection('/db/NumSim')//root()[. &= 'SEARCHSTRING']
5return <summary>
6<id>{$dd/n:simulationMetadata/*/n:id/m:repositoryIdentifier/text()}__{$dd/n:simulationMetadata/*/n:id/m:schemeIdentifier/text()}__{$dd/n:simulationMetadata/*/n:id/m:localIdentifier/text()}</id>
7<name>{$dd/n:simulationMetadata/*/n:name/text()}</name>
8<type>Numsim-{$dd/n:simulationMetadata/*[1]/name()}</type>
9</summary>
Note: See TracBrowser for help on using the repository browser.