From 2ffa60c2e8c2196e73b59699187df2930334aaea Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Fri, 4 Nov 2022 12:16:35 -0500 Subject: [PATCH] Link the SUL logo to the library website Fixes #134 --- Gemfile.lock | 34 +++++++++++++-------------- app/controllers/catalog_controller.rb | 2 ++ config/locales/blacklight.en.yml | 2 +- spec/requests/home_page_spec.rb | 5 ++++ 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 1f255076..6f9e2f7c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/projectblacklight/arclight.git - revision: 0289a964fe64f285e868a43b82ac5b872c289506 + revision: b8a19b59d070721b91e0c014fc03a2c3008ddacd specs: arclight (1.0.0.alpha) blacklight (>= 7.14, < 9) @@ -11,7 +11,7 @@ GIT GIT remote: https://github.com/projectblacklight/blacklight.git - revision: f30340e7cdbb2b166488ffa7f9bc6f628a25a131 + revision: 93424b91dcd97b0aff33ee43ab72cb9366a84193 branch: main specs: blacklight (8.0.0.alpha) @@ -21,7 +21,7 @@ GIT kaminari (>= 0.15) ostruct (>= 0.3.2) rails (>= 6.1, < 8) - view_component (~> 2.43) + view_component (~> 2.66) GEM remote: https://rubygems.org/ @@ -125,7 +125,7 @@ GEM capistrano (~> 3.1) capistrano-bundler (>= 1.1, < 3) capistrano-shared_configs (0.2.2) - capybara (3.37.1) + capybara (3.38.0) addressable matrix mini_mime (>= 0.1.3) @@ -310,14 +310,14 @@ GEM rsolr (2.5.0) builder (>= 2.1.2) faraday (>= 0.9, < 3, != 2.0.0) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.1) + rspec-core (3.12.0) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.2) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) + rspec-support (~> 3.12.0) rspec-rails (6.0.1) actionpack (>= 6.1) activesupport (>= 6.1) @@ -326,8 +326,8 @@ GEM rspec-expectations (~> 3.11) rspec-mocks (~> 3.11) rspec-support (~> 3.11) - rspec-support (3.11.1) - rubocop (1.37.1) + rspec-support (3.12.0) + rubocop (1.38.0) json (~> 2.3) parallel (~> 1.10) parser (>= 3.1.2.1) @@ -339,17 +339,17 @@ GEM unicode-display_width (>= 1.4.0, < 3.0) rubocop-ast (1.23.0) parser (>= 3.1.1.0) - rubocop-rails (2.17.1) + rubocop-rails (2.17.2) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) - rubocop-rspec (2.14.2) + rubocop-rspec (2.15.0) rubocop (~> 1.33) ruby-progressbar (1.11.0) ruby2_keywords (0.0.5) rubyzip (2.3.2) scrub_rb (1.0.1) - selenium-webdriver (4.5.0) + selenium-webdriver (4.6.1) childprocess (>= 0.5, < 5.0) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) @@ -365,7 +365,7 @@ GEM sshkit (1.21.3) net-scp (>= 1.1.2) net-ssh (>= 2.8.0) - stimulus-rails (1.1.0) + stimulus-rails (1.1.1) railties (>= 6.0.0) thor (1.2.1) timeout (0.3.0) @@ -395,7 +395,7 @@ GEM unf_ext unf_ext (0.0.8.2) unicode-display_width (2.3.0) - view_component (2.74.1) + view_component (2.75.0) activesupport (>= 5.0.0, < 8.0) concurrent-ruby (~> 1.0) method_source (~> 1.0) diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index cd8b68ee..08639c06 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -6,6 +6,8 @@ class CatalogController < ApplicationController # rubocop:disable Metrics/ClassL include Arclight::Catalog configure_blacklight do |config| + config.logo_link = 'https://library.stanford.edu/' + ## Class for sending and receiving requests from a search index # config.repository_class = Blacklight::Solr::Repository # diff --git a/config/locales/blacklight.en.yml b/config/locales/blacklight.en.yml index c6287db0..0bd7fb22 100644 --- a/config/locales/blacklight.en.yml +++ b/config/locales/blacklight.en.yml @@ -1,6 +1,6 @@ en: blacklight: - application_name: 'Taube Archive of the International Military Tribunal (IMT) at Nuremberg (1945-1946)' + application_name: Virtual Tribunals search: facets: title: Find items by… \ No newline at end of file diff --git a/spec/requests/home_page_spec.rb b/spec/requests/home_page_spec.rb index de72e606..2b7c6104 100644 --- a/spec/requests/home_page_spec.rb +++ b/spec/requests/home_page_spec.rb @@ -10,6 +10,11 @@ it "is a custom page that introduces the project" do get "/" expect(response).to have_http_status(:ok) + + # Header + expect(page).to have_link 'Virtual Tribunals', href: 'https://library.stanford.edu/' + + # Main expect(page).to have_text 'Content goes here' end end