Sha256: 98e31daccd1e157739c372d9363ca00bcfe911630efdb3cbef1b4944ee6defad
Contents?: true
Size: 675 Bytes
Versions: 18
Compression:
Stored size: 675 Bytes
Contents
module Blacklight class Configuration::SearchField < Blacklight::Configuration::SolrField def normalize! blacklight_config = nil # Some normalization, calculate display_label from key, # and make sure we have a qt from defaults. self.key ||= self.field self.field ||= self.key self.label ||= self.key.try(:titlecase) self.qt ||= blacklight_config.default_solr_params[:qt] if blacklight_config && blacklight_config.default_solr_params self.if ||= self.include_in_simple_select super end def validate! raise ArgumentError.new("Must supply a search field key") if self.key.nil? end end end
Version data entries
18 entries across 18 versions & 1 rubygems