app/search_builders/hyrax/my/collections_search_builder.rb
def show_only_collections_deposited_by_current_user(solr_parameters)
    clauses = [
      ActiveFedora::SolrQueryBuilder.construct_query_for_rel(depositor: current_user_key),
      ActiveFedora::SolrQueryBuilder.construct_query_for_rel(has_model: ::AdminSet.to_s, creator: current_user_key)
    ]
    solr_parameters[:fq] ||= []
    solr_parameters[:fq] += ["(#{clauses.join(' OR ')})"]
  end
# adds a filter to the solr_parameters that filters the collections and admin sets
# the current user has deposited
# @param [Hash] solr_parameters
adds a filter to the solr_parameters that filters the collections and admin sets
the current user has deposited
adds a filter to the solr_parameters that filters the collections and admin sets the current user has deposited
def show_only_collections_deposited_by_current_user(solr_parameters)
    clauses = [
      ActiveFedora::SolrQueryBuilder.construct_query_for_rel(depositor: current_user_key),
      ActiveFedora::SolrQueryBuilder.construct_query_for_rel(has_model: ::AdminSet.to_s, creator: current_user_key)
    ]
    solr_parameters[:fq] ||= []
    solr_parameters[:fq] += ["(#{clauses.join(' OR ')})"]
  end
def show_only_collections_deposited_by_current_user ( solr_parameters ) clauses = [ ActiveFedora :: SolrQueryBuilder . construct_query_for_rel ( depositor : current_user_key ) , ActiveFedora :: SolrQueryBuilder . construct_query_for_rel ( has_model : :: AdminSet . to_s , creator : current_user_key ) ] solr_parameters [ :fq ] ||= [ ] solr_parameters [ :fq ] += [ "(#{clauses.join(' OR ')})" ] end
adds a filter to the solr_parameters that filters the collections and admin sets
the current user has deposited
adds a filter to the solr_parameters that filters the collections and admin sets the current user has deposited
solr_parameters
None