Sha256: 203b0f35c1c9a0ba675c3fdfaa1d7d9b102a6b278cb5c0a7e398bb9217f1664b

Contents?: true

Size: 483 Bytes

Versions: 20

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true
module Blacklight
  class Configuration::SearchField < Blacklight::Configuration::Field
    def normalize! blacklight_config = nil
      self.if = 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, "Must supply a search field key" if key.nil?
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
blacklight-7.11.1 lib/blacklight/configuration/search_field.rb
blacklight-7.10.0 lib/blacklight/configuration/search_field.rb
blacklight-7.9.0 lib/blacklight/configuration/search_field.rb
blacklight-7.8.1 lib/blacklight/configuration/search_field.rb
blacklight-7.8.0 lib/blacklight/configuration/search_field.rb
blacklight-7.7.0 lib/blacklight/configuration/search_field.rb
blacklight-7.6.0 lib/blacklight/configuration/search_field.rb
blacklight-7.5.1 lib/blacklight/configuration/search_field.rb
blacklight-7.5.0 lib/blacklight/configuration/search_field.rb
blacklight-7.4.2 lib/blacklight/configuration/search_field.rb
blacklight-7.4.1 lib/blacklight/configuration/search_field.rb
blacklight-7.4.0 lib/blacklight/configuration/search_field.rb
blacklight-7.3.0 lib/blacklight/configuration/search_field.rb
blacklight-7.2.0 lib/blacklight/configuration/search_field.rb
blacklight-7.1.0 lib/blacklight/configuration/search_field.rb
blacklight-7.1.0.alpha lib/blacklight/configuration/search_field.rb
blacklight-7.0.1 lib/blacklight/configuration/search_field.rb
blacklight-7.0.0 lib/blacklight/configuration/search_field.rb
blacklight-7.0.0.rc2 lib/blacklight/configuration/search_field.rb
blacklight-7.0.0.rc1 lib/blacklight/configuration/search_field.rb