Skip to content

Commit

Permalink
Merge pull request #2698 from sul-dlss/remove-parker
Browse files Browse the repository at this point in the history
Remove unused parker stylesheet
  • Loading branch information
corylown authored Dec 11, 2024
2 parents e077f34 + 6a15bae commit 9d37dc9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 48 deletions.
1 change: 0 additions & 1 deletion app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions app/assets/stylesheets/application_parker.scss

This file was deleted.

16 changes: 0 additions & 16 deletions app/assets/stylesheets/modules/parker.scss

This file was deleted.

25 changes: 11 additions & 14 deletions config/settings.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
superadmin_workgroups:
- dlss:exhibits-admin
default_contact_email: [email protected]
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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
16 changes: 1 addition & 15 deletions spec/features/viewers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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

0 comments on commit 9d37dc9

Please sign in to comment.