changed XQuery to select only community and ri with status not hidden

This commit is contained in:
Miriam Baglioni 2020-08-03 18:29:30 +02:00
parent b34177d8ef
commit 53656600ad
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class QueryInformationSystem {
+ " let $communities := $x//CONFIGURATION/context/category[./@id=concat($x//CONFIGURATION/context/@id,'::zenodocommunities')]/concept "
+
"let $zenodo := $x//param[./@name='zenodoCommunity']/text() "
+ " where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] "
+ " where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] and $x//context/param[./@name = 'status']/text() != 'hidden' "
+ " return "
+ " <community> "
+ " { $x//CONFIGURATION/context/@id} "