Sha256: eeb42d0e914e345407a6baaf1970ccf3220d562b29ae503ead48876453c58f32

Contents?: true

Size: 272 Bytes

Versions: 58

Compression:

Stored size: 272 Bytes

Contents

module Hyrax
  module SingleResult
    extend ActiveSupport::Concern

    included do
      self.default_processor_chain += [:find_one]
    end

    def find_one(solr_parameters)
      solr_parameters[:fq] << "{!raw f=id}#{blacklight_params.fetch(:id)}"
    end
  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
hyrax-2.9.6 app/search_builders/hyrax/single_result.rb
hyrax-2.9.5 app/search_builders/hyrax/single_result.rb
hyrax-2.9.4 app/search_builders/hyrax/single_result.rb
hyrax-2.9.3 app/search_builders/hyrax/single_result.rb
hyrax-2.9.2 app/search_builders/hyrax/single_result.rb
hyrax-2.9.1 app/search_builders/hyrax/single_result.rb
hyrax-2.9.0 app/search_builders/hyrax/single_result.rb
hyrax-2.8.0 app/search_builders/hyrax/single_result.rb
hyrax-2.7.2 app/search_builders/hyrax/single_result.rb
hyrax-2.7.1 app/search_builders/hyrax/single_result.rb
hyrax-2.7.0 app/search_builders/hyrax/single_result.rb
hyrax-2.6.0 app/search_builders/hyrax/single_result.rb
hyrax-3.0.0.pre.rc1 app/search_builders/hyrax/single_result.rb
hyrax-3.0.0.pre.beta3 app/search_builders/hyrax/single_result.rb
hyrax-2.5.1 app/search_builders/hyrax/single_result.rb
hyrax-2.5.0 app/search_builders/hyrax/single_result.rb
hyrax-3.0.0.pre.beta2 app/search_builders/hyrax/single_result.rb
hyrax-2.4.1 app/search_builders/hyrax/single_result.rb
hyrax-3.0.0.pre.beta1 app/search_builders/hyrax/single_result.rb
hyrax-2.4.0 app/search_builders/hyrax/single_result.rb