forked from D-Net/dnet-hadoop
changed XQuery to add also the main Zenodo community among the communities associated to the openaire community
This commit is contained in:
parent
8a3bc7c183
commit
af1d40351b
|
@ -17,6 +17,8 @@ public class QueryInformationSystem {
|
||||||
+ " let $datasources := $x//CONFIGURATION/context/category[./@id=concat($x//CONFIGURATION/context/@id,'::contentproviders')]/concept "
|
+ " let $datasources := $x//CONFIGURATION/context/category[./@id=concat($x//CONFIGURATION/context/@id,'::contentproviders')]/concept "
|
||||||
+ " let $organizations := $x//CONFIGURATION/context/category[./@id=concat($x//CONFIGURATION/context/@id,'::resultorganizations')]/concept "
|
+ " let $organizations := $x//CONFIGURATION/context/category[./@id=concat($x//CONFIGURATION/context/@id,'::resultorganizations')]/concept "
|
||||||
+ " let $communities := $x//CONFIGURATION/context/category[./@id=concat($x//CONFIGURATION/context/@id,'::zenodocommunities')]/concept "
|
+ " 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'] "
|
||||||
+ " return "
|
+ " return "
|
||||||
+ " <community> "
|
+ " <community> "
|
||||||
|
@ -38,7 +40,14 @@ public class QueryInformationSystem {
|
||||||
+ " {$d/param[./@name='selcriteria']/text()} "
|
+ " {$d/param[./@name='selcriteria']/text()} "
|
||||||
+ " </selcriteria> "
|
+ " </selcriteria> "
|
||||||
+ " </datasource> } "
|
+ " </datasource> } "
|
||||||
+ " </datasources> "
|
+ " </datasources> " +
|
||||||
|
"{for $zc in $zenodo " +
|
||||||
|
"return " +
|
||||||
|
"<zenodocommunity> " +
|
||||||
|
"<zenodoid> " +
|
||||||
|
"{$zc} " +
|
||||||
|
"</zenodoid> " +
|
||||||
|
"</zenodocommunity>}"
|
||||||
+ " <zenodocommunities> "
|
+ " <zenodocommunities> "
|
||||||
+ " {for $zc in $communities "
|
+ " {for $zc in $communities "
|
||||||
+ " return "
|
+ " return "
|
||||||
|
|
Loading…
Reference in New Issue