Sha256: 0a4e1588f2bfd19c4d631ba49580e22dadf2f834bfeb9324a1562146e028bd14

Contents?: true

Size: 558 Bytes

Versions: 9

Compression:

Stored size: 558 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::SolrService.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

9 entries across 9 versions & 1 rubygems

Version Path
sufia-5.0.0 app/controllers/my/collections_controller.rb
sufia-5.0.0.rc1 app/controllers/my/collections_controller.rb
sufia-4.3.1 app/controllers/my/collections_controller.rb
sufia-4.2.0 app/controllers/my/collections_controller.rb
sufia-4.1.0 app/controllers/my/collections_controller.rb
sufia-4.0.1 app/controllers/my/collections_controller.rb
sufia-4.0.0 app/controllers/my/collections_controller.rb
sufia-4.0.0.rc2 app/controllers/my/collections_controller.rb
sufia-4.0.0.rc1 app/controllers/my/collections_controller.rb