Class: Spotlight::DashboardsController

Inherits:
ApplicationController show all
Includes:
Base, SearchHelper
Defined in:
app/controllers/spotlight/dashboards_controller.rb

Overview

Exhibit dashboard controller

Instance Method Summary collapse

Methods included from SearchHelper

#search_service, #search_service_context

Methods included from Base

#autocomplete_json_response, #autocomplete_json_response_for_document, #blacklight_config, #controller_tracking_method

Methods included from Config

#exhibit_specific_blacklight_config

Methods included from Concerns::ApplicationController

#enabled_in_spotlight_view_type_configuration?, #field_enabled?

Methods included from Controller

#blacklight_config, #current_exhibit, #current_masthead, #current_masthead=, #current_site, #default_url_options, #exhibit_masthead?, #exhibit_search_action_url, #exhibit_search_facet_path, #resource_masthead?, #search_action_url, #search_facet_path, #set_exhibit_locale_scope, #set_locale

Instance Method Details

#_prefixesObject



37
38
39
# File 'app/controllers/spotlight/dashboards_controller.rb', line 37

def _prefixes
  @_prefixes ||= super + ['spotlight/catalog', 'catalog']
end

#analyticsObject



31
32
33
34
35
# File 'app/controllers/spotlight/dashboards_controller.rb', line 31

def analytics
  authorize! :curate, @exhibit

  attach_analytics_breadcrumbs
end

#showObject



21
22
23
24
25
26
27
28
29
# File 'app/controllers/spotlight/dashboards_controller.rb', line 21

def show
  authorize! :curate, @exhibit

  @pages = @exhibit.pages.recent.limit(5)
  @solr_documents = load_recent_solr_documents 5
  @recent_reindexing = @exhibit.job_trackers.where.not(job_class: Spotlight::Engine.config.hidden_job_classes).recent

  attach_dashboard_breadcrumbs
end