Class: Arclight::SidebarComponent

Inherits:
Blacklight::Document::SidebarComponent
  • Object
show all
Defined in:
app/components/arclight/sidebar_component.rb

Overview

A sidebar with collection context widget and tools

Instance Method Summary collapse

Instance Method Details

#collection_contextObject



9
10
11
# File 'app/components/arclight/sidebar_component.rb', line 9

def collection_context
  render Arclight::CollectionContextComponent.new(presenter: document_presenter(document), download_component: Arclight::DocumentDownloadComponent)
end

#collection_sidebarObject



13
14
15
16
17
# File 'app/components/arclight/sidebar_component.rb', line 13

def collection_sidebar
  render Arclight::CollectionSidebarComponent.new(document: document,
                                                  collection_presenter: document_presenter(document.collection),
                                                  partials: blacklight_config.show.)
end