Sha256: 31cafdda40d5b911534272928e03b44e82c0495345bd24b349d16a5dd1244851

Contents?: true

Size: 509 Bytes

Versions: 20

Compression:

Stored size: 509 Bytes

Contents

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

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

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

      self
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
blacklight-5.19.2 lib/blacklight/configuration/facet_field.rb
blacklight-5.19.1 lib/blacklight/configuration/facet_field.rb
blacklight-5.19.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.18.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.17.2 lib/blacklight/configuration/facet_field.rb
blacklight-5.17.1 lib/blacklight/configuration/facet_field.rb
blacklight-5.17.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.16.4 lib/blacklight/configuration/facet_field.rb
blacklight-5.16.3 lib/blacklight/configuration/facet_field.rb
blacklight-5.16.2 lib/blacklight/configuration/facet_field.rb
blacklight-5.16.1 lib/blacklight/configuration/facet_field.rb
blacklight-5.16.0 app/models/blacklight/configuration/facet_field.rb
blacklight-5.15.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.14.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.13.1 lib/blacklight/configuration/facet_field.rb
blacklight-5.13.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.11.3 lib/blacklight/configuration/facet_field.rb
blacklight-5.12.1 lib/blacklight/configuration/facet_field.rb
blacklight-5.12.0 lib/blacklight/configuration/facet_field.rb
blacklight-5.10.3 lib/blacklight/configuration/facet_field.rb