Sha256: ac0b07be70b547e76e3fd9c452211c744c5958e2ca067e3f9ace6c27b8cba351

Contents?: true

Size: 467 Bytes

Versions: 25

Compression:

Stored size: 467 Bytes

Contents

module Blacklight
  class Configuration::SearchField < Blacklight::Configuration::Field
    def normalize! blacklight_config = nil
      self.if = self.include_in_simple_select if self.if.nil?

      super
      self.qt ||= blacklight_config.default_solr_params[:qt] if blacklight_config && blacklight_config.default_solr_params

      self
    end

    def validate!
      raise ArgumentError.new("Must supply a search field key") if self.key.nil?
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
blacklight-5.19.2 lib/blacklight/configuration/search_field.rb
blacklight-5.19.1 lib/blacklight/configuration/search_field.rb
blacklight-5.19.0 lib/blacklight/configuration/search_field.rb
blacklight-5.18.0 lib/blacklight/configuration/search_field.rb
blacklight-5.17.2 lib/blacklight/configuration/search_field.rb
blacklight-6.0.0.pre5 lib/blacklight/configuration/search_field.rb
blacklight-5.17.1 lib/blacklight/configuration/search_field.rb
blacklight-5.17.0 lib/blacklight/configuration/search_field.rb
blacklight-6.0.0.pre4 lib/blacklight/configuration/search_field.rb
blacklight-5.16.4 lib/blacklight/configuration/search_field.rb
blacklight-6.0.0.pre3 lib/blacklight/configuration/search_field.rb
blacklight-5.16.3 lib/blacklight/configuration/search_field.rb
blacklight-5.16.2 lib/blacklight/configuration/search_field.rb
blacklight-5.16.1 lib/blacklight/configuration/search_field.rb
blacklight-6.0.0.pre2 lib/blacklight/configuration/search_field.rb
blacklight-6.0.0.pre1 app/models/blacklight/configuration/search_field.rb
blacklight-5.16.0 app/models/blacklight/configuration/search_field.rb
blacklight-5.15.0 lib/blacklight/configuration/search_field.rb
blacklight-5.14.0 lib/blacklight/configuration/search_field.rb
blacklight-5.13.1 lib/blacklight/configuration/search_field.rb