blacklight-spotlight 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spotlight/spotlight.esm.js +1 -1
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/models/spotlight/search.rb +7 -4
- data/lib/spotlight/version.rb +1 -1
- metadata +2 -2
@@ -79,13 +79,16 @@ module Spotlight
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def search_params
|
82
|
-
search_service.search_builder.with(
|
82
|
+
search_service.search_builder.with(base_search_state).merge(facet: false)
|
83
83
|
end
|
84
84
|
|
85
85
|
def merge_params_for_search(params, blacklight_config)
|
86
|
-
|
87
|
-
user_query
|
88
|
-
|
86
|
+
user_query = Blacklight::SearchState.new(params, blacklight_config, nil).to_h
|
87
|
+
base_search_state.params_for_search(user_query).merge(user_query.slice(:page))
|
88
|
+
end
|
89
|
+
|
90
|
+
def base_search_state
|
91
|
+
Blacklight::SearchState.new((query_params || {}).with_indifferent_access, blacklight_config, nil)
|
89
92
|
end
|
90
93
|
|
91
94
|
private
|
data/lib/spotlight/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-spotlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -1586,7 +1586,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1586
1586
|
- !ruby/object:Gem::Version
|
1587
1587
|
version: '0'
|
1588
1588
|
requirements: []
|
1589
|
-
rubygems_version: 3.
|
1589
|
+
rubygems_version: 3.5.9
|
1590
1590
|
signing_key:
|
1591
1591
|
specification_version: 4
|
1592
1592
|
summary: Enable librarians, curators, and others who are responsible for digital collections
|