Class: Hyrax::ExpiredLeaseSearchBuilder
- Inherits:
-
LeaseSearchBuilder
- Object
- Blacklight::SearchBuilder
- LeaseSearchBuilder
- Hyrax::ExpiredLeaseSearchBuilder
- Defined in:
- app/search_builders/hyrax/expired_lease_search_builder.rb
Overview
Finds embargoed objects with release dates in the past
Instance Method Summary collapse
Methods inherited from LeaseSearchBuilder
#only_active_leases, #with_pagination, #with_sorting
Instance Method Details
#only_expired_leases(solr_params) ⇒ Object
6 7 8 9 |
# File 'app/search_builders/hyrax/expired_lease_search_builder.rb', line 6 def only_expired_leases(solr_params) solr_params[:fq] ||= [] solr_params[:fq] = 'lease_expiration_date_dtsi:[* TO NOW]' end |