Modular Usage Statistics

From DSpace Wiki

Jump to: navigation, search

The diversity of statistical patches to DSpace suggests that we should take a modular approach. For one thing, in this way many ideas can be snapped into sites and tried out. For another, the substantial amount of work to be done can be decoupled from ongoing DSpace development as much as possible, to relieve the add-on developer of much of the burden of tracking changes to the base code.

I envision three layers:

  1. detecting events such as community and collection views and bitstream downloads;
  2. persisting relevant information about such events;
  3. presenting abstracts of the event data.

The interface between detection and persistence should be through a plugin loaded via the PluginManager. Interfacing persistence with presentation will depend on the nature of the particular persistence mechanism and the needs of the particular presentation layer.

As a proof-of-concept and jumping-off point for discussion, I've built a patch Image:Usage-Event-Instrumentation.patch against DSpace 1.4.2 release. It also includes a test implementation of the persistence layer which merely writes event records to a log file.

Personal tools