Sha256: 00620dca6a12c99d4e7fc51d48a2e4a7bb06317bf6fff2d4735faa77341d6d13

Contents?: true

Size: 352 Bytes

Versions: 66

Compression:

Stored size: 352 Bytes

Contents

module CurationConcerns
  # Finds embargoed objects with release dates in the past
  class ExpiredLeaseSearchBuilder < LeaseSearchBuilder
    self.default_processor_chain += [:only_expired_leases]

    def only_expired_leases(solr_params)
      solr_params[:fq] ||= []
      solr_params[:fq] = 'lease_expiration_date_dtsi:[* TO NOW]'
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.7 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-2.0.0 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-2.0.0.rc2 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.6 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.5 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.4 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.3 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.2 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-2.0.0.rc1 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.1 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.0 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.7.0.beta1 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.6.3 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.6.2 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.6.1 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.6.0 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.5.0 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.4.0 app/search_builders/curation_concerns/expired_lease_search_builder.rb
curation_concerns-1.3.3 app/search_builders/curation_concerns/expired_lease_search_builder.rb