Sha256: 703e15f194109f5443f2303c0bbf4514b048b900026b1aada4227173af4e15f6

Contents?: true

Size: 458 Bytes

Versions: 10

Compression:

Stored size: 458 Bytes

Contents

module Blacklight
  class Configuration::FacetField < Blacklight::Configuration::SolrField
    def normalize! blacklight_config = nil
      self.query.stringify_keys! if self.query

      if self.single and self.tag.blank? and self.ex.blank?
        self.tag = "#{self.field}_single"
        self.ex = "#{self.field}_single"
      end

      self.collapse = true if self.collapse.nil?
      self.show = true if self.show.nil?

      super
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
blacklight-5.3.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.0.3 lib/blacklight/configuration/facet_field.rb
blacklight-5.1.1 lib/blacklight/configuration/facet_field.rb
blacklight-5.2.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.1.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.0.2 lib/blacklight/configuration/facet_field.rb
blacklight-5.0.1 lib/blacklight/configuration/facet_field.rb
blacklight-5.0.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.0.0.pre4 lib/blacklight/configuration/facet_field.rb
blacklight-5.0.0.pre3 lib/blacklight/configuration/facet_field.rb