Sha256: c416056fc1d5b3f20f2d66fee7338d0dd3991215d495d2899f1ceb29c9c47d7e

Contents?: true

Size: 627 Bytes

Versions: 3

Compression:

Stored size: 627 Bytes

Contents

class CommonwealthSearchBuilder < Blacklight::SearchBuilder

  include Blacklight::Solr::SearchBuilderBehavior
  include BlacklightAdvancedSearch::AdvancedSearchBuilder
  include BlacklightMaps::MapsSearchBuilderBehavior
  include CommonwealthVlrEngine::CommonwealthSearchBuilderBehavior

  self.default_processor_chain += [
      :exclude_unwanted_models, :exclude_unpublished_items, :exclude_institutions,
      :exclude_volumes, :add_advanced_parse_q_to_solr, :add_advanced_search_to_solr
  ]

  unless I18n.t('blacklight.home.browse.institutions.enabled')
    self.default_processor_chain += [:institution_limit]
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.4 lib/generators/commonwealth_vlr_engine/templates/commonwealth_search_builder.rb
commonwealth-vlr-engine-0.0.3 lib/generators/commonwealth_vlr_engine/templates/commonwealth_search_builder.rb
commonwealth-vlr-engine-0.0.2 lib/generators/commonwealth_vlr_engine/templates/commonwealth_search_builder.rb