dnet50/modules/dnet-core-services/trunk/src/main/resources/eu/dnetlib/enabling/datasources/templates/findRepos.xquery.st @ 41842
1 |
for \$x in collection('/db/DRIVER/RepositoryServiceResources/RepositoryServiceResourceType') |
---|---|
2 |
$if(conds)$ |
3 |
where $conds.keys:{xpath| \$x$xpath$ = '$conds.(xpath)$'}; separator=" and "$ |
4 |
$endif$ |
5 |
return \$x |
6 |
,
|
7 |
for \$x in collection('/db/DRIVER/PendingRepositoryResources/RepositoryServiceResourceType') |
8 |
$if(conds)$ |
9 |
where $conds.keys:{xpath| \$x$xpath$ = '$conds.(xpath)$'}; separator=" and "$ |
10 |
$endif$ |
11 |
return \$x |