Sha256: c3586377118fa797cf0e55423fd5f7c200faecca9f7ca3f93cd798c0bfabdee9

Contents?: true

Size: 557 Bytes

Versions: 27

Compression:

Stored size: 557 Bytes

Contents

module Spotlight
  ##
  # Helper for browse views
  module BrowseHelper
    include ::BlacklightConfigurationHelper

    ##
    # Override Blacklight's #default_document_index_view_type helper to
    # use a different default view when presenting browse categories
    def default_document_index_view_type
      (default_browse_index_view_type if blacklight_config.view.key? default_browse_index_view_type) || super
    end

    private

    def default_browse_index_view_type
      Spotlight::Engine.config.default_browse_index_view_type
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
blacklight-spotlight-0.18.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.17.1 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.17.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.16.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.15.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.14.2 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.14.1 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.14.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.13.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.12.1 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.12.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.11.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.10.3 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.10.2 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.10.1 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.10.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.9.2 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.9.1 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.9.0 app/helpers/spotlight/browse_helper.rb
blacklight-spotlight-0.8.2 app/helpers/spotlight/browse_helper.rb