blacklight 8.12.1 → 8.12.3
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/VERSION +1 -1
- data/app/components/blacklight/document_component.rb +5 -3
- data/lib/blacklight/component.rb +2 -0
- data/lib/blacklight/search_state/pivot_filter_field.rb +1 -1
- data/package.json +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 911406654c24ea5e0cb9084aab69f094c86e33c0cfb385a5079aa9c579d889a7
|
|
4
|
+
data.tar.gz: 85e312a297fbb8223555f419fce59c9ed0c9a11a699fe756d84926760aab3b2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 573f5830c9d1399d8b56a9d1f5be59a28abd711df5e61b5030aa670870dd47954439e1602241104f37564cb6f13ab8356e8595fb64d556c73b5bebfc109ee481
|
|
7
|
+
data.tar.gz: 4174b408deb4945d0e40be79544e6761a63ebefbe70e0eccebf39bfa1ac58561a31b793e5fc6bc4543846dd2025a9e0ff529046434e692e7645f7aa0827528e6
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.12.
|
|
1
|
+
8.12.3
|
|
@@ -94,10 +94,11 @@ module Blacklight
|
|
|
94
94
|
def initialize(document: nil, presenter: nil, partials: nil,
|
|
95
95
|
id: nil, classes: [], component: :article, title_component: nil,
|
|
96
96
|
counter: nil, document_counter: nil, counter_offset: 0,
|
|
97
|
-
show: false)
|
|
97
|
+
show: false, **args)
|
|
98
98
|
Blacklight.deprecation.warn('the `presenter` argument to DocumentComponent#initialize is deprecated; pass the `presenter` in as document instead') if presenter
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
# .collection_parameter only works in view_component3, and functionality removed in BL9
|
|
101
|
+
@presenter = presenter || document || (self.class.respond_to?(:collection_parameter) && args[self.class.collection_parameter])
|
|
101
102
|
@document = @presenter.document
|
|
102
103
|
@view_partials = partials || []
|
|
103
104
|
|
|
@@ -107,7 +108,8 @@ module Blacklight
|
|
|
107
108
|
@classes = classes
|
|
108
109
|
|
|
109
110
|
@counter = counter
|
|
110
|
-
|
|
111
|
+
# .collection_parameter only works in view_component3, and functionality removed in BL9
|
|
112
|
+
@document_counter = document_counter || (self.class.respond_to?(:collection_counter_parameter) && args.fetch(self.class.collection_counter_parameter, nil))
|
|
111
113
|
@counter ||= @document_counter + COLLECTION_INDEX_OFFSET + counter_offset if @document_counter.present?
|
|
112
114
|
|
|
113
115
|
@show = show
|
data/lib/blacklight/component.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blacklight
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.12.
|
|
4
|
+
version: 8.12.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Rochkind
|
|
@@ -14,10 +14,9 @@ authors:
|
|
|
14
14
|
- Dan Funk
|
|
15
15
|
- Naomi Dushay
|
|
16
16
|
- Justin Coyne
|
|
17
|
-
autorequire:
|
|
18
17
|
bindir: exe
|
|
19
18
|
cert_chain: []
|
|
20
|
-
date:
|
|
19
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
21
20
|
dependencies:
|
|
22
21
|
- !ruby/object:Gem::Dependency
|
|
23
22
|
name: rails
|
|
@@ -1012,7 +1011,6 @@ homepage: http://projectblacklight.org/
|
|
|
1012
1011
|
licenses:
|
|
1013
1012
|
- Apache 2.0
|
|
1014
1013
|
metadata: {}
|
|
1015
|
-
post_install_message:
|
|
1016
1014
|
rdoc_options: []
|
|
1017
1015
|
require_paths:
|
|
1018
1016
|
- lib
|
|
@@ -1027,8 +1025,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1027
1025
|
- !ruby/object:Gem::Version
|
|
1028
1026
|
version: '0'
|
|
1029
1027
|
requirements: []
|
|
1030
|
-
rubygems_version: 3.
|
|
1031
|
-
signing_key:
|
|
1028
|
+
rubygems_version: 3.6.9
|
|
1032
1029
|
specification_version: 4
|
|
1033
1030
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
|
1034
1031
|
index.
|