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.
@@ -79,13 +79,16 @@ module Spotlight
79
79
  end
80
80
 
81
81
  def search_params
82
- search_service.search_builder.with((query_params || {}).with_indifferent_access).merge(facet: false)
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
- base_query = Blacklight::SearchState.new((query_params || {}), blacklight_config)
87
- user_query = Blacklight::SearchState.new(params, blacklight_config).to_h
88
- base_query.params_for_search(user_query).merge(user_query.slice(:page))
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotlight
4
- VERSION = '4.3.0'
4
+ VERSION = '4.3.1'
5
5
  end
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.0
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.4.19
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