Sha256: 8d5148f00e299961770c74229d41764209de441fd49b6f57159e2ad33d127b1b
Contents?: true
Size: 371 Bytes
Versions: 25
Compression:
Stored size: 371 Bytes
Contents
# frozen_string_literal: true module Hyrax # 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
25 entries across 25 versions & 1 rubygems