Class: Spotlight::DashboardsController

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

Instance Method Summary collapse

Methods included from Base

#autocomplete_json_response, #blacklight_config

Methods included from Config

#exhibit_specific_blacklight_config

Methods included from Controller

#blacklight_config, #current_exhibit, #exhibit_search_action_url, #exhibit_search_facet_url, #search_action_url, #search_facet_url

Instance Method Details

#_prefixesObject



19
20
21
# File 'app/controllers/spotlight/dashboards_controller.rb', line 19

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

#showObject



7
8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/spotlight/dashboards_controller.rb', line 7

def show
  authorize! :curate, @exhibit

  @pages = @exhibit.pages.recent.limit(5)
  @solr_documents = load_recent_solr_documents 5
  add_breadcrumb t(:'spotlight.exhibits.breadcrumb', title: @exhibit.title), @exhibit
  add_breadcrumb t(:'spotlight.curation.sidebar.dashboard'), exhibit_dashboard_path(@exhibit)

  self.blacklight_config.view.reject! { |k,v| true }
  self.blacklight_config.view.admin_table.partials = ['index_compact']
end