mjordan / islandora_repository_reports

A Drupal 8 module that provides a collection of graphical reports on various aspects of an Islandora repository.
GNU General Public License v2.0
2 stars 5 forks source link

Collection reports only include immediate members #24

Open mjordan opened 4 years ago

mjordan commented 4 years ago

The disk usage report only sums the size of media attached to nodes that are direct children of collections, and the node count by collection only counts immediate members. I don't know the best way of recursing down through subcollections and compound objects.

mjordan commented 4 years ago

One way to get all the members of a specific collection is to query Solr to see which nodes have the collection ID in their "itm_field_member_of" field. For example, the node this Solr field belongs to is a direct child the collection with node ID 2000, which itself is a direct member of the collection with node ID 100:

"itm_field_member_of":[100,2000]

Not sure how to implement this yet, but at least the required data is available to us.