DSpace 7 community and collection statistics are inaccurate #9275
Labels
bug
component: statistics
Related to Statistics (Solr or Google Analytics)
needs triage
New issue needs triage and/or scheduling
Describe the bug
Statistics displayed on the "Statistics" page of a community or collection are inaccurate (in my opinion). They seem to only reflect views of the community or collection page itself, rather than counting child communities, collections, items, and bitstreams.
To Reproduce
Steps to reproduce the behavior:
id:d09e6100-df60-4280-9ff3-f3fea5ea4e6b
. These are views of the community/collection page itself.owningComm:d09e6100-df60-4280-9ff3-f3fea5ea4e6b
(orowningColl
for a collection).Expected behavior
The number of "views" of a community or collection should take into account all children of the community or collection, in addition to the community page itself. We already have the
owningComm
andowningColl
fields in Solr managed by DSpace. We can use those to show more accurate statistics than we are currently doing, without much work.For example, our DSpace repository has years of Solr statistics and currently shows this for the simple
id
query of a large community:But really there are many, many more if we include the child communities, collections, item pages, and bitstreams via the
owningComm
:In addition to this, at our institution we disaggregate statistics into "views" and "downloads" using the
type
field (see DSpace Constants¹):bundleName:ORIGINAL
So in Solr I can see this community had:
You can see how we count views and downloads in our standalone dspace-statistics-api indexer.
Related work
¹ See
dspace-api/src/main/java/org/dspace/core/Constants.java
The text was updated successfully, but these errors were encountered: