Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
model:ordbydesc [2012/04/27 11:25] 127.0.0.1 external edit |
model:ordbydesc [2012/04/27 22:22] giancarlo |
[[model:start|Model]] | |
====== Collection elements by <dc:description> ====== | ====== Collection elements by <dc:description> ====== |
| |
| |
<code php> | <code php> |
$query_string = 'select $object $title $content from <#ri> | $query_string = 'select $object $title $content from <#ri> |
where ($object <dc:title> $title | where ($object <dc:title> $title |
and $object <fedora-model:hasModel> $content | and $object <fedora-model:hasModel> $content |
and ($object <fedora-rels-ext:isMemberOfCollection> <info:fedora/' . $pid . '> | and ($object <fedora-rels-ext:isMemberOfCollection> <info:fedora/' . $pid . '> |
or $object <fedora-rels-ext:isMemberOf> <info:fedora/' . $pid . '>) | or $object <fedora-rels-ext:isMemberOf> <info:fedora/' . $pid . '>) |
and $object <fedora-model:state> <info:fedora/fedora-system:def/model#Active>) | and $object <fedora-model:state> <info:fedora/fedora-system:def/model#Active>) |
minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> | minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> |
order by $title'; | order by $title'; |
| |
</code> | </code> |