Module: Arclight::Catalog

Included in:
CatalogController
Defined in:
app/models/concerns/arclight/catalog.rb

Overview

Arclight specific methods for the Catalog

Instance Method Summary collapse

Instance Method Details

#start_new_search_session?Boolean

Overriding the Blacklight method so that the hierarchy view does not start a new search session

Returns:

  • (Boolean)


10
11
12
# File 'app/models/concerns/arclight/catalog.rb', line 10

def start_new_search_session?
  !%w[hierarchy online_contents].include?(params[:view]) && super
end

#store_preferred_viewObject

Overriding the Blacklight method so that hierarchy does not get stored as the preferred view



17
18
19
20
# File 'app/models/concerns/arclight/catalog.rb', line 17

def store_preferred_view
  return if %w[hierarchy online_contents].include?(params[:view])
  super
end