Skip to content

Advanced Search and Range Limit plugins override same methods (and squash each other) #698

@cbeer

Description

@cbeer

The advanced search and range limit plugins both override these methods (in order to display the constraints and search results) with conflicting overrides. Perhaps Blacklight needs to provide a way for plugins to configure parameter names, or otherwise?

  def query_has_constraints?(localized_params = params)
    !(localized_params[:q].blank? and localized_params[:f].blank?)
  end
  def has_search_parameters?
    !params[:q].blank? or !params[:f].blank? or !params[:search_field].blank?
  end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions