Sha256: 33ee9d353e4b5e5761f1e228c4f9f47447c41f75ffcd2b22efcb5aa243c65120

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 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?
      self.if = self.show if self.if.nil?

      super
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-5.9.4 lib/blacklight/configuration/facet_field.rb