Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Problem Summary

Solr statistics records created before DSpace 6.x are still indexed with their legacy id.

...

Because this PR requires a SOLR schema change, we have deferred this fix until DSpace 7x.

Iterim Solution for DSpace 6x

DSpace 6.0 had some code in place that will search for either a UUID or a legacy id when displaying usage records. This logic was incomplete.

...

Unfortunately, when statistics records are retrieved by facet query separate counts are returned for records indexed by legacyId and records indexed by UUID.

Item Page

In the following record note that only one bitstream is present.Image RemovedImage Removed

Image Added

Usage Statistics

The resulting usage information lists the item twice and the bitstream twice.  A modification has been made to annotate the legacy statistics records.

Image Added

Item Statistics

Image Added

Bitstream Statistics

Image Added

A fix for this bug would require changes to the following code.  Much of this code is quite old and it appears to need significant refactoring.

...

I recommend that we create a new ticket to refactor this code in DSpace 7.x.  Perhaps the changes for DS-3602 should be merged in the meantime.