Skip to content

Commit

Permalink
replace remaining calls to search_repository_catalog_path with search…
Browse files Browse the repository at this point in the history
…_repository_search_path

- DLC-1157
  • Loading branch information
barmintor committed Oct 15, 2024
1 parent 7e85c4b commit 0dacce3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/sites/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def search_action_url(options = {})
f = options.fetch('f', {}).merge(load_subsite.default_filters)
if load_subsite.restricted.present?
repository_id = @document[:lib_repo_code_ssim].first
return search_repository_catalog_path(repository_id: repository_id, f: f)
return search_repository_search_path(repository_id: repository_id, f: f)
else
# pages have a module scope so controller needs the leading slash
# and since this is not a BL controller, we need to supply the search field
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/dcv/dcv_url_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def landing_page_search_url(document)
facet_value = document.fetch('short_title_ssim',[]).first
if document[:restriction_ssim].present?
repository_id = document[:lib_repo_code_ssim].first
search_repository_catalog_path(repository_id: repository_id, f: {facet_field => [facet_value]})
search_repository_search_path(repository_id: repository_id, f: {facet_field => [facet_value]})
else
search_action_path(:f => {facet_field => [facet_value]})
end
Expand Down

0 comments on commit 0dacce3

Please sign in to comment.