changed the XQUERY to mirror the change in the code

This commit is contained in:
Miriam Baglioni 2020-08-11 16:00:33 +02:00
parent 37ad2f28e9
commit 7e81a17068
1 changed files with 9 additions and 7 deletions

View File

@ -21,13 +21,15 @@ import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
public class QueryInformationSystemTest {
private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') "
+
" where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] " +
" return " +
"<community> " +
"{$x//CONFIGURATION/context/@id}" +
"{$x//CONFIGURATION/context/@label}" +
"</community>";
+
" where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] " +
" and ($x//context/param[./@name = 'status']/text() = 'manager' or $x//context/param[./@name = 'status']/text() = 'all') "
+
" return " +
"<community> " +
"{$x//CONFIGURATION/context/@id}" +
"{$x//CONFIGURATION/context/@label}" +
"</community>";
List<String> communityMap = Arrays
.asList(