Module: Blacklight::FacetsHelperBehavior
- Included in:
- CatalogHelperBehavior
- Defined in:
- app/helpers/blacklight/facets_helper_behavior.rb
Instance Method Summary collapse
- #facet_field_presenter(facet_config, display_facet) ⇒ Object
- #search_facet_path(options = {}) ⇒ Object
Instance Method Details
#facet_field_presenter(facet_config, display_facet) ⇒ Object
6 7 8 |
# File 'app/helpers/blacklight/facets_helper_behavior.rb', line 6 def facet_field_presenter(facet_config, display_facet) facet_config.presenter.new(facet_config, display_facet, self) end |
#search_facet_path(options = {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/helpers/blacklight/facets_helper_behavior.rb', line 10 def search_facet_path( = {}) opts = search_state .to_h .merge(action: "facet", only_path: true) .merge() .except(:page) url_for opts end |