This is an old revision of the document!


Model

Collection elements by <dc:description>

A QUERY Datastream is an ITQL query that overrides the Islandora’s default ITQL query.

  • 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';
  • Add datastream “QUERY” to collection with new ITQL query:
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
  • NOTE: %parent_collection% will be replaced by <info:fedora/' . $pid . '> in php code.
 
 
model/ordbydesc.1335518716.txt.gz · Last modified: 2012/04/27 22:21 (external edit)

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki