Module: BlacklightIiifSearch::SearchBehavior

Included in:
IiifSearch
Defined in:
app/models/concerns/blacklight_iiif_search/search_behavior.rb

Instance Method Summary collapse

Instance Method Details

#object_relation_solr_paramsHash

params to limit the search to items that have some relationship with the parent object (e.g. pages) for ex., return a value hash where: key: solr field for image/file to object relationship value: identifier of parent

Returns:

  • (Hash)


13
14
15
# File 'app/models/concerns/blacklight_iiif_search/search_behavior.rb', line 13

def object_relation_solr_params
  { iiif_config[:object_relation_field] => id }
end