blacklight_advanced_search 6.3.0 → 6.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33b94befa971635c4bd30d04c7815456b0034f06
4
- data.tar.gz: 067174a8dcfca40bba99bf800d7298f121a13890
3
+ metadata.gz: 8156e789ee66f1e0ea1d36b6b41911ed857d3102
4
+ data.tar.gz: 810a801b6979eeb1567b734dba238d5adfb238c0
5
5
  SHA512:
6
- metadata.gz: 499300f4afbac09f41dc8f6f8d7347d3dcd797a1cf6939e561d620edbf5a54f7ef938325ee7031c038be7c5b1c99e3d8ebc62e99e19edf4eb023cc20822a7c70
7
- data.tar.gz: cd024418479b6607098a2ffb3b96cb16d3333abdf12ff192ad81a9166838ee2b5fadf6857c7ef95912d4593e560fa8e39b0577cbe8831c81da98634072160e78
6
+ metadata.gz: 5445c21147710a2e6f4e278842735fcd5e57e3161434808a713a238f672ad0a239682cdd84fe3480ac6a9f2865cf7bcfce2a3ac74331e54d97229484fd144e75
7
+ data.tar.gz: 9573952d47629c2d9cd4e95fc273be2d7916037fa3d8d3c87da036186de49104b0ae5d05141813a830d26867acc0664476282fd8a277e6f2fa8f8d5cc2a17ef7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.3.0
1
+ 6.3.1
@@ -5,7 +5,7 @@ module BlacklightAdvancedSearch
5
5
  include Blacklight::SearchFields
6
6
 
7
7
  def is_advanced_search?
8
- (blacklight_params[:search_field] == self.blacklight_config.advanced_search[:url_key]) || blacklight_params[:f_inclusive]
8
+ (self.blacklight_config.advanced_search && blacklight_params[:search_field] == self.blacklight_config.advanced_search[:url_key]) || blacklight_params[:f_inclusive]
9
9
  end
10
10
 
11
11
  # this method should get added into the processor chain
@@ -23,6 +23,18 @@ describe BlacklightAdvancedSearch::AdvancedSearchBuilder do
23
23
  BACTestClass.new blacklight_config, params
24
24
  end
25
25
 
26
+ let(:params) { {} }
27
+
28
+ describe '#is_advanced_search?' do
29
+ context 'without the advanced search plugin configured' do
30
+ let(:blacklight_config) { Blacklight::Configuration.new }
31
+
32
+ it 'is false' do
33
+ expect(obj.is_advanced_search?).to be_falsey
34
+ end
35
+ end
36
+ end
37
+
26
38
  context "with basic functionality" do
27
39
  let(:solr_params) { {} }
28
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_advanced_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.0
4
+ version: 6.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-13 00:00:00.000000000 Z
12
+ date: 2017-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight