Module: Hyrax::SearchPathsHelper

Included in:
HyraxHelperBehavior
Defined in:
app/helpers/hyrax/search_paths_helper.rb

Instance Method Summary collapse

Instance Method Details

#search_path_for_my_collections(opts = {}) ⇒ Object



7
8
9
10
# File 'app/helpers/hyrax/search_paths_helper.rb', line 7

def search_path_for_my_collections(opts = {})
  params_for_my_collections = { 'f[generic_type_sim][]' => 'Collection', works: 'mine' }
  main_app.search_catalog_path(params_for_my_collections.merge(opts))
end

#search_path_for_my_works(opts = {}) ⇒ Object



2
3
4
5
# File 'app/helpers/hyrax/search_paths_helper.rb', line 2

def search_path_for_my_works(opts = {})
  params_for_my_works = { 'f[generic_type_sim][]' => 'Work', works: 'mine' }
  main_app.search_catalog_path(params_for_my_works.merge(opts))
end