Sha256: ba90a6a49d370b85edbd46f5a216fb32a76104f44cbcfa03b69f52133d4c3ee1
Contents?: true
Size: 556 Bytes
Versions: 5
Compression:
Stored size: 556 Bytes
Contents
module My class CollectionsController < MyController self.solr_search_params_logic += [ :show_only_collections ] def show_only_collections(solr_parameters, user_parameters) solr_parameters[:fq] ||= [] solr_parameters[:fq] += [ ActiveFedora::SolrQueryBuilder.construct_query_for_rel(has_model: Collection.to_class_uri) ] end def index super @selected_tab = :collections end protected def search_action_url *args sufia.dashboard_collections_url *args end end end
Version data entries
5 entries across 5 versions & 1 rubygems