Sha256: e5269f6d9c1c863bc8e913fc31e5106f706f94bdabfcb9eb9ce90937c83cec62

Contents?: true

Size: 302 Bytes

Versions: 14

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true
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

14 entries across 14 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/search_builders/hyrax/single_result.rb
hyrax-3.5.0 app/search_builders/hyrax/single_result.rb
hyrax-3.4.2 app/search_builders/hyrax/single_result.rb
hyrax-3.4.1 app/search_builders/hyrax/single_result.rb
hyrax-3.4.0 app/search_builders/hyrax/single_result.rb
hyrax-3.3.0 app/search_builders/hyrax/single_result.rb
hyrax-3.2.0 app/search_builders/hyrax/single_result.rb
hyrax-3.1.0 app/search_builders/hyrax/single_result.rb
hyrax-3.0.2 app/search_builders/hyrax/single_result.rb
hyrax-3.0.1 app/search_builders/hyrax/single_result.rb
hyrax-3.0.0 app/search_builders/hyrax/single_result.rb
hyrax-3.0.0.pre.rc4 app/search_builders/hyrax/single_result.rb
hyrax-3.0.0.pre.rc3 app/search_builders/hyrax/single_result.rb
hyrax-3.0.0.pre.rc2 app/search_builders/hyrax/single_result.rb