Skip to content

Releases: projectblacklight/blacklight

Version 7.0.0.rc1

30 Mar 18:36
Compare
Choose a tag to compare
Version 7.0.0.rc1 Pre-release
Pre-release

New features

  • Bootstrap 4
  • Rails 5.2 support
  • Webpacker support
  • JSON-API support
  • Solr 7.2 support
  • Dynamic solr schema by default
  • Additive configuration #1767
  • Defined properties in the SolrDocument class #1659
    If you previously had a number of methods in your SolrDocument class like this:
def title
  self['title_ssim'].first
end

You can now simplify these by replacing with:

  include Blacklight::Solr::Document
  attribute :title, Blacklight::Types::String, 'title_tesim'

Bug fixes

  • if the application name isn't defined in the current language, fallback to the application_name in the default language. #1724

Upgrading

Add include Blacklight::DefaultComponentConfiguration to your catalog controller or

  configure_blacklight do |config|
    config.add_results_document_tool(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?)

    config.add_results_collection_tool(:sort_widget)
    config.add_results_collection_tool(:per_page_widget)
    config.add_results_collection_tool(:view_type_group)

    config.add_show_tools_partial(:bookmark, partial: 'bookmark_control', if: :render_bookmarks_control?)
    config.add_show_tools_partial(:email, callback: :email_action, validator: :validate_email_params)
    config.add_show_tools_partial(:sms, if: :render_sms_action?, callback: :sms_action, validator: :validate_sms_params)
    config.add_show_tools_partial(:citation)

    config.add_nav_action(:bookmark, partial: 'blacklight/nav/bookmark', if: :render_bookmarks_control?)
    config.add_nav_action(:search_history, partial: 'blacklight/nav/search_history')
  end

If you are using Blacklight::Solr::Response directly, note that the options to the initializer have changed. Where previously it took :solr_document_model it now takes a :blacklight_config option.

Blacklight 6.10.1

21 Jun 22:33
Compare
Choose a tag to compare

Bug fixes

  • Fixes a bug with search result grouping
  • Fixes an issue migrating from Blacklight 5 -> 6

v6.10.0

17 May 23:10
Compare
Choose a tag to compare
  • Support Rails 5.1
  • Stop testing Rails 4.2

Blacklight 6.9.0

02 May 14:22
Compare
Choose a tag to compare

Features

  • Add Albanian (sq) translation
  • Support for solr 6.5 new spelling format
  • Add an optional opensearch startPage attribute to search urls
  • Add a link to the JSON search results api
  • Pass a controller instance to the SearchState so that it can access url helpers

Bug Fixes

  • Allow running the generator with RSolr 2.0
  • Prevent autocomplete from re-initializing multiple times.

Blacklight 6.8.0

03 Mar 22:14
Compare
Choose a tag to compare

Features

  • Add more_limit facet configuration to change the number of results to display when paginating a facet
  • Allow the SearchState configuration to be configured (using e.g. CatalogController. search_state_class = X)

Bug Fixes

  • Trim TokenBasedUser#export_secret_token for compatibility with ruby 2.4.0
  • Consistently use facet.key for user-facing parameters, and facet.field for solr-facing parameters

Other backports

  • Use image_url when constructing the $logo_url css variable
  • SolrResponse should use Blacklight.logger

Version 6.7.3

09 Jan 16:56
Compare
Choose a tag to compare

Changes

  • LinkAlternatePresenter is now using url_for_document to draw links.

Blacklight 6.7.0

27 Sep 23:09
Compare
Choose a tag to compare

Improvements

  • #1525 Prefer JSON.parse over JSON.load
  • #1492 Add example usage to the generated SearchBuilder
  • #1500 Use more lenient email address matching when emailing search results

Deprecations

  • Deprecate many Blacklight::Document delegations to the underlying hash

Blacklight 6.6.0

09 Sep 13:50
Compare
Choose a tag to compare

Improvements

  • #1470 add explicit setters for Blacklight::SearchBuilder parameters
  • #1478 generate ./solr/conf and a default .solr_wrapper.yml configuration for the convenience of downstream applications
  • #1477 extract #facet_configuration_for_field into Blacklight::Configuration
  • #1490 add #search_facet_path helper to deprecate #search_facet_url

Bug Fixes

  • #1471 replace case equality operators (===) with ordinary equality operator (==) where appropriate
  • #1481 accept malformed user-supplied parameters for facets
  • #1480 fix Rails 5 compatibility with #search_action_url helper

Blacklight 6.5.0

23 Aug 00:08
Compare
Choose a tag to compare

Features

#1457 Atom and RSS feed link helpers should accept a route_set parameter
#1458 Add bootstrap styling to the delete button on the saved searches page
#1468 Use POST requests for requesting user bookmark results
#1466 Address warnings for deprecated behavior being removed in Rails 5.1

Improvements

#1461 Use the bootstrap $zindex-dropdown value for the z-index for the typeahead widget

Bug Fixes

#1460 Don't freeze string literals in the template installer

Blacklight 6.4.2

19 Aug 15:37
Compare
Choose a tag to compare

#1456 Further compatibility with the Rails 5 ActionController::Parameters class