class Blacklight::Configuration::SessionTrackingConfig

Public Class Methods

new(property_hash = {}) click to toggle source

@!attribute storage

@return [String, FalseClass] 'server': use server-side tracking; 'client': delegate search tracking and prev/next navigation to client

@!attribute applied_params_component

@return [Class] component class used to render a facet group

@!attribute item_pagination_component

@return [Class] component class used to render the constraints
Calls superclass method
# File lib/blacklight/configuration/session_tracking_config.rb, line 12
def initialize(property_hash = {})
  super({ storage: 'server' }.merge(property_hash))
end

Public Instance Methods

applied_params_component() click to toggle source
Calls superclass method
# File lib/blacklight/configuration/session_tracking_config.rb, line 16
def applied_params_component
  super || default_applied_params_component(storage)
end
default_applied_params_component(storage) click to toggle source
# File lib/blacklight/configuration/session_tracking_config.rb, line 28
def default_applied_params_component(storage)
  return Blacklight::SearchContext::ServerAppliedParamsComponent if storage == 'server'

  nil
end
default_item_pagination_component(storage) click to toggle source
# File lib/blacklight/configuration/session_tracking_config.rb, line 34
def default_item_pagination_component(storage)
  return Blacklight::SearchContext::ServerItemPaginationComponent if storage == 'server'

  nil
end
default_url_helper(_storage) click to toggle source

extension point for alternative storage types

# File lib/blacklight/configuration/session_tracking_config.rb, line 41
def default_url_helper(_storage)
  nil
end
item_pagination_component() click to toggle source
Calls superclass method
# File lib/blacklight/configuration/session_tracking_config.rb, line 20
def item_pagination_component
  super || default_item_pagination_component(storage)
end
url_helper() click to toggle source
Calls superclass method
# File lib/blacklight/configuration/session_tracking_config.rb, line 24
def url_helper
  super || default_url_helper(storage)
end