Spotlight enables librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that highlight these collections.
OTHER License
Bot releases are hidden (Show)
Published by mjgiarlo over 3 years ago
Published by cbeer over 3 years ago
:long
date format consistently (to include the year) (#2355)In this major release, Spotlight 3 has updated its upstream dependencies to support the latest releases of Rails, Blacklight and Bootstrap. As such, it's important to review those upgrade guides and address deprecation warnings from your application either before or as part of upgrading to Spotlight 3.
Additionally, there are some changes you need to make to your application to support new features or configurations in Spotlight 3:
SearchBuilder
to replace Spotlight::AccessControlsEnforcementSearchBuilder
with Spotlight::SearchBuilder
rake spotlight:install:migrations && rake db:migrate
Spotlight::SolrDocumentBuilder
has been removed in Spotlight 3, and your Resource model is now responsible for all steps in the indexing process. Spotlight now provides an indexing pipeline framework to make it relatively easy to build your indexing rules into the resource.
Each resource class has indexing_pipeline
method that defines the ETL steps for creating solr documents from your resource instance. In your local resource class, you'll want to add additional configuration to the pipeline to perform appropriate extract and load steps.
The pipeline source
configuration is an array of extraction steps. These steps can return/yield one or more source objects that will be transformed later in the pipeline. In general, these objects should be 1:1 to the documents. By default, Spotlight assumes the resource object is the object to index, but e.g. if you had a resource instance that represented a collection containing 5 constituent object, the source would yield an object representing the collection and 5 additional objects for each part of the collection.
The pipeline transform
configuration take the sources and turns it into a solr document-style hash. By default, Spotlight provides some steps that augment a document with fields that enable spotlight-specific features, but you'll need to add a transform step to appropriately transform your source object to any number of application-specific metadata fields.
Here's an example of overriding the indexing pipeline for a contrived resource class.
class MyResourceClass < Spotlight::Resource
def self.indexing_pipeline
@indexing_pipeline ||= super.dup.tap do |pipeline|
# Override the default indexing pipeline to add our application-specific logic; in this case, the `#to_solr` method will be
# called on the source object (which.. because we don't override the `pipeline.sources` at all.. is just the resource instance itself)
pipeline.transforms = [Spotlight::Etl::Transforms::SourceMethodTransform(:to_solr)] + pipeline.transforms
end
end
def to_solr
{ id: id, title_field: xml_document.xpath('//title'), ... }
end
end
Other examples of this new pattern include:
Published by camillevilla almost 5 years ago
Published by camillevilla almost 5 years ago
Published by camillevilla almost 5 years ago
https://github.com/projectblacklight/spotlight/compare/v2.11.0...v2.12.0
lang
attribute should now reflect the current i18n locale #2247Thank you to all release contributors!
@camillevilla @cbeer @dunn @mejackreed
https://github.com/projectblacklight/spotlight/compare/v2.10.0...v2.11.0
Thank you to all release contributors!
@camillevilla @dunn
Published by camillevilla almost 5 years ago
https://github.com/projectblacklight/spotlight/compare/v2.9.0...v2.10.0
Thank you to all release contributors!
@camillevilla @cbeer @dunn @jkeck @mejackreed
Published by camillevilla about 5 years ago
Upgraders will need to run rake spotlight:install:migrations
.
Published by mejackreed over 5 years ago
https://github.com/projectblacklight/spotlight/compare/v2.5.2...v2.6.0
#2168 Adds help block text for image upload areas
Published by mejackreed over 5 years ago
https://github.com/projectblacklight/spotlight/compare/v2.4.1...v2.5.0
Upgraders may need to update their config in:
# config/initializers/riiif.rb
- Riiif::Engine.config.cache_duration_in_days = 365
+ Riiif::Engine.config.cache_duration = 365.days
#1986 Updates riiif to 2.0
#2158 Sets up anonymizeIP configuration for Google Analytics
#2161 Fixes a bug where urls in some feature page widgets that had underscores would be converted to italics
Published by jcoyne over 5 years ago
Published by jkeck almost 6 years ago
#2121 Fixes a bug that prevents changes on page edit forms from persisting (see sul-dlss/exhibits#1326 for more info)
Published by camillevilla almost 6 years ago
https://github.com/projectblacklight/spotlight/compare/v2.2.1...v2.3.0
The bugfix in #2100 adds a new migration. Adopters should run:
rake spotlight:install:migrations
#2109 Added the ability to explicitly configure which Solr fields an upload field belongs to
#2100 Changed Taggable
id type and fixed an Exhibit tags bug (h/t @dunn)
Published by mejackreed about 6 years ago
#2097 fixes an issue where show fields were not showing up as sorted in the metadata administrator panel.
https://github.com/projectblacklight/spotlight/compare/v2.2.0...v2.2.1
Published by mejackreed about 6 years ago
https://github.com/projectblacklight/spotlight/compare/v2.1.0...v2.2.0
This release has several notable changes.
Adopters wanting to take advantage of the enhancements in #2092 which could potentially prevent users from saving large pages should run:
$ rails generate spotlight:increase_paper_trail_column_size
#2091 and #2088 make several changes to fix the build, including updating our Rubocop todo, and requiring i18n < 1.1 as i18n introduced a backwards incompatible change with Rails (https://github.com/rails/rails/pull/33574)
#2094 Updates our CI to build with Rails 5.2.1
#2086 adds new locale files for Chinese and Italian languages
#2092 Update the PaperTrails versions table to be larger to accommodate large Spotlight::Page
#2082 Uses textarea
for free form text input
Published by mejackreed over 6 years ago
https://github.com/projectblacklight/spotlight/compare/v2.0.2...v2.1.0
This release has two notable changes, allowing for great customizability for a Spotlight application.
#2079 Allows the application catalog config to provide values for custom fields
#2078 Enables a Spotlight application to add custom attributes to be shown on a SirTrevor Widget edit form
Published by jkeck over 6 years ago
This release primarily includes two notable changes.
Previous
/Next
record pagination from browse categories into negative numbers (or past the number of documents in the browse category). #2062Note that 2
introduces a database migration so you'll want to run the spotlight:install:migrations
and db:migrate
rake tasks once updating.
Full changes: https://github.com/projectblacklight/spotlight/compare/v2.0.1...v2.0.2
Published by mejackreed over 6 years ago
#2065 Fixes an issue where IIIF resources that did not respond to HEAD requests were not harvestable.