arclight 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/components/arclight/access_component.rb +1 -1
- data/app/components/arclight/breadcrumb_component.rb +16 -6
- data/app/components/arclight/breadcrumbs_hierarchy_component.rb +1 -1
- data/app/components/arclight/collection_context_component.rb +1 -1
- data/app/components/arclight/collection_info_component.rb +1 -1
- data/app/components/arclight/collection_sidebar_component.rb +1 -1
- data/app/components/arclight/document_components_hierarchy_component.rb +1 -1
- data/app/components/arclight/document_download_component.rb +1 -1
- data/app/components/arclight/embed_component.rb +2 -2
- data/app/components/arclight/expand_hierarchy_button_component.rb +1 -1
- data/app/components/arclight/metadata_section_component.rb +1 -1
- data/app/components/arclight/oembed_viewer_component.rb +1 -1
- data/app/components/arclight/online_content_filter_component.rb +1 -1
- data/app/components/arclight/online_status_indicator_component.rb +1 -1
- data/app/components/arclight/repository_breadcrumb_component.rb +1 -1
- data/lib/arclight/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f420e8cfdd2330f786efc0792a102163f114625752b77c32695c172217d66ce
|
|
4
|
+
data.tar.gz: b373b12a559f9fafadb8d0a0fb0e66e1691b81a91e989ecf23db5cf090f7ee27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15656150e9dcc4c27a871376c9a7f297fa44bc8f45b20354ec11f8320742c51531c968e662bf926b5fb7c3c5f514060fc6e1ed9ba142a51b31b9febef501e573
|
|
7
|
+
data.tar.gz: 0fb9df78502d8e33a5dd4ca59117ca82ccfe770e0c6c9caac785c9d311ee3d12db88201e061a9ed9a33678276ec2cb1e75c011c29640e0219f87d99359874ce0
|
|
@@ -8,16 +8,12 @@ module Arclight
|
|
|
8
8
|
@document = document
|
|
9
9
|
@count = count
|
|
10
10
|
@offset = offset
|
|
11
|
-
super
|
|
11
|
+
super()
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def call
|
|
15
|
-
|
|
15
|
+
return unless breadcrumb_links.any?
|
|
16
16
|
|
|
17
|
-
if @count && breadcrumb_links.length > @count
|
|
18
|
-
breadcrumb_links = breadcrumb_links.first(@count)
|
|
19
|
-
breadcrumb_links << tag.li('…'.html_safe, class: 'breadcrumb-item')
|
|
20
|
-
end
|
|
21
17
|
tag.ol class: 'breadcrumb' do
|
|
22
18
|
safe_join(breadcrumb_links)
|
|
23
19
|
end
|
|
@@ -36,5 +32,19 @@ module Arclight
|
|
|
36
32
|
def build_repository_link
|
|
37
33
|
render Arclight::RepositoryBreadcrumbComponent.new(document: @document)
|
|
38
34
|
end
|
|
35
|
+
|
|
36
|
+
private
|
|
37
|
+
|
|
38
|
+
def breadcrumb_links
|
|
39
|
+
@breadcrumb_links ||= limit_breadcrumb_links(components.drop(@offset))
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def limit_breadcrumb_links(links)
|
|
43
|
+
return links unless @count && links.length > @count
|
|
44
|
+
|
|
45
|
+
limited_links = links.first(@count)
|
|
46
|
+
limited_links << tag.li('…'.html_safe, class: 'breadcrumb-item')
|
|
47
|
+
limited_links
|
|
48
|
+
end
|
|
39
49
|
end
|
|
40
50
|
end
|
|
@@ -4,7 +4,7 @@ module Arclight
|
|
|
4
4
|
# Render various actions for a collection (e.g. requesting, download links, etc)
|
|
5
5
|
class CollectionContextComponent < ViewComponent::Base
|
|
6
6
|
def initialize(presenter:, download_component:)
|
|
7
|
-
super
|
|
7
|
+
super()
|
|
8
8
|
|
|
9
9
|
@collection = presenter.document.collection
|
|
10
10
|
@download_component = download_component
|
|
@@ -6,7 +6,7 @@ module Arclight
|
|
|
6
6
|
class DocumentComponentsHierarchyComponent < ViewComponent::Base
|
|
7
7
|
# rubocop:disable Metrics/ParameterLists
|
|
8
8
|
def initialize(document: nil, target_index: -1, minimum_pagination_size: 20, left_outer_window: 3, maximum_left_gap: 10, window: 10)
|
|
9
|
-
super
|
|
9
|
+
super()
|
|
10
10
|
|
|
11
11
|
@document = document
|
|
12
12
|
@target_index = target_index&.to_i || -1
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module Arclight
|
|
4
4
|
# Render digital object links for a document
|
|
5
5
|
class EmbedComponent < ViewComponent::Base
|
|
6
|
-
def initialize(document:, presenter:, **kwargs)
|
|
7
|
-
super
|
|
6
|
+
def initialize(document:, presenter:, **kwargs) # rubocop:disable Lint/UnusedMethodArgument
|
|
7
|
+
super()
|
|
8
8
|
|
|
9
9
|
@document = document
|
|
10
10
|
@presenter = presenter
|
|
@@ -4,7 +4,7 @@ module Arclight
|
|
|
4
4
|
# Component for rendering an expand button in the hierarchy view
|
|
5
5
|
class ExpandHierarchyButtonComponent < Blacklight::Component
|
|
6
6
|
def initialize(path:, classes: 'btn btn-secondary btn-sm')
|
|
7
|
-
super
|
|
7
|
+
super()
|
|
8
8
|
@path = path
|
|
9
9
|
@classes = classes
|
|
10
10
|
end
|
data/lib/arclight/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: arclight
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Darren Hardy
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: exe
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2025-
|
|
14
|
+
date: 2025-08-11 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: blacklight
|