====== Collection object for custom query and view ====== * Create Islandora standard collectionCModel object (''islandora:collectionCModel''). * Add custom query in datastream QUERY * Add custom view in datastream COLLECTION_VIEW * Link repository object to drupal menu item \\ \\ Example: **__List all collections of books (not collections of collections) and count total pages and books__** * DSID QUERY select $object $title $memberofd count(select $libri from <#ri> where $libri $object ) count(select $pagine from <#ri> where $pagine $member3 ) from <#ri> where walk($object and $member3 $object) and $member3 and $object $title and $object $memberof and $memberof $memberofd order by $memberofd $title * DSID QUERYCOLLECTION_VIEW Repository contains pages. **__List all parents of collections of books and count total pages and books__** * DSID QUERY select $memberof $title count(select $member3 from <#ri> where walk($object and $member3 $object) and $member3 and $object $memberof) count(select $pagine from <#ri> where $pagine $member3 ) from <#ri> where walk($object and $member3 $object) and $member3 and $object $memberof and $memberof $title order by $title * DSID QUERYCOLLECTION_VIEW
/fedora/repository/ /-/collection /fedora/repository/ /TN



[ books]
Repository contains pages.
**__List all parents and collections of books and count total pages, books and collections__** * DSID QUERY select $memberof $title $id1 $title1 count(select $member3 from <#ri> where walk($object and $member3 $object) and $member3 and $object $memberof) count(select $pagine from <#ri> where $pagine $member3 ) count(select $child from <#ri> where $child $memberof ) count(select $bchild from <#ri> where $bchild $member3 and $bchild ) count(select $object from <#ri> where walk($object and $member3 $object) and $member3 ) from <#ri> where walk($object and $member3 $object) and $member3 and $object $memberof and $memberof $title and $object $title1 and $object $id1 order by $title $title1 * DSID QUERYCOLLECTION_VIEW
/fedora/repository//-/collection /fedora/repository/ /TN

[ collection / book] [ collections / book] [ collection / books] [ collections / books]
Repository contains pages, books, collections.
/fedora/repository//-/collection
**__Repository statistics__** * DSID QUERY select $ordine $colle $titlecolle count( select $object from <#ri> where walk($object $colle and $libro $object) and $pagine $libro) count( select $libro from <#ri> where walk($object $colle and $libro $object) and $libro ) count( select $pagine from <#ri> where walk($object $colle and $libro $object) and $pagine $libro) from <#ri> where ((($colle minus $colle ) and $ordine '3') or ($colle and $ordine '2') or ($colle and $ordine '1')) and $colle $titlecolle order by $ordine $titlecolle * DSID QUERYCOLLECTION_VIEW
Pages Books Collections
(BESS)