Class: ParentCollectionSearchBuilder

Inherits:
CurationConcerns::CollectionSearchBuilder
  • Object
show all
Defined in:
app/search_builders/parent_collection_search_builder.rb

Overview

Given the id of a work, find the collections it is a member of

Instance Method Summary collapse

Instance Method Details

#include_item_ids(solr_parameters) ⇒ Object

include filters into the query to only include the collection memebers



6
7
8
9
# File 'app/search_builders/parent_collection_search_builder.rb', line 6

def include_item_ids(solr_parameters)
  solr_parameters[:fq] ||= []
  solr_parameters[:fq] << "child_object_ids_ssim:#{item.id}"
end