Sha256: 9379fe763d4bb31dfbcc507c0deab183d6bd44d469a4b9cd18fcddfe4efbf910
Contents?: true
Size: 634 Bytes
Versions: 5
Compression:
Stored size: 634 Bytes
Contents
# We can over-ride a default Blacklight template helper and still call # super on it, by inserting this module as a helper into CatalogController. # This plugins setup will do that. module BlacklightCql::TemplateHelperExtension # Make sure the CQL pseudo-search_field is included in the 'select' # when we're displaying a CQL search, so the select makes sense. def search_fields field = BlacklightCql::SolrHelperExtension.pseudo_search_field if params[:q].blank? || params[:search_field] != field[:key] super else super.clone.push([field[:label], field[:key]]).uniq end end end
Version data entries
5 entries across 5 versions & 1 rubygems