Project

General

Profile

1 47423 michele.ar
distinct-values(for $s in collection('/db/DRIVER/ServiceResources/SearchServiceResourceType')//SERVICE_PROPERTIES[./PROPERTY[@key = 'infrastructure' and @value = 'public'] ]
2
let $format := $s/PROPERTY[@key = "mdformat"]/@value/string()
3
return(
4
for $x in collection('/db/DRIVER/IndexDSResources/IndexDSResourceType')
5
where
6
    $x//METADATA_FORMAT =$format and
7
            $x//METADATA_FORMAT_INTERPRETATION = 'openaire' and
8
            $x//METADATA_FORMAT_LAYOUT = 'index'
9
return
10
    concat($x//RESOURCE_IDENTIFIER/@value/string(), ' @@@ ', $format , ' @@@ ', $format , '-index-openaire')
11
))