Skip to content

Commit

Permalink
Remove methods that moved to curation_concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jul 8, 2016
1 parent 821fa71 commit ccd43d2
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions app/helpers/sufia/blacklight_override.rb
@@ -1,25 +1,5 @@
module Sufia
module BlacklightOverride
# TODO: we can remove this override when we can depend on https://github.com/projecthydra-labs/curation_concerns/pull/711
def render_constraints_query(localized_params = params)
# So simple don't need a view template, we can just do it here.
return "".html_safe if localized_params[:q].blank?

render_constraint_element(constraint_query_label(localized_params),
localized_params[:q],
classes: ["query"],
remove: remove_constraint_url(localized_params))
end

# TODO: we can remove this override when we can depend on https://github.com/projecthydra-labs/curation_concerns/pull/711
def remove_constraint_url(localized_params)
scope = localized_params.delete(:route_set) || self
options = localized_params.merge(q: nil, action: 'index')
.except(*fields_to_exclude_from_constraint_element)
options.permit!
scope.url_for(options)
end

# This overrides curation_concerns so we aren't removing any fields.
# @return [Array<Symbol>] a list of fields to remove on the render_constraint_element
# You can override this if you have different fields to remove
Expand Down

0 comments on commit ccd43d2

Please sign in to comment.