Sha256: 81411588ed911c87b7588d674fb3e600c15dab15fafc2a6efa025f7481842248

Contents?: true

Size: 447 Bytes

Versions: 10

Compression:

Stored size: 447 Bytes

Contents

module Hyrax::SearchPathsHelper
  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

  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
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/helpers/hyrax/search_paths_helper.rb
hyrax-1.1.0 app/helpers/hyrax/search_paths_helper.rb
hyrax-1.0.5 app/helpers/hyrax/search_paths_helper.rb
hyrax-1.0.4 app/helpers/hyrax/search_paths_helper.rb
hyrax-1.0.3 app/helpers/hyrax/search_paths_helper.rb
hyrax-1.0.2 app/helpers/hyrax/search_paths_helper.rb
hyrax-1.0.1 app/helpers/hyrax/search_paths_helper.rb
hyrax-1.0.0.rc2 app/helpers/hyrax/search_paths_helper.rb
hyrax-1.0.0.rc1 app/helpers/hyrax/search_paths_helper.rb
test_hyrax-0.0.1.alpha app/helpers/hyrax/search_paths_helper.rb