app/controllers/hyrax/stats_controller.rb in hyrax-3.2.0 vs app/controllers/hyrax/stats_controller.rb in hyrax-3.3.0

- old
+ new

@@ -5,10 +5,12 @@ include Hyrax::Breadcrumbs before_action :build_breadcrumbs, only: [:work, :file] def work - @stats = Hyrax::WorkUsage.new(params[:id]) + @document = ::SolrDocument.find(params[:id]) + @pageviews = Hyrax::Analytics.daily_events_for_id(@document.id, 'work-view') + @downloads = Hyrax::Analytics.daily_events_for_id(@document.id, 'file-set-in-work-download') end def file @stats = Hyrax::FileUsage.new(params[:id]) end