Skip to content

Commit

Permalink
Merge pull request #1147 from sul-dlss/bl8-sidebar-fix
Browse files Browse the repository at this point in the history
move sidebar to document
  • Loading branch information
thatbudakguy authored Aug 9, 2024
2 parents d1242e5 + 1dc958e commit 2c65b10
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/geoblacklight/geoblacklight.git
revision: 01961a094e557b02a7cab330750c1cf9fe6d774e
revision: 0d00b850e58e8ab92f5db97166563bb83afa3ea3
branch: main
specs:
geoblacklight (4.4.0)
Expand Down
16 changes: 16 additions & 0 deletions app/components/earthworks/document/sidebar_component.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

module Earthworks
# Render the sidebar on the show view
module Document
class SidebarComponent < Geoblacklight::Document::SidebarComponent
def components
[
Geoblacklight::LoginLinkComponent.new(document: document),
Geoblacklight::StaticMapComponent.new(document: document),
Earthworks::DownloadLinksComponent.new(document: document)
]
end
end
end
end
14 changes: 0 additions & 14 deletions app/components/earthworks/sidebar_component.rb

This file was deleted.

2 changes: 1 addition & 1 deletion app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CatalogController < ApplicationController
config.show.partials << 'show_default_viewer_information'
config.show.partials << 'show_default_canonical_link'
config.show.partials << :show
config.show.sidebar_component = Earthworks::SidebarComponent
config.show.sidebar_component = Earthworks::Document::SidebarComponent
config.header_component = Geoblacklight::HeaderComponent

# solr fields that will be treated as facets by the blacklight application
Expand Down

0 comments on commit 2c65b10

Please # to comment.