Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds :original_parents param to search_state_fields as an array #1100

Merged
merged 1 commit into from
Oct 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/generators/arclight/templates/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ class CatalogController < ApplicationController
end

# These are the parameters passed through in search_state.params_for_search
config.search_state_fields += %i[id group hierarchy_context original_document original_parents]
config.search_state_fields += %i[id group hierarchy_context original_document]
config.search_state_fields << { original_parents: [] }

# "sort results by" select (pulldown)
# label in pulldown is followed by the name of the SOLR field to sort by and
Expand Down