blacklight 9.0.0 → 9.2.0
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/.env +3 -3
- data/.github/matrix.json +12 -18
- data/.github/workflows/build.yml +1 -1
- data/.github/workflows/lint.yml +2 -2
- data/.github/workflows/test.yml +6 -5
- data/.rubocop.yml +72 -7
- data/.rubocop_todo.yml +142 -268
- data/Gemfile +1 -1
- data/README.md +2 -9
- data/VERSION +1 -1
- data/app/assets/builds/blacklight.css +37 -23
- data/app/assets/images/blacklight/logo-dark.svg +184 -0
- data/app/assets/images/blacklight/logo.svg +184 -0
- data/app/assets/javascripts/blacklight/blacklight.esm.js +128 -45
- data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
- data/app/assets/javascripts/blacklight/blacklight.js +128 -45
- data/app/assets/javascripts/blacklight/blacklight.js.map +1 -1
- data/app/assets/stylesheets/blacklight/_balanced_list.scss +1 -1
- data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +17 -0
- data/app/assets/stylesheets/blacklight/_constraints.scss +2 -2
- data/app/assets/stylesheets/blacklight/_facets.scss +14 -10
- data/app/assets/stylesheets/blacklight/_header.scss +0 -4
- data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +5 -9
- data/app/components/blacklight/facets/inclusive_constraint_component.html.erb +1 -1
- data/app/components/blacklight/icons/checkmark_component.rb +16 -0
- data/app/components/blacklight/icons/circle_half_component.rb +16 -0
- data/app/components/blacklight/icons/moon_stars_component.rb +17 -0
- data/app/components/blacklight/icons/sun_component.rb +16 -0
- data/app/components/blacklight/metadata_field_component.rb +3 -3
- data/app/components/blacklight/search_navbar_component.html.erb +1 -1
- data/app/components/blacklight/theme_switcher_component.html.erb +31 -0
- data/app/components/blacklight/theme_switcher_component.rb +6 -0
- data/app/components/blacklight/top_navbar_component.html.erb +1 -1
- data/app/controllers/concerns/blacklight/bookmarks.rb +8 -14
- data/app/controllers/concerns/blacklight/catalog.rb +9 -10
- data/app/controllers/concerns/blacklight/controller.rb +54 -11
- data/app/controllers/concerns/blacklight/controller_runtime.rb +42 -0
- data/app/controllers/concerns/blacklight/guest_user.rb +51 -0
- data/app/controllers/concerns/blacklight/search_context.rb +1 -1
- data/app/controllers/concerns/blacklight/search_history.rb +3 -1
- data/app/controllers/concerns/blacklight/searchable.rb +18 -0
- data/app/helpers/blacklight/layout_helper_behavior.rb +7 -0
- data/app/javascript/blacklight-frontend/color_theme_switcher.js +85 -0
- data/app/javascript/blacklight-frontend/index.js +2 -0
- data/app/models/concerns/blacklight/document/dublin_core.rb +2 -2
- data/app/models/concerns/blacklight/document.rb +1 -1
- data/app/models/concerns/blacklight/user.rb +36 -0
- data/app/presenters/blacklight/field_presenter.rb +1 -1
- data/app/presenters/blacklight/rendering/microdata.rb +1 -0
- data/app/services/blacklight/bookmarks_search_builder.rb +4 -4
- data/app/services/blacklight/search_service.rb +46 -33
- data/app/values/blacklight/types.rb +1 -1
- data/app/views/catalog/_email_form.html.erb +3 -3
- data/app/views/catalog/_home_text.html.erb +1 -1
- data/app/views/catalog/_sms_form.html.erb +4 -4
- data/app/views/catalog/index.rss.builder +4 -4
- data/app/views/catalog/opensearch.json.jbuilder +3 -0
- data/app/views/catalog/opensearch.xml.builder +2 -2
- data/app/views/layouts/blacklight/base.html.erb +13 -1
- data/app/views/shared/_user_util_links.html.erb +18 -5
- data/blacklight.gemspec +3 -3
- data/config/locales/blacklight.ar.yml +5 -0
- data/config/locales/blacklight.ca.yml +5 -0
- data/config/locales/blacklight.de.yml +6 -2
- data/config/locales/blacklight.en.yml +5 -0
- data/config/locales/blacklight.es.yml +5 -0
- data/config/locales/blacklight.fr.yml +5 -0
- data/config/locales/blacklight.hu.yml +5 -0
- data/config/locales/blacklight.it.yml +6 -2
- data/config/locales/blacklight.nl.yml +5 -0
- data/config/locales/blacklight.pt-BR.yml +6 -2
- data/config/locales/blacklight.sq.yml +5 -0
- data/config/locales/blacklight.zh.yml +5 -0
- data/lib/blacklight/abstract_repository.rb +2 -0
- data/lib/blacklight/component.rb +1 -1
- data/lib/blacklight/configuration/action_config_map_entry.rb +31 -0
- data/lib/blacklight/configuration/display_field.rb +1 -0
- data/lib/blacklight/configuration/field.rb +6 -6
- data/lib/blacklight/configuration/fields.rb +1 -1
- data/lib/blacklight/configuration/sort_field.rb +2 -2
- data/lib/blacklight/configuration.rb +30 -19
- data/lib/blacklight/engine.rb +9 -0
- data/lib/blacklight/log_subscriber.rb +25 -0
- data/lib/blacklight/parameters.rb +1 -1
- data/lib/blacklight/runtime_registry.rb +24 -0
- data/lib/blacklight/search_builder.rb +60 -20
- data/lib/blacklight/search_state.rb +4 -0
- data/lib/blacklight/solr/repository.rb +15 -10
- data/lib/blacklight/solr/request.rb +8 -1
- data/lib/blacklight/solr/response/group_response.rb +1 -1
- data/lib/blacklight/solr/response/spelling.rb +8 -8
- data/lib/blacklight/solr/response.rb +2 -21
- data/lib/blacklight/solr/search_builder_behavior.rb +3 -9
- data/lib/blacklight.rb +2 -2
- data/lib/generators/blacklight/assets/importmap_generator.rb +2 -2
- data/lib/generators/blacklight/assets_generator.rb +1 -1
- data/lib/generators/blacklight/controller_generator.rb +1 -1
- data/lib/generators/blacklight/document_generator.rb +1 -1
- data/lib/generators/blacklight/install_generator.rb +11 -4
- data/lib/generators/blacklight/models_generator.rb +1 -1
- data/lib/generators/blacklight/search_builder_generator.rb +1 -1
- data/lib/generators/blacklight/solr_generator.rb +1 -1
- data/lib/generators/blacklight/templates/catalog_controller.rb +20 -1
- data/lib/generators/blacklight/templates/solr/conf/schema.xml +264 -178
- data/lib/generators/blacklight/templates/solr/conf/solrconfig.xml +6 -14
- data/lib/generators/blacklight/test_support_generator.rb +1 -1
- data/lib/generators/blacklight/user_generator.rb +66 -5
- data/lib/railties/blacklight.rake +4 -4
- data/package.json +2 -2
- data/spec/components/blacklight/document/action_component_spec.rb +1 -1
- data/spec/components/blacklight/document/group_component_spec.rb +1 -1
- data/spec/components/blacklight/document_component_spec.rb +9 -9
- data/spec/components/blacklight/facet_component_spec.rb +2 -2
- data/spec/components/blacklight/facets/index_navigation_component_spec.rb +1 -2
- data/spec/components/blacklight/facets/list_component_spec.rb +1 -1
- data/spec/components/blacklight/facets/suggest_component_spec.rb +1 -2
- data/spec/components/blacklight/metadata_field_component_spec.rb +41 -0
- data/spec/components/blacklight/skip_link_component_spec.rb +2 -2
- data/spec/controllers/application_controller_spec.rb +94 -0
- data/spec/controllers/bookmarks_controller_spec.rb +18 -5
- data/spec/controllers/catalog_controller_spec.rb +7 -5
- data/spec/features/advanced_search_spec.rb +29 -16
- data/spec/features/alternate_controller_spec.rb +4 -4
- data/spec/features/axe_spec.rb +40 -22
- data/spec/features/bookmarks_spec.rb +13 -13
- data/spec/features/dark_mode_spec.rb +42 -0
- data/spec/features/did_you_mean_spec.rb +27 -27
- data/spec/features/facet_missing_spec.rb +3 -3
- data/spec/features/record_view_spec.rb +14 -14
- data/spec/features/search_context_spec.rb +8 -8
- data/spec/features/search_filters_spec.rb +16 -16
- data/spec/features/search_formats_spec.rb +2 -2
- data/spec/features/search_history_spec.rb +11 -11
- data/spec/features/search_pagination_spec.rb +31 -17
- data/spec/features/search_results_spec.rb +3 -3
- data/spec/features/search_sort_spec.rb +4 -4
- data/spec/features/search_spec.rb +20 -20
- data/spec/helpers/blacklight/url_helper_behavior_spec.rb +15 -15
- data/spec/helpers/blacklight_helper_spec.rb +1 -1
- data/spec/helpers/catalog_helper_spec.rb +7 -7
- data/spec/integration/generators/blacklight/user_generator_spec.rb +60 -0
- data/spec/lib/blacklight/runtime_registry_spec.rb +46 -0
- data/spec/lib/blacklight/search_state/pivot_filter_field_spec.rb +1 -1
- data/spec/models/blacklight/configurable_spec.rb +1 -1
- data/spec/models/blacklight/configuration_spec.rb +0 -19
- data/spec/models/blacklight/document/dublin_core_spec.rb +2 -2
- data/spec/models/blacklight/facet_paginator_spec.rb +1 -1
- data/spec/models/blacklight/search_builder_spec.rb +15 -3
- data/spec/models/blacklight/solr/repository_spec.rb +79 -2
- data/spec/models/blacklight/solr/search_builder_behavior_spec.rb +3 -5
- data/spec/models/blacklight/user_spec.rb +32 -5
- data/spec/models/bookmark_spec.rb +1 -1
- data/spec/models/record_mailer_spec.rb +8 -8
- data/spec/models/search_spec.rb +1 -1
- data/spec/models/solr_document_spec.rb +4 -0
- data/spec/presenters/blacklight/index_presenter_spec.rb +1 -0
- data/spec/presenters/blacklight/rendering/pipeline_spec.rb +1 -0
- data/spec/presenters/blacklight/show_presenter_spec.rb +1 -0
- data/spec/presenters/blacklight/thumbnail_presenter_spec.rb +1 -0
- data/spec/services/blacklight/search_service_spec.rb +7 -7
- data/spec/spec_helper.rb +3 -12
- data/spec/support/features/session_helpers.rb +13 -4
- data/spec/support/features/turbo_helpers.rb +14 -0
- data/spec/support/features.rb +2 -0
- data/spec/support/user_helpers.rb +24 -0
- data/spec/test_app_templates/Gemfile.extra +3 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- data/spec/views/catalog/_document.html.erb_spec.rb +4 -4
- data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +2 -2
- data/spec/views/catalog/_sort_and_per_page.html.erb_spec.rb +5 -5
- data/spec/views/catalog/index.html.erb_spec.rb +2 -2
- data/spec/views/catalog/show.html.erb_spec.rb +3 -4
- data/spec/views/shared/_user_util_links.html.erb_spec.rb +56 -0
- data/template.demo.rb +2 -1
- metadata +34 -22
- data/.hound.yml +0 -4
- data/.jshintrc +0 -22
- data/app/assets/images/blacklight/logo.png +0 -0
|
@@ -12,7 +12,7 @@ RSpec.describe "catalog/index.html.erb" do
|
|
|
12
12
|
it "renders the Search::SidebarComponent component" do
|
|
13
13
|
render
|
|
14
14
|
|
|
15
|
-
expect(sidebar).to
|
|
15
|
+
expect(sidebar).to include('Limit your search')
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
|
|
@@ -31,7 +31,7 @@ RSpec.describe "catalog/index.html.erb" do
|
|
|
31
31
|
|
|
32
32
|
it "renders the search_header partial" do
|
|
33
33
|
render
|
|
34
|
-
expect(rendered).to
|
|
34
|
+
expect(rendered).to include('sortAndPerPage')
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -9,7 +9,6 @@ RSpec.describe "catalog/show.html.erb" do
|
|
|
9
9
|
allow(presenter).to receive(:html_title).and_return('Heading')
|
|
10
10
|
allow(document).to receive(:more_like_this).and_return([])
|
|
11
11
|
allow(view).to receive_messages(has_user_authentication_provider?: false)
|
|
12
|
-
allow(view).to receive_messages(render_document_sidebar_partial: "Sidebar")
|
|
13
12
|
allow(view).to receive_messages(current_search_session: nil, search_session: {})
|
|
14
13
|
assign :document, document
|
|
15
14
|
allow(view).to receive_messages(document_presenter: presenter, action_name: 'show', blacklight_config: blacklight_config)
|
|
@@ -36,8 +35,8 @@ RSpec.describe "catalog/show.html.erb" do
|
|
|
36
35
|
stub_template "catalog/_b_default.html.erb" => "b_partial"
|
|
37
36
|
stub_template "catalog/_c_default.html.erb" => "c_partial"
|
|
38
37
|
render
|
|
39
|
-
expect(rendered).to
|
|
40
|
-
expect(rendered).to
|
|
41
|
-
expect(rendered).to
|
|
38
|
+
expect(rendered).to include('a_partial')
|
|
39
|
+
expect(rendered).to include('b_partial')
|
|
40
|
+
expect(rendered).to include('c_partial')
|
|
42
41
|
end
|
|
43
42
|
end
|
|
@@ -7,6 +7,10 @@ RSpec.describe "shared/_user_util_links" do
|
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
+
before do
|
|
11
|
+
allow(controller).to receive(:render_bookmarks_control?).and_return false
|
|
12
|
+
end
|
|
13
|
+
|
|
10
14
|
it "renders the correct bookmark count" do
|
|
11
15
|
count = rand(99)
|
|
12
16
|
allow(controller).to receive(:render_bookmarks_control?).and_return true
|
|
@@ -15,4 +19,56 @@ RSpec.describe "shared/_user_util_links" do
|
|
|
15
19
|
render "shared/user_util_links"
|
|
16
20
|
expect(rendered).to have_css('#bookmarks_nav span.badge[data-role=bookmark-counter]', text: count.to_s)
|
|
17
21
|
end
|
|
22
|
+
|
|
23
|
+
it "renders Rails authentication session links" do
|
|
24
|
+
user = instance_double(User, to_s: "xyz@example.com")
|
|
25
|
+
|
|
26
|
+
allow(view).to receive_messages(
|
|
27
|
+
blacklight_account_path: nil,
|
|
28
|
+
blacklight_config: blacklight_config,
|
|
29
|
+
blacklight_login_path: "/session/new",
|
|
30
|
+
blacklight_logout_link_options: { data: { turbo_method: :delete } },
|
|
31
|
+
blacklight_logout_path: "/session",
|
|
32
|
+
current_user: user,
|
|
33
|
+
has_user_authentication_provider?: true
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
render "shared/user_util_links"
|
|
37
|
+
|
|
38
|
+
expect(rendered).to have_link("Log Out", href: "/session")
|
|
39
|
+
expect(rendered).to have_css('a[data-turbo-method="delete"]', text: "Log Out")
|
|
40
|
+
expect(rendered).to have_no_link("xyz@example.com")
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
it "renders Devise-compatible session and registration links" do
|
|
44
|
+
user = instance_double(User, to_s: "xyz@example.com")
|
|
45
|
+
|
|
46
|
+
allow(view).to receive_messages(
|
|
47
|
+
blacklight_account_path: "/users/edit",
|
|
48
|
+
blacklight_config: blacklight_config,
|
|
49
|
+
blacklight_login_path: "/users/sign_in",
|
|
50
|
+
blacklight_logout_link_options: {},
|
|
51
|
+
blacklight_logout_path: "/users/sign_out",
|
|
52
|
+
current_user: user,
|
|
53
|
+
has_user_authentication_provider?: true
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
render "shared/user_util_links"
|
|
57
|
+
|
|
58
|
+
expect(rendered).to have_link("Log Out", href: "/users/sign_out")
|
|
59
|
+
expect(rendered).to have_link("xyz@example.com", href: "/users/edit")
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
it "renders a provider-neutral login link" do
|
|
63
|
+
allow(view).to receive_messages(
|
|
64
|
+
blacklight_config: blacklight_config,
|
|
65
|
+
blacklight_login_path: "/session/new",
|
|
66
|
+
current_user: nil,
|
|
67
|
+
has_user_authentication_provider?: true
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
render "shared/user_util_links"
|
|
71
|
+
|
|
72
|
+
expect(rendered).to have_link("Login", href: "/session/new")
|
|
73
|
+
end
|
|
18
74
|
end
|
data/template.demo.rb
CHANGED
|
@@ -4,7 +4,8 @@ gem 'blacklight', '>= 7.0'
|
|
|
4
4
|
|
|
5
5
|
after_bundle do
|
|
6
6
|
# run the blacklight install generator
|
|
7
|
-
|
|
7
|
+
default_authentication_option = Rails.gem_version >= Gem::Version.new('8.0.0') ? '--authentication' : '--devise'
|
|
8
|
+
options = ENV.fetch("BLACKLIGHT_INSTALL_OPTIONS", "#{default_authentication_option} --marc")
|
|
8
9
|
|
|
9
10
|
generate 'blacklight:install', options
|
|
10
11
|
|
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: 9.
|
|
4
|
+
version: 9.2.0
|
|
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
|
|
@@ -25,7 +24,7 @@ dependencies:
|
|
|
25
24
|
requirements:
|
|
26
25
|
- - ">="
|
|
27
26
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: '7.
|
|
27
|
+
version: '7.2'
|
|
29
28
|
- - "<"
|
|
30
29
|
- !ruby/object:Gem::Version
|
|
31
30
|
version: '9'
|
|
@@ -35,7 +34,7 @@ dependencies:
|
|
|
35
34
|
requirements:
|
|
36
35
|
- - ">="
|
|
37
36
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: '7.
|
|
37
|
+
version: '7.2'
|
|
39
38
|
- - "<"
|
|
40
39
|
- !ruby/object:Gem::Version
|
|
41
40
|
version: '9'
|
|
@@ -113,22 +112,16 @@ dependencies:
|
|
|
113
112
|
name: view_component
|
|
114
113
|
requirement: !ruby/object:Gem::Requirement
|
|
115
114
|
requirements:
|
|
116
|
-
- - "
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version: '3.0'
|
|
119
|
-
- - "<"
|
|
115
|
+
- - "~>"
|
|
120
116
|
- !ruby/object:Gem::Version
|
|
121
|
-
version: '
|
|
117
|
+
version: '4.0'
|
|
122
118
|
type: :runtime
|
|
123
119
|
prerelease: false
|
|
124
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
125
121
|
requirements:
|
|
126
|
-
- - "
|
|
127
|
-
- !ruby/object:Gem::Version
|
|
128
|
-
version: '3.0'
|
|
129
|
-
- - "<"
|
|
122
|
+
- - "~>"
|
|
130
123
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: '
|
|
124
|
+
version: '4.0'
|
|
132
125
|
- !ruby/object:Gem::Dependency
|
|
133
126
|
name: zeitwerk
|
|
134
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -425,8 +418,6 @@ files:
|
|
|
425
418
|
- ".github/workflows/release_8_x_scheduled.yml"
|
|
426
419
|
- ".github/workflows/test.yml"
|
|
427
420
|
- ".gitignore"
|
|
428
|
-
- ".hound.yml"
|
|
429
|
-
- ".jshintrc"
|
|
430
421
|
- ".rspec"
|
|
431
422
|
- ".rubocop.yml"
|
|
432
423
|
- ".rubocop_todo.yml"
|
|
@@ -440,7 +431,8 @@ files:
|
|
|
440
431
|
- VERSION
|
|
441
432
|
- app/assets/builds/blacklight.css
|
|
442
433
|
- app/assets/config/blacklight/manifest.js
|
|
443
|
-
- app/assets/images/blacklight/logo.
|
|
434
|
+
- app/assets/images/blacklight/logo-dark.svg
|
|
435
|
+
- app/assets/images/blacklight/logo.svg
|
|
444
436
|
- app/assets/images/favicon.ico
|
|
445
437
|
- app/assets/javascripts/blacklight/blacklight.esm.js
|
|
446
438
|
- app/assets/javascripts/blacklight/blacklight.esm.js.map
|
|
@@ -533,10 +525,14 @@ files:
|
|
|
533
525
|
- app/components/blacklight/header_component.rb
|
|
534
526
|
- app/components/blacklight/hidden_search_state_component.rb
|
|
535
527
|
- app/components/blacklight/icons/bookmark_icon_component.rb
|
|
528
|
+
- app/components/blacklight/icons/checkmark_component.rb
|
|
529
|
+
- app/components/blacklight/icons/circle_half_component.rb
|
|
536
530
|
- app/components/blacklight/icons/icon_component.rb
|
|
537
531
|
- app/components/blacklight/icons/list_component.rb
|
|
532
|
+
- app/components/blacklight/icons/moon_stars_component.rb
|
|
538
533
|
- app/components/blacklight/icons/remove_component.rb
|
|
539
534
|
- app/components/blacklight/icons/search_component.rb
|
|
535
|
+
- app/components/blacklight/icons/sun_component.rb
|
|
540
536
|
- app/components/blacklight/metadata_field_component.html.erb
|
|
541
537
|
- app/components/blacklight/metadata_field_component.rb
|
|
542
538
|
- app/components/blacklight/metadata_field_layout_component.html.erb
|
|
@@ -583,6 +579,8 @@ files:
|
|
|
583
579
|
- app/components/blacklight/system/flash_message_component.rb
|
|
584
580
|
- app/components/blacklight/system/modal_component.html.erb
|
|
585
581
|
- app/components/blacklight/system/modal_component.rb
|
|
582
|
+
- app/components/blacklight/theme_switcher_component.html.erb
|
|
583
|
+
- app/components/blacklight/theme_switcher_component.rb
|
|
586
584
|
- app/components/blacklight/top_navbar_component.html.erb
|
|
587
585
|
- app/components/blacklight/top_navbar_component.rb
|
|
588
586
|
- app/controllers/bookmarks_controller.rb
|
|
@@ -590,6 +588,8 @@ files:
|
|
|
590
588
|
- app/controllers/concerns/blacklight/bookmarks.rb
|
|
591
589
|
- app/controllers/concerns/blacklight/catalog.rb
|
|
592
590
|
- app/controllers/concerns/blacklight/controller.rb
|
|
591
|
+
- app/controllers/concerns/blacklight/controller_runtime.rb
|
|
592
|
+
- app/controllers/concerns/blacklight/guest_user.rb
|
|
593
593
|
- app/controllers/concerns/blacklight/search_context.rb
|
|
594
594
|
- app/controllers/concerns/blacklight/search_history.rb
|
|
595
595
|
- app/controllers/concerns/blacklight/searchable.rb
|
|
@@ -610,6 +610,7 @@ files:
|
|
|
610
610
|
- app/javascript/blacklight-frontend/bookmark_toggle.js
|
|
611
611
|
- app/javascript/blacklight-frontend/button_focus.js
|
|
612
612
|
- app/javascript/blacklight-frontend/checkbox_submit.js
|
|
613
|
+
- app/javascript/blacklight-frontend/color_theme_switcher.js
|
|
613
614
|
- app/javascript/blacklight-frontend/core.js
|
|
614
615
|
- app/javascript/blacklight-frontend/debounce.js
|
|
615
616
|
- app/javascript/blacklight-frontend/facet_suggest.js
|
|
@@ -709,6 +710,7 @@ files:
|
|
|
709
710
|
- app/views/catalog/index.html.erb
|
|
710
711
|
- app/views/catalog/index.json.jbuilder
|
|
711
712
|
- app/views/catalog/index.rss.builder
|
|
713
|
+
- app/views/catalog/opensearch.json.jbuilder
|
|
712
714
|
- app/views/catalog/opensearch.xml.builder
|
|
713
715
|
- app/views/catalog/send_email_record.erb
|
|
714
716
|
- app/views/catalog/show.html.erb
|
|
@@ -761,6 +763,7 @@ files:
|
|
|
761
763
|
- lib/blacklight/abstract_repository.rb
|
|
762
764
|
- lib/blacklight/component.rb
|
|
763
765
|
- lib/blacklight/configuration.rb
|
|
766
|
+
- lib/blacklight/configuration/action_config_map_entry.rb
|
|
764
767
|
- lib/blacklight/configuration/context.rb
|
|
765
768
|
- lib/blacklight/configuration/display_field.rb
|
|
766
769
|
- lib/blacklight/configuration/facet_field.rb
|
|
@@ -777,6 +780,7 @@ files:
|
|
|
777
780
|
- lib/blacklight/configuration/view_config.rb
|
|
778
781
|
- lib/blacklight/engine.rb
|
|
779
782
|
- lib/blacklight/exceptions.rb
|
|
783
|
+
- lib/blacklight/log_subscriber.rb
|
|
780
784
|
- lib/blacklight/nested_open_struct_with_hash_access.rb
|
|
781
785
|
- lib/blacklight/open_struct_with_hash_access.rb
|
|
782
786
|
- lib/blacklight/parameters.rb
|
|
@@ -893,6 +897,7 @@ files:
|
|
|
893
897
|
- spec/features/bookmarks_spec.rb
|
|
894
898
|
- spec/features/citation_spec.rb
|
|
895
899
|
- spec/features/component_template_override_spec.rb
|
|
900
|
+
- spec/features/dark_mode_spec.rb
|
|
896
901
|
- spec/features/did_you_mean_spec.rb
|
|
897
902
|
- spec/features/facet_missing_spec.rb
|
|
898
903
|
- spec/features/facets_spec.rb
|
|
@@ -919,6 +924,7 @@ files:
|
|
|
919
924
|
- spec/helpers/catalog_helper_spec.rb
|
|
920
925
|
- spec/i18n_spec.rb
|
|
921
926
|
- spec/integration/generators/blacklight/solr_generator_spec.rb
|
|
927
|
+
- spec/integration/generators/blacklight/user_generator_spec.rb
|
|
922
928
|
- spec/lib/blacklight/component_spec.rb
|
|
923
929
|
- spec/lib/blacklight/configuration/facet_field_spec.rb
|
|
924
930
|
- spec/lib/blacklight/configuration/field_spec.rb
|
|
@@ -927,6 +933,7 @@ files:
|
|
|
927
933
|
- spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb
|
|
928
934
|
- spec/lib/blacklight/open_struct_with_hash_access_spec.rb
|
|
929
935
|
- spec/lib/blacklight/parameters_spec.rb
|
|
936
|
+
- spec/lib/blacklight/runtime_registry_spec.rb
|
|
930
937
|
- spec/lib/blacklight/search_state/filter_field_spec.rb
|
|
931
938
|
- spec/lib/blacklight/search_state/pivot_filter_field_spec.rb
|
|
932
939
|
- spec/lib/blacklight/search_state_spec.rb
|
|
@@ -983,7 +990,9 @@ files:
|
|
|
983
990
|
- spec/support/features.rb
|
|
984
991
|
- spec/support/features/search_helpers.rb
|
|
985
992
|
- spec/support/features/session_helpers.rb
|
|
993
|
+
- spec/support/features/turbo_helpers.rb
|
|
986
994
|
- spec/support/presenter_test_helpers.rb
|
|
995
|
+
- spec/support/user_helpers.rb
|
|
987
996
|
- spec/support/view_component_test_helpers.rb
|
|
988
997
|
- spec/test_app_templates/Gemfile.extra
|
|
989
998
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
|
@@ -1010,7 +1019,6 @@ homepage: http://projectblacklight.org/
|
|
|
1010
1019
|
licenses:
|
|
1011
1020
|
- Apache 2.0
|
|
1012
1021
|
metadata: {}
|
|
1013
|
-
post_install_message:
|
|
1014
1022
|
rdoc_options: []
|
|
1015
1023
|
require_paths:
|
|
1016
1024
|
- lib
|
|
@@ -1018,15 +1026,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
1018
1026
|
requirements:
|
|
1019
1027
|
- - ">="
|
|
1020
1028
|
- !ruby/object:Gem::Version
|
|
1021
|
-
version: '3.
|
|
1029
|
+
version: '3.3'
|
|
1022
1030
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1023
1031
|
requirements:
|
|
1024
1032
|
- - ">="
|
|
1025
1033
|
- !ruby/object:Gem::Version
|
|
1026
1034
|
version: '0'
|
|
1027
1035
|
requirements: []
|
|
1028
|
-
rubygems_version:
|
|
1029
|
-
signing_key:
|
|
1036
|
+
rubygems_version: 4.0.15
|
|
1030
1037
|
specification_version: 4
|
|
1031
1038
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
|
1032
1039
|
index.
|
|
@@ -1077,6 +1084,7 @@ test_files:
|
|
|
1077
1084
|
- spec/features/bookmarks_spec.rb
|
|
1078
1085
|
- spec/features/citation_spec.rb
|
|
1079
1086
|
- spec/features/component_template_override_spec.rb
|
|
1087
|
+
- spec/features/dark_mode_spec.rb
|
|
1080
1088
|
- spec/features/did_you_mean_spec.rb
|
|
1081
1089
|
- spec/features/facet_missing_spec.rb
|
|
1082
1090
|
- spec/features/facets_spec.rb
|
|
@@ -1103,6 +1111,7 @@ test_files:
|
|
|
1103
1111
|
- spec/helpers/catalog_helper_spec.rb
|
|
1104
1112
|
- spec/i18n_spec.rb
|
|
1105
1113
|
- spec/integration/generators/blacklight/solr_generator_spec.rb
|
|
1114
|
+
- spec/integration/generators/blacklight/user_generator_spec.rb
|
|
1106
1115
|
- spec/lib/blacklight/component_spec.rb
|
|
1107
1116
|
- spec/lib/blacklight/configuration/facet_field_spec.rb
|
|
1108
1117
|
- spec/lib/blacklight/configuration/field_spec.rb
|
|
@@ -1111,6 +1120,7 @@ test_files:
|
|
|
1111
1120
|
- spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb
|
|
1112
1121
|
- spec/lib/blacklight/open_struct_with_hash_access_spec.rb
|
|
1113
1122
|
- spec/lib/blacklight/parameters_spec.rb
|
|
1123
|
+
- spec/lib/blacklight/runtime_registry_spec.rb
|
|
1114
1124
|
- spec/lib/blacklight/search_state/filter_field_spec.rb
|
|
1115
1125
|
- spec/lib/blacklight/search_state/pivot_filter_field_spec.rb
|
|
1116
1126
|
- spec/lib/blacklight/search_state_spec.rb
|
|
@@ -1167,7 +1177,9 @@ test_files:
|
|
|
1167
1177
|
- spec/support/features.rb
|
|
1168
1178
|
- spec/support/features/search_helpers.rb
|
|
1169
1179
|
- spec/support/features/session_helpers.rb
|
|
1180
|
+
- spec/support/features/turbo_helpers.rb
|
|
1170
1181
|
- spec/support/presenter_test_helpers.rb
|
|
1182
|
+
- spec/support/user_helpers.rb
|
|
1171
1183
|
- spec/support/view_component_test_helpers.rb
|
|
1172
1184
|
- spec/test_app_templates/Gemfile.extra
|
|
1173
1185
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
data/.hound.yml
DELETED
data/.jshintrc
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"asi": true,
|
|
3
|
-
"browser": true,
|
|
4
|
-
"jquery": true,
|
|
5
|
-
"node": true,
|
|
6
|
-
"esnext": true,
|
|
7
|
-
"camelcase": true,
|
|
8
|
-
"eqeqeq": true,
|
|
9
|
-
"indent": 2,
|
|
10
|
-
"latedef": true,
|
|
11
|
-
"maxlen": 80,
|
|
12
|
-
"newcap": true,
|
|
13
|
-
"quotmark": "single",
|
|
14
|
-
"strict": true,
|
|
15
|
-
"undef": true,
|
|
16
|
-
"unused": true,
|
|
17
|
-
"eqnull": true,
|
|
18
|
-
"predef": [
|
|
19
|
-
"Blacklight",
|
|
20
|
-
"Rails"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
Binary file
|