Class: My::CollectionsController
- Inherits:
-
MyController
- Object
- ApplicationController
- MyController
- My::CollectionsController
- Defined in:
- app/controllers/my/collections_controller.rb
Instance Method Summary collapse
Methods included from Sufia::MyControllerBehavior
Instance Method Details
#index ⇒ Object
15 16 17 18 |
# File 'app/controllers/my/collections_controller.rb', line 15 def index super @selected_tab = :collections end |
#show_only_collections(solr_parameters, user_parameters) ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/my/collections_controller.rb', line 8 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 |