Class: Arclight::GroupComponent
- Inherits:
-
Blacklight::Document::GroupComponent
- Object
- Blacklight::Document::GroupComponent
- Arclight::GroupComponent
- Defined in:
- app/components/arclight/group_component.rb
Overview
Render a collection document for a grouped search result view
Instance Method Summary collapse
Instance Method Details
#compact? ⇒ Boolean
7 8 9 |
# File 'app/components/arclight/group_component.rb', line 7 def compact? helpers.document_index_view_type.to_s == 'compact' end |
#document ⇒ Object
11 12 13 |
# File 'app/components/arclight/group_component.rb', line 11 def document @document ||= @group.docs.first.collection end |
#presenter ⇒ Object
15 16 17 |
# File 'app/components/arclight/group_component.rb', line 15 def presenter @presenter ||= Arclight::ShowPresenter.new(document, helpers).with_field_group('group_header_field') end |
#search_within_collection_url ⇒ Object
19 20 21 |
# File 'app/components/arclight/group_component.rb', line 19 def search_within_collection_url search_catalog_path(helpers.search_without_group.deep_merge(f: { collection: [document.collection_name] })) end |