Module: CurationConcerns::FilterSuppressed

Extended by:
ActiveSupport::Concern
Included in:
FilterSuppressedWithRoles, SearchFilters
Defined in:
app/search_builders/curation_concerns/filter_suppressed.rb

Overview

Injects a search builder filter to hide documents marked as suppressed

Instance Method Summary collapse

Instance Method Details

#only_active_works(solr_parameters) ⇒ Object



10
11
12
13
# File 'app/search_builders/curation_concerns/filter_suppressed.rb', line 10

def only_active_works(solr_parameters)
  solr_parameters[:fq] ||= []
  solr_parameters[:fq] << '-suppressed_bsi:true'
end