Sha256: b4c12c0f937ac76c7d87f6c0893fc5083a5ef15c00da2f9343d031c0dfc08796

Contents?: true

Size: 317 Bytes

Versions: 28

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  class DeactivatedEmbargoSearchBuilder < EmbargoSearchBuilder
    self.default_processor_chain += [:with_deactivated_embargos]

    def with_deactivated_embargos(solr_params)
      solr_params[:fq] ||= []
      solr_params[:fq] = 'embargo_history_ssim:*'
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
hyrax-5.0.4 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-5.0.3 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-5.0.2 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-5.0.1 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-5.0.0 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-5.0.0.rc3 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-5.0.0.rc2 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-5.0.0.rc1 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-3.6.0 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-4.0.0 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-4.0.0.rc3 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-4.0.0.rc2 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-4.0.0.rc1 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-3.5.0 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-4.0.0.beta2 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-3.4.2 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-4.0.0.beta1 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-3.4.1 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-3.4.0 app/search_builders/hyrax/deactivated_embargo_search_builder.rb
hyrax-3.3.0 app/search_builders/hyrax/deactivated_embargo_search_builder.rb