Class: Hyrax::My::SearchBuilder Abstract
- Inherits:
-
SearchBuilder
- Object
- SearchBuilder
- Hyrax::My::SearchBuilder
- Includes:
- SearchBuilderBehavior
- Defined in:
- app/search_builders/hyrax/my/search_builder.rb
Overview
This class is abstract.
Search builder for things that the current user has deposited and has edit access to
Direct Known Subclasses
Instance Method Summary collapse
-
#show_only_resources_deposited_by_current_user(solr_parameters) ⇒ Object
adds a filter to the solr_parameters that filters the documents the current user has deposited.
Methods included from SearchBuilderBehavior
Instance Method Details
#show_only_resources_deposited_by_current_user(solr_parameters) ⇒ Object
adds a filter to the solr_parameters that filters the documents the current user has deposited
14 15 16 17 18 19 |
# File 'app/search_builders/hyrax/my/search_builder.rb', line 14 def show_only_resources_deposited_by_current_user(solr_parameters) solr_parameters[:fq] ||= [] solr_parameters[:fq] += [ ActiveFedora::SolrQueryBuilder.construct_query_for_rel(depositor: current_user_key) ] end |