Module: BlacklightCql::ControllerExtension::Helpers
- Defined in:
- lib/blacklight_cql/controller_extension.rb
Instance Method Summary collapse
-
#search_fields ⇒ Object
Make sure the CQL pseudo-search_field is included in the ‘select’ when we’re displaying a CQL search, so the select makes sense.
Instance Method Details
#search_fields ⇒ Object
Make sure the CQL pseudo-search_field is included in the ‘select’ when we’re displaying a CQL search, so the select makes sense.
29 30 31 32 33 34 35 36 37 |
# File 'lib/blacklight_cql/controller_extension.rb', line 29 def search_fields field = BlacklightCql::SearchBuilderExtension.pseudo_search_field if params[:q].blank? || params[:search_field] != field[:key] super else super.clone.push([field[:label], field[:key]]).uniq end end |