Module: Arclight::Catalog

Extended by:
ActiveSupport::Concern
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)


21
22
23
# File 'app/models/concerns/arclight/catalog.rb', line 21

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

#store_preferred_viewObject

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



28
29
30
31
32
# File 'app/models/concerns/arclight/catalog.rb', line 28

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

  super
end