From a478f1b2347e5c3ed290562b79b1035a5747d14d Mon Sep 17 00:00:00 2001 From: Eliot Jordan Date: Mon, 30 Jan 2023 10:32:38 -0600 Subject: [PATCH 01/14] Upgrade to Blacklight 7.33 Co-authored-by: Anna Headley --- Gemfile | 2 +- Gemfile.lock | 173 ++++++++++--------- app/controllers/search_history_controller.rb | 1 - 3 files changed, 95 insertions(+), 81 deletions(-) diff --git a/Gemfile b/Gemfile index 5b41e7f5..899d0cd4 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source 'https://rubygems.org' gem 'bitters', '~> 1.2.0' gem 'bixby', '~> 5.0' # Locked to Blacklight 7.24 as 7.25.1 currently breaks range limit -gem 'blacklight', '~> 7.24.0' +gem 'blacklight', '~> 7.33.0' gem 'blacklight-gallery' gem 'blacklight_range_limit' gem 'bootstrap', '~> 4.0' diff --git a/Gemfile.lock b/Gemfile.lock index b5f8ec64..e8cf90ef 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,60 +8,60 @@ GIT GEM remote: https://rubygems.org/ specs: - actioncable (6.1.6.1) - actionpack (= 6.1.6.1) - activesupport (= 6.1.6.1) + actioncable (6.1.7.2) + actionpack (= 6.1.7.2) + activesupport (= 6.1.7.2) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.1.6.1) - actionpack (= 6.1.6.1) - activejob (= 6.1.6.1) - activerecord (= 6.1.6.1) - activestorage (= 6.1.6.1) - activesupport (= 6.1.6.1) + actionmailbox (6.1.7.2) + actionpack (= 6.1.7.2) + activejob (= 6.1.7.2) + activerecord (= 6.1.7.2) + activestorage (= 6.1.7.2) + activesupport (= 6.1.7.2) mail (>= 2.7.1) - actionmailer (6.1.6.1) - actionpack (= 6.1.6.1) - actionview (= 6.1.6.1) - activejob (= 6.1.6.1) - activesupport (= 6.1.6.1) + actionmailer (6.1.7.2) + actionpack (= 6.1.7.2) + actionview (= 6.1.7.2) + activejob (= 6.1.7.2) + activesupport (= 6.1.7.2) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (6.1.6.1) - actionview (= 6.1.6.1) - activesupport (= 6.1.6.1) + actionpack (6.1.7.2) + actionview (= 6.1.7.2) + activesupport (= 6.1.7.2) rack (~> 2.0, >= 2.0.9) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.1.6.1) - actionpack (= 6.1.6.1) - activerecord (= 6.1.6.1) - activestorage (= 6.1.6.1) - activesupport (= 6.1.6.1) + actiontext (6.1.7.2) + actionpack (= 6.1.7.2) + activerecord (= 6.1.7.2) + activestorage (= 6.1.7.2) + activesupport (= 6.1.7.2) nokogiri (>= 1.8.5) - actionview (6.1.6.1) - activesupport (= 6.1.6.1) + actionview (6.1.7.2) + activesupport (= 6.1.7.2) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.1.6.1) - activesupport (= 6.1.6.1) + activejob (6.1.7.2) + activesupport (= 6.1.7.2) globalid (>= 0.3.6) - activemodel (6.1.6.1) - activesupport (= 6.1.6.1) - activerecord (6.1.6.1) - activemodel (= 6.1.6.1) - activesupport (= 6.1.6.1) - activestorage (6.1.6.1) - actionpack (= 6.1.6.1) - activejob (= 6.1.6.1) - activerecord (= 6.1.6.1) - activesupport (= 6.1.6.1) + activemodel (6.1.7.2) + activesupport (= 6.1.7.2) + activerecord (6.1.7.2) + activemodel (= 6.1.7.2) + activesupport (= 6.1.7.2) + activestorage (6.1.7.2) + actionpack (= 6.1.7.2) + activejob (= 6.1.7.2) + activerecord (= 6.1.7.2) + activesupport (= 6.1.7.2) marcel (~> 1.0) mini_mime (>= 1.1.0) - activesupport (6.1.6.1) + activesupport (6.1.7.2) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) @@ -89,22 +89,23 @@ GEM rubocop-performance rubocop-rails rubocop-rspec - blacklight (7.24.0) + blacklight (7.33.0) deprecation globalid + hashdiff i18n (>= 1.7.0) jbuilder (~> 2.7) kaminari (>= 0.15) ostruct (>= 0.3.2) rails (>= 5.1, < 7.1) - view_component (~> 2.43) + view_component (~> 2.66) blacklight-gallery (2.1.0) blacklight (~> 7.7) bootstrap (~> 4.0) openseadragon (>= 0.2.0) rails (>= 5.1, < 7) - blacklight_range_limit (8.1.0) - blacklight (~> 7.0) + blacklight_range_limit (8.2.3) + blacklight (>= 7.25.2, < 9) bootstrap (4.6.1) autoprefixer-rails (>= 9.1.0) popper_js (>= 1.14.3, < 2) @@ -148,10 +149,17 @@ GEM coffee-script-source execjs coffee-script-source (1.12.2) - concurrent-ruby (1.1.10) + concurrent-ruby (1.2.0) + coveralls (0.8.23) + json (>= 1.8, < 3) + simplecov (~> 0.16.1) + term-ansicolor (~> 1.3) + thor (>= 0.19.4, < 2.0) + tins (~> 1.6) crack (0.4.5) rexml crass (1.0.6) + date (3.3.3) debug_inspector (1.1.0) deprecation (1.1.0) activesupport @@ -174,7 +182,7 @@ GEM scanf (~> 1.0) sxp (~> 1.2) unicode-types (~> 1.7) - erubi (1.10.0) + erubi (1.12.0) execjs (2.8.1) faraday (2.2.0) faraday-net_http (~> 2.0) @@ -183,7 +191,7 @@ GEM ffi (1.15.5) font-awesome-sass (4.7.0) sass (>= 3.2) - globalid (1.0.0) + globalid (1.1.0) activesupport (>= 5.0) haml (5.2.2) temple (>= 0.8.0) @@ -232,11 +240,14 @@ GEM kaminari-core (= 1.2.2) kaminari-core (1.2.2) link_header (0.0.8) - loofah (2.18.0) + loofah (2.19.1) crass (~> 1.0.2) nokogiri (>= 1.5.9) - mail (2.7.1) + mail (2.8.0.1) mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp mail_form (1.9.0) actionmailer (>= 5.2) activemodel (>= 5.2) @@ -247,15 +258,16 @@ GEM nokogiri (~> 1) rake mini_mime (1.1.2) - mini_portile2 (2.8.0) - minitest (5.16.2) + mini_portile2 (2.8.1) + minitest (5.17.0) modernizr-rails (2.7.1) multi_json (1.15.0) - net-imap (0.3.1) + net-imap (0.3.4) + date net-protocol net-pop (0.1.2) net-protocol - net-protocol (0.1.3) + net-protocol (0.2.1) timeout net-scp (4.0.0) net-ssh (>= 2.6.5, < 8.0.0) @@ -263,7 +275,7 @@ GEM net-protocol net-ssh (7.0.1) nio4r (2.5.8) - nokogiri (1.13.9) + nokogiri (1.13.10) mini_portile2 (~> 2.8.0) racc (~> 1.4) openseadragon (0.6.0) @@ -283,24 +295,24 @@ GEM byebug (~> 11.0) pry (~> 0.13.0) public_suffix (4.0.6) - racc (1.6.0) - rack (2.2.4) + racc (1.6.2) + rack (2.2.6.2) rack-test (2.0.2) rack (>= 1.3) - rails (6.1.6.1) - actioncable (= 6.1.6.1) - actionmailbox (= 6.1.6.1) - actionmailer (= 6.1.6.1) - actionpack (= 6.1.6.1) - actiontext (= 6.1.6.1) - actionview (= 6.1.6.1) - activejob (= 6.1.6.1) - activemodel (= 6.1.6.1) - activerecord (= 6.1.6.1) - activestorage (= 6.1.6.1) - activesupport (= 6.1.6.1) + rails (6.1.7.2) + actioncable (= 6.1.7.2) + actionmailbox (= 6.1.7.2) + actionmailer (= 6.1.7.2) + actionpack (= 6.1.7.2) + actiontext (= 6.1.7.2) + actionview (= 6.1.7.2) + activejob (= 6.1.7.2) + activemodel (= 6.1.7.2) + activerecord (= 6.1.7.2) + activestorage (= 6.1.7.2) + activesupport (= 6.1.7.2) bundler (>= 1.15.0) - railties (= 6.1.6.1) + railties (= 6.1.7.2) sprockets-rails (>= 2.0.0) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) @@ -309,14 +321,14 @@ GEM rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) - rails-html-sanitizer (1.4.3) - loofah (~> 2.3) + rails-html-sanitizer (1.5.0) + loofah (~> 2.19, >= 2.19.1) rails-i18n (7.0.3) i18n (>= 0.7, < 2) railties (>= 6.0.0, < 8) - railties (6.1.6.1) - actionpack (= 6.1.6.1) - activesupport (= 6.1.6.1) + railties (6.1.7.2) + actionpack (= 6.1.7.2) + activesupport (= 6.1.7.2) method_source rake (>= 12.2) thor (~> 1.0) @@ -440,9 +452,9 @@ GEM rbtree set (~> 1.0) spring (4.0.0) - sprockets (4.1.1) + sprockets (4.2.0) concurrent-ruby (~> 1.0) - rack (> 1, < 3) + rack (>= 2.2.4, < 4) sprockets-rails (3.4.2) actionpack (>= 5.2) activesupport (>= 5.2) @@ -458,17 +470,20 @@ GEM unicode-display_width (>= 1.1.1, < 3) thor (1.2.1) tilt (2.0.10) - timeout (0.3.0) + timeout (0.3.1) + tins (1.31.0) + sync turbolinks (5.2.1) turbolinks-source (~> 5.2) turbolinks-source (5.2.0) - tzinfo (2.0.4) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (1.4.1) unicode-types (1.8.0) vcr (6.1.0) - view_component (2.53.0) - activesupport (>= 5.0.0, < 8.0) + view_component (2.82.0) + activesupport (>= 5.2.0, < 8.0) + concurrent-ruby (~> 1.0) method_source (~> 1.0) warden (1.2.9) rack (>= 2.0.9) @@ -489,7 +504,7 @@ GEM nokogiri (~> 1.8) yard (0.9.27) webrick (~> 1.7.0) - zeitwerk (2.6.0) + zeitwerk (2.6.6) PLATFORMS ruby @@ -497,7 +512,7 @@ PLATFORMS DEPENDENCIES bitters (~> 1.2.0) bixby (~> 5.0) - blacklight (~> 7.24.0) + blacklight (~> 7.33.0) blacklight-gallery blacklight_range_limit bootstrap (~> 4.0) diff --git a/app/controllers/search_history_controller.rb b/app/controllers/search_history_controller.rb index 83a21bb7..89c2a2dc 100644 --- a/app/controllers/search_history_controller.rb +++ b/app/controllers/search_history_controller.rb @@ -2,6 +2,5 @@ class SearchHistoryController < ApplicationController include Blacklight::SearchHistory - helper BlacklightRangeLimit::ViewHelperOverride helper RangeLimitHelper end From 62b79bfafee780220459be50a5534f1e06ac3de8 Mon Sep 17 00:00:00 2001 From: Anna Headley Date: Mon, 30 Jan 2023 12:08:43 -0500 Subject: [PATCH 02/14] Update masonry configuration in catalog controller resolves deprecation warning, but doesn't look right yet. Co-authored-by: Eliot Jordan --- app/controllers/catalog_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index cb1e5589..4f82ced0 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -7,9 +7,7 @@ class CatalogController < ApplicationController helper Openseadragon::OpenseadragonHelper configure_blacklight do |config| - # config.view.gallery.partials = [:index_header, :index] - config.view.masonry.partials = [:index] - # config.view.slideshow.partials = [:index] + config.view.masonry! config.index.thumbnail_method = :thumbnail_from_manifest # config.show.tile_source_field = :content_metadata_image_iiif_info_ssm # config.show.partials.insert(0, :openseadragon) From 3ffd26cda2e68394896ba4cdd0a2ad8f4747bf4d Mon Sep 17 00:00:00 2001 From: Anna Headley Date: Mon, 30 Jan 2023 12:17:26 -0500 Subject: [PATCH 03/14] Use new SearchBarComponent eliminates a deprecation warning: render_search_bar is deprecated and will be removed from a future release (Call `render Blacklight::SearchBarComponent.new' instead). (called from _app_views_shared__header_navbar_html_erb___903966786867993672_57000 at lae-blacklight/app/views/shared/_header_navbar.html.erb:27) Co-authored-by: Eliot Jordan --- app/views/shared/_header_navbar.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_header_navbar.html.erb b/app/views/shared/_header_navbar.html.erb index c41a8a38..929cbaed 100644 --- a/app/views/shared/_header_navbar.html.erb +++ b/app/views/shared/_header_navbar.html.erb @@ -22,9 +22,13 @@ - +