Class: Hyrax::ExpiredEmbargoSearchBuilder

Inherits:
EmbargoSearchBuilder show all
Defined in:
app/search_builders/hyrax/expired_embargo_search_builder.rb

Overview

Finds embargoed objects with release dates in the past

Instance Method Summary collapse

Methods inherited from EmbargoSearchBuilder

#only_active_embargoes, #with_pagination, #with_sorting

Instance Method Details

#only_expired_embargoes(solr_params) ⇒ Object



7
8
9
10
# File 'app/search_builders/hyrax/expired_embargo_search_builder.rb', line 7

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