Sha256: 098c970b4787ca430ce21c081966abc6ef00e20053dc27709bfe5912916f84b7

Contents?: true

Size: 315 Bytes

Versions: 15

Compression:

Stored size: 315 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.append_filter_query("{!raw f=id}#{blacklight_params.fetch(:id)}")
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/search_builders/hyrax/single_result.rb
hyrax-5.0.4 app/search_builders/hyrax/single_result.rb
hyrax-5.0.3 app/search_builders/hyrax/single_result.rb
hyrax-5.0.2 app/search_builders/hyrax/single_result.rb
hyrax-5.0.1 app/search_builders/hyrax/single_result.rb
hyrax-5.0.0 app/search_builders/hyrax/single_result.rb
hyrax-5.0.0.rc3 app/search_builders/hyrax/single_result.rb
hyrax-5.0.0.rc2 app/search_builders/hyrax/single_result.rb
hyrax-5.0.0.rc1 app/search_builders/hyrax/single_result.rb
hyrax-4.0.0 app/search_builders/hyrax/single_result.rb
hyrax-4.0.0.rc3 app/search_builders/hyrax/single_result.rb
hyrax-4.0.0.rc2 app/search_builders/hyrax/single_result.rb
hyrax-4.0.0.rc1 app/search_builders/hyrax/single_result.rb
hyrax-4.0.0.beta2 app/search_builders/hyrax/single_result.rb
hyrax-4.0.0.beta1 app/search_builders/hyrax/single_result.rb