A QUERY Datastream is an ITQL query that overrides the Islandora’s default ITQL query.
sites/all/modules/islandora-github/CollectionClass.inc
):$query_string = 'select $object $title $content from <#ri> where ($object <dc:title> $title and $object <fedora-model:hasModel> $content and ($object <fedora-rels-ext:isMemberOfCollection> <info:fedora/' . $pid . '> or $object <fedora-rels-ext:isMemberOf> <info:fedora/' . $pid . '>) and $object <fedora-model:state> <info:fedora/fedora-system:def/model#Active>) minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> order by $title';
select $object $title $content $description from <#ri> where ($object <dc:title> $title and $object <dc:description> $description and $object <fedora-model:hasModel> $content and ($object <fedora-rels-ext:isMemberOfCollection> %parent_collection% or $object <fedora-rels-ext:isMemberOf> %parent_collection%) and $object <fedora-model:state> <info:fedora/fedora-system:def/model#Active>) minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> order by $description
%parent_collection%
will be replaced by <info:fedora/' . $pid . '>
in php code.