Resource Management / Monitor wrong generic resource query Fixed
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/rmp-common-library@114051 82a268e6-3cf1-43bd-a215-b396298e98cfFeature/25384
parent
1337834b56
commit
01db133d00
@ -1,3 +1,4 @@
|
||||
for $resource in collection('/db/Profiles/<RES_TYPE ISdefault ='' />')//Resource
|
||||
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
|
||||
for $resource in collection('/db/Profiles/<RES_TYPE ISdefault ='' />')//Document/Data/ic:Profile/Resource
|
||||
where $resource/ID/string() eq '<RES_ID/>'
|
||||
return $resource
|
@ -1,4 +1,4 @@
|
||||
|
||||
let $entry0ValueAuth := collection("/db/Profiles")//Resource
|
||||
for $types in distinct-values($entry0ValueAuth//Resource/Type/text())
|
||||
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
|
||||
let $entry0ValueAuth := collection("/db/Profiles")//Document/Data/ic:Profile/Resource
|
||||
for $types in distinct-values($entry0ValueAuth/Type/text())
|
||||
return <type>{$types}</type>
|
@ -1,6 +1,7 @@
|
||||
for $profiles in collection('/db/Profiles/GenericResource')//Resource
|
||||
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
|
||||
for $profiles in collection('/db/Profiles/GenericResource')//Document/Data/ic:Profile/Resource
|
||||
let $scopes := string-join( $profiles/Scopes//Scope/text(), ';')
|
||||
let $subtype := $profiles//Resource/Profile/SecondaryType/text()
|
||||
let $subtype := $profiles/Profile/SecondaryType/text()
|
||||
<RES_SUBTYPE ISdefault =''/>
|
||||
return
|
||||
<RESOURCE/>
|
Loading…
Reference in New Issue