Sha256: d0ca15b44cac887b5bef013e8abc85636957f47c2619fa2a30311d9830d97f0a

Contents?: true

Size: 588 Bytes

Versions: 21

Compression:

Stored size: 588 Bytes

Contents

module Hyrax
  # Builds a query to find the members of an admin set.
  # For use on the admin menu, so it includes works regardless of status.
  class AdminAdminSetMemberSearchBuilder < ::SearchBuilder
    self.default_processor_chain += [:in_admin_set]
    self.default_processor_chain -= [:only_active_works]

    # include filters into the query to only include the admin_set members (regardless of status)
    def in_admin_set(solr_parameters)
      solr_parameters[:fq] ||= []
      solr_parameters[:fq] << "{!term f=isPartOf_ssim}#{blacklight_params.fetch('id')}"
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.3 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-1.1.0 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.2 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.1 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0.rc3 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0.rc2 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0.rc1 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-1.0.5 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0.beta5 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0.beta4 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0.beta3 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0.beta2 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-2.0.0.beta1 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-1.0.4 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-1.0.3 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-1.0.2 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-1.0.1 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb
hyrax-1.0.0.rc2 app/search_builders/hyrax/admin_admin_set_member_search_builder.rb