blacklight 7.12.1 → 7.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/VERSION +1 -1
- data/app/components/blacklight/constraints_component.rb +7 -5
- data/app/components/blacklight/document_component.html.erb +1 -0
- data/app/components/blacklight/document_component.rb +14 -1
- data/app/components/blacklight/facet_field_component.html.erb +1 -0
- data/app/controllers/concerns/blacklight/search_context.rb +1 -1
- data/app/controllers/concerns/blacklight/searchable.rb +1 -1
- data/app/helpers/blacklight/configuration_helper_behavior.rb +3 -9
- data/app/helpers/blacklight/facets_helper_behavior.rb +8 -2
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +7 -5
- data/app/presenters/blacklight/document_presenter.rb +4 -0
- data/app/presenters/blacklight/facet_item_presenter.rb +6 -2
- data/app/presenters/blacklight/index_presenter.rb +2 -2
- data/app/presenters/blacklight/rendering/link_to_facet.rb +3 -1
- data/app/presenters/blacklight/show_presenter.rb +0 -4
- data/app/services/blacklight/search_service.rb +13 -11
- data/app/views/catalog/_search_form.html.erb +1 -1
- data/app/views/catalog/index.json.jbuilder +3 -1
- data/lib/blacklight/configuration/facet_field.rb +7 -0
- data/lib/blacklight/configuration/search_field.rb +5 -0
- data/lib/blacklight/configuration/tool_config.rb +4 -0
- data/lib/blacklight/configuration/view_config.rb +12 -0
- data/lib/blacklight/nested_open_struct_with_hash_access.rb +1 -1
- data/lib/blacklight/search_builder.rb +13 -23
- data/lib/blacklight/search_state.rb +82 -70
- data/lib/blacklight/search_state/filter_field.rb +122 -0
- data/lib/blacklight/solr/search_builder_behavior.rb +71 -51
- data/package.json +4 -0
- data/spec/components/blacklight/document_component_spec.rb +15 -0
- data/spec/features/search_spec.rb +0 -5
- data/spec/helpers/blacklight/configuration_helper_behavior_spec.rb +1 -2
- data/spec/lib/blacklight/configuration/view_config_spec.rb +15 -0
- data/spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb +9 -0
- data/spec/lib/blacklight/search_state/filter_field_spec.rb +125 -0
- data/spec/lib/blacklight/search_state_spec.rb +132 -3
- data/spec/models/blacklight/configuration_spec.rb +8 -0
- data/spec/models/blacklight/solr/search_builder_spec.rb +32 -2
- metadata +7 -3
- data/.npmignore +0 -23
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: 7.
|
4
|
+
version: 7.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,7 +17,7 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: exe
|
19
19
|
cert_chain: []
|
20
|
-
date: 2020-10-
|
20
|
+
date: 2020-10-24 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -342,7 +342,6 @@ files:
|
|
342
342
|
- ".gitignore"
|
343
343
|
- ".hound.yml"
|
344
344
|
- ".jshintrc"
|
345
|
-
- ".npmignore"
|
346
345
|
- ".rspec"
|
347
346
|
- ".rubocop.yml"
|
348
347
|
- ".rubocop_todo.yml"
|
@@ -653,6 +652,7 @@ files:
|
|
653
652
|
- lib/blacklight/runtime_registry.rb
|
654
653
|
- lib/blacklight/search_builder.rb
|
655
654
|
- lib/blacklight/search_state.rb
|
655
|
+
- lib/blacklight/search_state/filter_field.rb
|
656
656
|
- lib/blacklight/solr.rb
|
657
657
|
- lib/blacklight/solr/document.rb
|
658
658
|
- lib/blacklight/solr/facet_paginator.rb
|
@@ -756,9 +756,11 @@ files:
|
|
756
756
|
- spec/integration/generators/blacklight/solr_generator_spec.rb
|
757
757
|
- spec/lib/blacklight/configuration/facet_field_spec.rb
|
758
758
|
- spec/lib/blacklight/configuration/field_spec.rb
|
759
|
+
- spec/lib/blacklight/configuration/view_config_spec.rb
|
759
760
|
- spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb
|
760
761
|
- spec/lib/blacklight/open_struct_with_hash_access_spec.rb
|
761
762
|
- spec/lib/blacklight/parameters_spec.rb
|
763
|
+
- spec/lib/blacklight/search_state/filter_field_spec.rb
|
762
764
|
- spec/lib/blacklight/search_state_spec.rb
|
763
765
|
- spec/lib/blacklight_spec.rb
|
764
766
|
- spec/lib/tasks/blacklight_task_spec.rb
|
@@ -919,9 +921,11 @@ test_files:
|
|
919
921
|
- spec/integration/generators/blacklight/solr_generator_spec.rb
|
920
922
|
- spec/lib/blacklight/configuration/facet_field_spec.rb
|
921
923
|
- spec/lib/blacklight/configuration/field_spec.rb
|
924
|
+
- spec/lib/blacklight/configuration/view_config_spec.rb
|
922
925
|
- spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb
|
923
926
|
- spec/lib/blacklight/open_struct_with_hash_access_spec.rb
|
924
927
|
- spec/lib/blacklight/parameters_spec.rb
|
928
|
+
- spec/lib/blacklight/search_state/filter_field_spec.rb
|
925
929
|
- spec/lib/blacklight/search_state_spec.rb
|
926
930
|
- spec/lib/blacklight_spec.rb
|
927
931
|
- spec/lib/tasks/blacklight_task_spec.rb
|
data/.npmignore
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
.*
|
2
|
-
Gemfile
|
3
|
-
Rakefile
|
4
|
-
Vagrantfile
|
5
|
-
app/assets/images
|
6
|
-
app/controllers
|
7
|
-
app/helpers
|
8
|
-
app/models
|
9
|
-
app/presenters
|
10
|
-
app/services
|
11
|
-
app/views
|
12
|
-
blacklight.gemspec
|
13
|
-
config/locales
|
14
|
-
config/routes.rb
|
15
|
-
coverage
|
16
|
-
db
|
17
|
-
lib
|
18
|
-
pkg
|
19
|
-
provision.sh
|
20
|
-
solr
|
21
|
-
spec
|
22
|
-
tasks
|
23
|
-
template.demo.rb
|