Class: Hyrax::AdminAdminSetMemberSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Defined in:
app/search_builders/hyrax/admin_admin_set_member_search_builder.rb

Overview

Builds a query to find the members of an admin set. For use on the admin menu, so it includes works regardless of status.

Instance Method Summary collapse

Instance Method Details

#in_admin_set(solr_parameters) ⇒ Object

include filters into the query to only include the admin_set members (regardless of status)



9
10
11
12
# File 'app/search_builders/hyrax/admin_admin_set_member_search_builder.rb', line 9

def in_admin_set(solr_parameters)
  solr_parameters[:fq] ||= []
  solr_parameters[:fq] << "{!term f=isPartOf_ssim}#{blacklight_params.fetch('id')}"
end