diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js index b1e5d7f03..649165f04 100644 --- a/app/assets/config/manifest.js +++ b/app/assets/config/manifest.js @@ -1,6 +1,5 @@ //= link_tree ../images //= link application.js //= link application.css -//= link application_parker.css //= link openseadragon-assets.js //= link spotlight/manifest.js diff --git a/app/assets/stylesheets/application_parker.scss b/app/assets/stylesheets/application_parker.scss deleted file mode 100644 index 179f20041..000000000 --- a/app/assets/stylesheets/application_parker.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "base"; -@import "modules/parker"; diff --git a/app/assets/stylesheets/modules/parker.scss b/app/assets/stylesheets/modules/parker.scss deleted file mode 100644 index c68f7ab47..000000000 --- a/app/assets/stylesheets/modules/parker.scss +++ /dev/null @@ -1,16 +0,0 @@ -body, -.img-thumbnail { - background-color: $fog-light; -} - -// Hide PURL link beneath the IIIF viewer -.purl-link { - display: none; -} - -.view-metadata { - dt[title='Contents'], - dt[title='Contents'] + dd { - display: none; - } -} diff --git a/config/settings.yml b/config/settings.yml index ec17c7237..766658c10 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -1,22 +1,22 @@ superadmin_workgroups: - dlss:exhibits-admin default_contact_email: exhibits-feedback@lists.stanford.edu -geonames_username: '' +geonames_username: "" stacks: - iiif_url: 'https://stacks.stanford.edu/image/iiif' - file_url: 'https://stacks.stanford.edu/file' + iiif_url: "https://stacks.stanford.edu/image/iiif" + file_url: "https://stacks.stanford.edu/file" -GOOGLE_SITE_VERIFICATION: '654321sitever' +GOOGLE_SITE_VERIFICATION: "654321sitever" # Google Analytics will report in debug mode by default. # in shared_configs for exhibits-prod, we set this value to false. analytics_debug: true purl: - url: 'https://purl.stanford.edu/%{druid}' - uat_url: 'https://sul-purl-uat.stanford.edu/%{druid}' - iiif_manifest_url: 'https://purl.stanford.edu/%{druid}/iiif/manifest' + url: "https://purl.stanford.edu/%{druid}" + uat_url: "https://sul-purl-uat.stanford.edu/%{druid}" + iiif_manifest_url: "https://purl.stanford.edu/%{druid}/iiif/manifest" sidekiq: - logger_level: 'Logger::INFO' # The default from Sidekiq + logger_level: "Logger::INFO" # The default from Sidekiq feature_flags: themes: false bibliography_resource: false @@ -44,14 +44,11 @@ nondiscoverable_exhibit_slugs: - exhibits-documentation exhibit_themes: - parker: - - default - - parker default: - default purl_fetcher: - url: 'https://purl-fetcher-url.example.com' + url: "https://purl-fetcher-url.example.com" full_text_highlight: fields: @@ -62,8 +59,8 @@ full_text_highlight: snippet_count: 5 slack_notifications: - default_channel: '#spotlight-service-team' - api_token: 'your-api-token-here' + default_channel: "#spotlight-service-team" + api_token: "your-api-token-here" index_status_threshold: 10 async_javascript: false sidekiq_retry_queue_threshold: 100 diff --git a/spec/features/viewers_spec.rb b/spec/features/viewers_spec.rb index 89f91ee96..5c712250b 100644 --- a/spec/features/viewers_spec.rb +++ b/spec/features/viewers_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe 'Viewers' do +RSpec.describe 'Viewers' do include JavascriptFeatureHelpers let(:exhibit) { create(:exhibit, slug: 'default-exhibit') } let(:user) { nil } @@ -121,19 +121,5 @@ expect(page).to have_css('a', text: %r{^purl\.stanford\.edu/hj066rn6500}) end - - context 'Parker Theme' do - before do - allow(Settings).to receive(:exhibit_themes).and_return(exhibit.slug => %w(parker default)) - exhibit.theme = 'parker' - exhibit.save! - end - - it 'hides the PURL link', js: true do - visit spotlight.exhibit_solr_document_path(exhibit, 'hj066rn6500') - - expect(page).not_to have_css('.purl-link', visible: :visible) - end - end end end