Skip to content

Blacklight 5.1.0

Compare
Choose a tag to compare
@cbeer cbeer released this 28 Feb 05:52

Commit History | Milestone

New Features

  • #764 Support for wild-card based field configuration, e.g.
config.add_facet_field '*_facet'
config.add_show_field '*_display'
config.add_index_field 'title_*'
  • #762 Add solr_params configuration option for index, show and facet fields to add field-scoped parameters to the solr request.
config.add_index_field 'an_index_field', solr_params: { 'hl.alternativeField' => 'field_x'}
config.add_show_field 'a_show_field', solr_params: { 'hl.alternativeField' => 'field_y'}
config.add_field_configuration_to_solr_request!
config.add_facet_field 'some-field', solr_params: { 'facet.mincount' =>15 }
config.add_facet_fields_to_solr_request!
  • #761 Add configuration for registering additional search result (catalog#index) response formats
    config.index.respond_to.yaml = true
    config.index.respond_to.yaml = { layout: 'custom-layout' }

Bug fixes and improvements

  • #766 Update InvalidSolrID rescuing to provide a regular HTTP 404 page instead of rendering the search page with a flash message.
  • #777 Merge the code for rendering facets at catalog#facetwith the code that renders facets on a search results page. This fixes also fixes bug where facets configured with single: true would not be rendered correctly on catalog#facet.
  • #776 Updates Blacklight-provided URL helpers (e.g.link_to_query) to use #search_action_url and #search_action_path to ensure they can be properly used outside of a Blacklight::Catalog instance, or within another Rails engine.

This also adds #search_action_path, an equivalent to #search_action_url, producing a relative path instead of an absolute URL

  • #774 When rendering the Blacklight thumbnail partial, allow the renderer to disable linking the thumbnail to the search result (the default)