Sha256: abb772d491dd911ddc6bc327959f5dcfa7b59c24219de07d95b70a2c941b7ff8

Contents?: true

Size: 350 Bytes

Versions: 58

Compression:

Stored size: 350 Bytes

Contents

module Hyrax
  # Finds embargoed objects with release dates in the past
  class ExpiredEmbargoSearchBuilder < EmbargoSearchBuilder
    self.default_processor_chain += [:only_expired_embargoes]

    def only_expired_embargoes(solr_params)
      solr_params[:fq] ||= []
      solr_params[:fq] = 'embargo_release_date_dtsi:[* TO NOW]'
    end
  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

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