Sha256: 6bc1a8d7b3cdb7c362bbf7dce4e411c4d88eab603c2c2496b0f7537d3ab21080
Contents?: true
Size: 380 Bytes
Versions: 25
Compression:
Stored size: 380 Bytes
Contents
# frozen_string_literal: true 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
25 entries across 25 versions & 1 rubygems