Sha256: 446bc8c34a807398f24e07eddafa5766629ec470a7e4efda085564b7076a99f1
Contents?: true
Size: 679 Bytes
Versions: 11
Compression:
Stored size: 679 Bytes
Contents
module Europeana module Blacklight class SearchBuilder ## # Search builder methods for ranges module Ranges extend ActiveSupport::Concern included do default_processor_chain << :add_range_qf_to_api end def add_range_qf_to_api(api_parameters) return unless blacklight_params.key?(:range) && blacklight_params[:range].is_a?(Hash) blacklight_params[:range].each_pair do |range_field, range_values| api_parameters[:qf] ||= [] api_parameters[:qf] << "#{range_field}:[#{range_values[:begin]} TO #{range_values[:end]}]" end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems