blacklight 8.2.2 → 8.4.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 +1 -1
- data/.github/workflows/ruby.yml +60 -62
- data/.rubocop.yml +229 -21
- data/.rubocop_todo.yml +22 -55
- data/Gemfile +2 -10
- data/README.md +2 -2
- data/VERSION +1 -1
- data/app/assets/javascripts/blacklight/blacklight.esm.js +5 -1
- data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
- data/app/assets/javascripts/blacklight/blacklight.js +5 -1
- 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/_bookmark.scss +30 -0
- data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +0 -4
- data/app/assets/stylesheets/blacklight/_constraints.scss +15 -9
- data/app/assets/stylesheets/blacklight/_controls.scss +0 -1
- data/app/assets/stylesheets/blacklight/_facets.scss +33 -37
- data/app/assets/stylesheets/blacklight/_header.scss +2 -35
- data/app/assets/stylesheets/blacklight/_icons.scss +3 -2
- data/app/assets/stylesheets/blacklight/_layout.scss +3 -0
- data/app/assets/stylesheets/blacklight/_mixins.scss +6 -21
- data/app/assets/stylesheets/blacklight/_search_form.scss +3 -8
- data/app/assets/stylesheets/blacklight/_search_history.scss +5 -5
- data/app/assets/stylesheets/blacklight/_search_results.scss +5 -2
- data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +16 -10
- data/app/components/blacklight/advanced_search_form_component.html.erb +1 -1
- data/app/components/blacklight/advanced_search_form_component.rb +6 -0
- data/app/components/blacklight/constraint_layout_component.html.erb +2 -9
- data/app/components/blacklight/constraint_layout_component.rb +8 -0
- data/app/components/blacklight/constraints_component.rb +3 -3
- data/app/components/blacklight/document/action_component.rb +2 -1
- data/app/components/blacklight/document/bookmark_component.html.erb +2 -1
- data/app/components/blacklight/document/bookmark_component.rb +6 -0
- data/app/components/blacklight/document/page_header_component.html.erb +7 -0
- data/app/components/blacklight/document/page_header_component.rb +85 -0
- data/app/components/blacklight/document_component.rb +1 -1
- data/app/components/blacklight/facet_component.rb +1 -1
- data/app/components/blacklight/facet_field_checkboxes_component.html.erb +1 -1
- data/app/components/blacklight/facet_field_checkboxes_component.rb +1 -1
- data/app/components/blacklight/facet_field_inclusive_constraint_component.html.erb +1 -1
- data/app/components/blacklight/facet_field_list_component.html.erb +1 -1
- data/app/components/blacklight/facet_item_component.rb +1 -1
- data/app/components/blacklight/facet_item_pivot_component.rb +2 -2
- data/app/components/blacklight/icons/bookmark_icon_component.rb +17 -0
- data/app/components/blacklight/icons/icon_component.rb +9 -4
- data/app/components/blacklight/icons/remove_component.rb +16 -0
- data/app/components/blacklight/metadata_field_component.html.erb +1 -1
- data/app/components/blacklight/metadata_field_component.rb +5 -0
- data/app/components/blacklight/response/facet_group_component.rb +1 -1
- data/app/components/blacklight/response/pagination_component.html.erb +1 -1
- data/app/components/blacklight/response/sort_component.html.erb +1 -6
- data/app/components/blacklight/response/sort_component.rb +15 -0
- data/app/components/blacklight/search/per_page_component.html.erb +2 -0
- data/app/components/blacklight/search/per_page_component.rb +50 -0
- data/app/components/blacklight/search_bar_component.html.erb +1 -1
- data/app/components/blacklight/search_context/server_item_pagination_component.html.erb +4 -7
- data/app/components/blacklight/skip_link_component.html.erb +7 -0
- data/app/components/blacklight/skip_link_component.rb +17 -0
- data/app/components/blacklight/system/dropdown_button_component.rb +18 -0
- data/app/components/blacklight/system/dropdown_component.rb +4 -7
- data/app/components/blacklight/system/flash_message_component.html.erb +1 -1
- data/app/components/blacklight/top_navbar_component.html.erb +2 -2
- data/app/components/blacklight/top_navbar_component.rb +4 -0
- data/app/helpers/blacklight/catalog_helper_behavior.rb +3 -5
- data/app/helpers/blacklight/component_helper_behavior.rb +4 -4
- data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -0
- data/app/helpers/blacklight/layout_helper_behavior.rb +3 -3
- data/app/javascript/blacklight/checkbox_submit.js +5 -1
- data/app/models/concerns/blacklight/document/semantic_fields.rb +1 -1
- data/app/presenters/blacklight/facet_checkbox_item_presenter.rb +11 -0
- data/app/presenters/blacklight/facet_field_presenter.rb +9 -1
- data/app/services/blacklight/search_service.rb +9 -1
- data/app/views/catalog/_per_page_widget.html.erb +1 -10
- data/app/views/catalog/_search_results.html.erb +1 -1
- data/app/views/catalog/_show_main_content.html.erb +1 -1
- data/app/views/catalog/show.html.erb +0 -2
- data/app/views/catalog/suggest.html.erb +1 -1
- data/app/views/kaminari/blacklight/_page.html.erb +14 -8
- data/app/views/layouts/blacklight/base.html.erb +3 -4
- data/app/views/shared/_flash_messages.html.erb +1 -1
- data/blacklight.gemspec +4 -0
- data/{docker-compose.yml → compose.yaml} +1 -1
- data/config/locales/blacklight.ar.yml +3 -0
- data/config/locales/blacklight.de.yml +3 -0
- data/config/locales/blacklight.en.yml +216 -229
- data/config/locales/blacklight.es.yml +3 -0
- data/config/locales/blacklight.fr.yml +3 -0
- data/config/locales/blacklight.hu.yml +3 -0
- data/config/locales/blacklight.it.yml +3 -0
- data/config/locales/blacklight.nl.yml +3 -0
- data/config/locales/blacklight.pt-BR.yml +3 -0
- data/config/locales/blacklight.sq.yml +3 -0
- data/config/locales/blacklight.zh.yml +3 -0
- data/lib/blacklight/abstract_repository.rb +6 -0
- data/lib/blacklight/configuration.rb +33 -19
- data/lib/blacklight/nested_open_struct_with_hash_access.rb +2 -2
- data/lib/blacklight/parameters.rb +1 -1
- data/lib/blacklight/solr/repository.rb +11 -4
- data/lib/blacklight/solr/request.rb +1 -1
- data/lib/blacklight/solr/response/facets.rb +1 -1
- data/lib/blacklight/solr/response/params.rb +1 -1
- data/lib/blacklight/solr/response.rb +0 -12
- data/lib/blacklight/solr/search_builder_behavior.rb +2 -2
- data/lib/blacklight/solr.rb +0 -6
- data/lib/blacklight.rb +4 -14
- data/lib/generators/blacklight/assets/propshaft_generator.rb +2 -2
- data/lib/generators/blacklight/models_generator.rb +1 -1
- data/package.json +1 -1
- data/spec/components/blacklight/advanced_search_form_component_spec.rb +2 -2
- data/spec/components/blacklight/constraint_layout_component_spec.rb +11 -11
- data/spec/components/blacklight/constraints_component_spec.rb +9 -9
- data/spec/components/blacklight/document/action_component_spec.rb +1 -1
- data/spec/components/blacklight/document/group_component_spec.rb +3 -3
- data/spec/components/blacklight/document/page_header_component_spec.rb +92 -0
- data/spec/components/blacklight/document/sidebar_component_spec.rb +3 -4
- data/spec/components/blacklight/document_component_spec.rb +41 -25
- data/spec/components/blacklight/facet_component_spec.rb +2 -2
- data/spec/components/blacklight/facet_field_checkboxes_component_spec.rb +5 -5
- data/spec/components/blacklight/facet_field_list_component_spec.rb +13 -13
- data/spec/components/blacklight/facet_item_component_spec.rb +5 -5
- data/spec/components/blacklight/facet_item_pivot_component_spec.rb +6 -6
- data/spec/components/blacklight/header_component_spec.rb +1 -2
- data/spec/components/blacklight/hidden_search_state_component_spec.rb +6 -6
- data/spec/components/blacklight/icons/icon_component_spec.rb +42 -0
- data/spec/components/blacklight/metadata_field_component_spec.rb +3 -3
- data/spec/components/blacklight/response/pagination_component_spec.rb +4 -4
- data/spec/components/blacklight/search_context/server_applied_params_component_spec.rb +1 -1
- data/spec/components/blacklight/search_context/server_item_pagination_component_spec.rb +2 -4
- data/spec/components/blacklight/system/flash_message_component_spec.rb +5 -5
- data/spec/controllers/blacklight/catalog_spec.rb +2 -2
- data/spec/controllers/blacklight/{catalog/component_configuration_spec.rb → configurable_spec.rb} +1 -1
- data/spec/controllers/bookmarks_controller_spec.rb +10 -10
- data/spec/controllers/catalog_controller_spec.rb +29 -31
- data/spec/features/advanced_search_spec.rb +30 -16
- data/spec/features/alternate_controller_spec.rb +9 -9
- data/spec/features/axe_spec.rb +4 -4
- data/spec/features/bookmarks_spec.rb +34 -19
- data/spec/features/citation_spec.rb +1 -1
- data/spec/features/did_you_mean_spec.rb +23 -23
- data/spec/features/facet_missing_spec.rb +9 -9
- data/spec/features/facets_spec.rb +21 -20
- data/spec/features/modal_spec.rb +4 -4
- data/spec/features/record_view_spec.rb +2 -2
- data/spec/features/search_context_spec.rb +6 -6
- data/spec/features/search_crawler_spec.rb +5 -5
- data/spec/features/search_filters_spec.rb +65 -65
- data/spec/features/search_history_spec.rb +12 -12
- data/spec/features/search_pagination_spec.rb +10 -10
- data/spec/features/search_results_spec.rb +1 -1
- data/spec/features/search_sort_spec.rb +4 -4
- data/spec/features/search_spec.rb +25 -25
- data/spec/features/sitelinks_search_box_spec.rb +2 -2
- data/spec/features/sms_spec.rb +1 -1
- data/spec/helpers/blacklight/facets_helper_behavior_spec.rb +2 -2
- data/spec/helpers/blacklight/layout_helper_behavior_spec.rb +20 -3
- data/spec/helpers/blacklight/render_partials_helper_behavior_spec.rb +2 -1
- data/spec/helpers/blacklight/url_helper_behavior_spec.rb +7 -8
- data/spec/helpers/blacklight_helper_spec.rb +13 -15
- data/spec/helpers/catalog_helper_spec.rb +3 -6
- data/spec/i18n_spec.rb +2 -1
- data/spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb +1 -1
- data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +1 -1
- data/spec/lib/blacklight/search_state_spec.rb +4 -4
- data/spec/lib/tasks/blacklight_task_spec.rb +2 -1
- data/spec/models/blacklight/configurable_spec.rb +1 -1
- data/spec/models/blacklight/configuration/context_spec.rb +1 -1
- data/spec/models/blacklight/configuration_spec.rb +14 -14
- data/spec/models/blacklight/document/active_model_shim_spec.rb +1 -1
- data/spec/models/blacklight/document/cache_key_spec.rb +1 -1
- data/spec/models/blacklight/document_spec.rb +1 -1
- data/spec/models/blacklight/facet_paginator_spec.rb +14 -14
- data/spec/models/blacklight/icon_spec.rb +1 -1
- data/spec/models/blacklight/search_builder_spec.rb +1 -1
- data/spec/models/blacklight/solr/document_spec.rb +3 -3
- data/spec/models/blacklight/solr/facet_paginator_spec.rb +1 -1
- data/spec/models/blacklight/solr/repository_spec.rb +33 -15
- data/spec/models/blacklight/solr/request_spec.rb +1 -1
- data/spec/models/blacklight/solr/response/facets_spec.rb +3 -3
- data/spec/models/blacklight/solr/response/group_response_spec.rb +1 -1
- data/spec/models/blacklight/solr/response/group_spec.rb +2 -2
- data/spec/models/blacklight/solr/response_spec.rb +3 -3
- data/spec/models/blacklight/solr/{search_builder_spec.rb → search_builder_behavior_spec.rb} +10 -20
- data/spec/models/blacklight/suggest/response_spec.rb +1 -1
- data/spec/models/blacklight/suggest_search_spec.rb +1 -1
- data/spec/models/blacklight/user_spec.rb +1 -1
- data/spec/models/bookmark_spec.rb +1 -1
- data/spec/models/solr_document_spec.rb +1 -1
- data/spec/presenters/blacklight/document_presenter_spec.rb +3 -4
- data/spec/presenters/blacklight/facet_checkbox_item_presenter_spec.rb +42 -0
- data/spec/presenters/blacklight/facet_field_presenter_spec.rb +14 -0
- data/spec/presenters/blacklight/field_presenter_spec.rb +1 -1
- data/spec/presenters/blacklight/index_presenter_spec.rb +2 -3
- data/spec/presenters/blacklight/json_presenter_spec.rb +1 -1
- data/spec/presenters/{pipeline_spec.rb → blacklight/rendering/pipeline_spec.rb} +1 -1
- data/spec/presenters/blacklight/show_presenter_spec.rb +5 -6
- data/spec/presenters/{thumbnail_presenter_spec.rb → blacklight/thumbnail_presenter_spec.rb} +5 -3
- data/spec/requests/load_suggestions_spec.rb +5 -5
- data/spec/routing/catalog_routing_spec.rb +1 -1
- data/spec/services/blacklight/field_retriever_spec.rb +1 -1
- data/spec/services/blacklight/search_service_spec.rb +11 -11
- data/spec/spec_helper.rb +2 -2
- data/spec/support/features/search_helpers.rb +2 -2
- data/spec/support/features/session_helpers.rb +3 -3
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +3 -3
- data/spec/views/catalog/_document.html.erb_spec.rb +1 -4
- data/spec/views/catalog/_document_list.html.erb_spec.rb +2 -2
- data/spec/views/catalog/_facet_index_navigation.html.erb_spec.rb +5 -6
- data/spec/views/catalog/_facet_layout.html.erb_spec.rb +7 -7
- data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +4 -4
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +1 -4
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +1 -2
- data/spec/views/catalog/_view_type_group.html.erb_spec.rb +7 -7
- data/spec/views/catalog/email_success.html.erb_spec.rb +1 -1
- data/spec/views/catalog/facet.html.erb_spec.rb +1 -1
- data/spec/views/catalog/facet.json.jbuilder_spec.rb +1 -1
- data/spec/views/catalog/index.atom.builder_spec.rb +18 -19
- data/spec/views/catalog/index.html.erb_spec.rb +2 -4
- data/spec/views/catalog/index.json.jbuilder_spec.rb +5 -8
- data/spec/views/catalog/show.html.erb_spec.rb +3 -5
- data/spec/views/catalog/show.json.jbuilder_spec.rb +1 -2
- data/spec/views/catalog/sms_success.html.erb_spec.rb +1 -1
- data/spec/views/shared/_user_util_links.html.erb_spec.rb +2 -3
- data/tasks/blacklight.rake +5 -5
- metadata +84 -12
@@ -28,11 +28,10 @@
|
|
28
28
|
<%= content_for(:head) %>
|
29
29
|
</head>
|
30
30
|
<body class="<%= render_body_class %>">
|
31
|
-
|
32
|
-
<%= link_to t('blacklight.skip_links.search_field'), '#search_field', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbolinks: 'false' } %>
|
33
|
-
<%= link_to t('blacklight.skip_links.main_content'), '#main-container', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbolinks: 'false' } %>
|
31
|
+
<%= render blacklight_config.skip_link_component.new do %>
|
34
32
|
<%= content_for(:skip_links) %>
|
35
|
-
|
33
|
+
<% end %>
|
34
|
+
|
36
35
|
<%= render partial: 'shared/header_navbar' %>
|
37
36
|
|
38
37
|
<main id="main-container" class="<%= container_classes %>" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>">
|
data/blacklight.gemspec
CHANGED
@@ -32,6 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.add_dependency "i18n", '>= 1.7.0' # added named parameters
|
33
33
|
s.add_dependency "ostruct", '>= 0.3.2'
|
34
34
|
s.add_dependency "view_component", '>= 2.66', '< 4'
|
35
|
+
s.add_dependency "zeitwerk"
|
35
36
|
|
36
37
|
s.add_development_dependency "rsolr", ">= 1.0.6", "< 3" # Library for interacting with rSolr.
|
37
38
|
s.add_development_dependency "rspec-rails", "~> 6.1"
|
@@ -45,6 +46,9 @@ Gem::Specification.new do |s|
|
|
45
46
|
s.add_development_dependency "rubocop", '~> 1.0'
|
46
47
|
s.add_development_dependency "rubocop-rails"
|
47
48
|
s.add_development_dependency "rubocop-rspec"
|
49
|
+
s.add_development_dependency "rubocop-capybara"
|
50
|
+
s.add_development_dependency "rubocop-rspec_rails"
|
51
|
+
s.add_development_dependency "rubocop-factory_bot"
|
48
52
|
s.add_development_dependency "i18n-tasks"
|
49
53
|
s.add_development_dependency "solr_wrapper"
|
50
54
|
end
|
@@ -1,257 +1,244 @@
|
|
1
|
+
---
|
1
2
|
en:
|
2
|
-
views:
|
3
|
-
pagination:
|
4
|
-
first: '« First'
|
5
|
-
last: 'Last »'
|
6
|
-
previous: '« Previous'
|
7
|
-
next: 'Next »'
|
8
|
-
truncate: '…'
|
9
|
-
aria:
|
10
|
-
container_label: 'pagination links'
|
11
|
-
current_page: 'Current Page, Page %{page}'
|
12
|
-
go_to_page: 'Go to page %{page}'
|
13
|
-
go_to_previous_page: 'Go to previous page'
|
14
|
-
go_to_next_page: 'Go to next page'
|
15
|
-
go_to_first_page: 'Go to first page'
|
16
|
-
go_to_last_page: 'Go to last page'
|
17
|
-
|
18
|
-
pagination_compact:
|
19
|
-
previous: '« Previous'
|
20
|
-
next: 'Next »'
|
21
|
-
|
22
3
|
blacklight:
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
4
|
+
advanced_search:
|
5
|
+
any_of: 'Any of:'
|
6
|
+
form:
|
7
|
+
limit_criteria_heading_html: "<strong>AND</strong> have these attributes"
|
8
|
+
query_criteria_heading_html: Match %{select_menu} of the fields below
|
9
|
+
search_btn_html: Search
|
10
|
+
search_context: Within search
|
11
|
+
sort_label: Sort results by
|
12
|
+
start_over_html: Start over
|
13
|
+
title: Advanced search
|
14
|
+
more_options: More options
|
15
|
+
op:
|
16
|
+
label: search operator
|
17
|
+
must: all
|
18
|
+
should: any
|
19
|
+
or_html: " OR "
|
20
|
+
page_title: Advanced search - %{application_name}
|
21
|
+
and: and
|
22
|
+
application_name: Blacklight
|
23
|
+
back_to_bookmarks: Back to Bookmarks
|
24
|
+
back_to_search: Back to Search
|
42
25
|
bookmarks:
|
43
|
-
title: 'Bookmarks'
|
44
|
-
page_title: 'Bookmarks - %{application_name}'
|
45
|
-
no_bookmarks: 'You have no bookmarks'
|
46
26
|
add:
|
47
|
-
button:
|
27
|
+
button: Bookmark
|
28
|
+
failure: Sorry, there was a problem saving the bookmarks.
|
48
29
|
success:
|
49
|
-
one:
|
50
|
-
other:
|
51
|
-
failure: 'Sorry, there was a problem saving the bookmarks.'
|
52
|
-
remove:
|
53
|
-
button: 'Remove bookmark'
|
54
|
-
success: 'Successfully removed bookmark.'
|
55
|
-
failure: 'Sorry, there was a problem removing the bookmarks.'
|
56
|
-
action_confirm: 'Remove this bookmark?'
|
57
|
-
clear:
|
58
|
-
action_title: 'Clear Bookmarks'
|
59
|
-
action_confirm: 'Clear your bookmarks?'
|
60
|
-
success: 'Cleared your bookmarks.'
|
61
|
-
failure: 'Sorry, there was a problem clearing your bookmarks.'
|
62
|
-
need_login: 'Please log in to manage and view your bookmarks.'
|
63
|
-
list_title: 'Your Bookmarks'
|
64
|
-
delete: 'Remove'
|
65
|
-
|
66
|
-
search_history:
|
30
|
+
one: Successfully added bookmark.
|
31
|
+
other: Successfully added bookmarks.
|
67
32
|
clear:
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
sms: 'SMS This'
|
84
|
-
clear: 'Clear'
|
85
|
-
|
33
|
+
action_confirm: Clear your bookmarks?
|
34
|
+
action_title: Clear Bookmarks
|
35
|
+
failure: Sorry, there was a problem clearing your bookmarks.
|
36
|
+
success: Cleared your bookmarks.
|
37
|
+
delete: Remove
|
38
|
+
list_title: Your Bookmarks
|
39
|
+
need_login: Please log in to manage and view your bookmarks.
|
40
|
+
no_bookmarks: You have no bookmarks
|
41
|
+
page_title: Bookmarks - %{application_name}
|
42
|
+
remove:
|
43
|
+
action_confirm: Remove this bookmark?
|
44
|
+
button: Remove bookmark
|
45
|
+
failure: Sorry, there was a problem removing the bookmarks.
|
46
|
+
success: Successfully removed bookmark.
|
47
|
+
title: Bookmarks
|
86
48
|
citation:
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
49
|
+
apa: APA
|
50
|
+
chicago: Chicago
|
51
|
+
mla: MLA
|
52
|
+
did_you_mean: 'Did you mean to type: %{options}?'
|
91
53
|
email:
|
54
|
+
errors:
|
55
|
+
to:
|
56
|
+
blank: You must enter a recipient in order to send this message
|
57
|
+
invalid: You must enter a valid email address
|
92
58
|
form:
|
93
|
-
title: 'Email This'
|
94
|
-
to: 'Email:'
|
95
59
|
message: 'Message:'
|
96
|
-
submit:
|
60
|
+
submit: Send
|
61
|
+
title: Email This
|
62
|
+
to: 'Email:'
|
63
|
+
success: Email Sent
|
97
64
|
text:
|
98
|
-
default_title:
|
65
|
+
default_title: N/A
|
66
|
+
message: 'Message: %{message}'
|
99
67
|
subject:
|
100
68
|
one: 'Item Record: %{title}'
|
101
|
-
other:
|
69
|
+
other: Item records
|
102
70
|
url: 'URL: %{url}'
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
to:
|
123
|
-
invalid: 'You must enter a valid 10 digit phone number'
|
124
|
-
blank: "You must enter a recipient's phone number in order to send this message"
|
125
|
-
carrier:
|
126
|
-
blank: 'You must select a carrier'
|
127
|
-
invalid: "You must enter a valid carrier"
|
128
|
-
|
129
|
-
back_to_search: 'Back to Search'
|
130
|
-
back_to_bookmarks: 'Back to Bookmarks'
|
131
|
-
|
71
|
+
entry_name:
|
72
|
+
default:
|
73
|
+
one: entry
|
74
|
+
other: entries
|
75
|
+
grouped:
|
76
|
+
default:
|
77
|
+
one: grouped result
|
78
|
+
other: grouped results
|
79
|
+
header_links:
|
80
|
+
bookmarks: Bookmarks
|
81
|
+
login: Login
|
82
|
+
logout: Log Out
|
83
|
+
search_history: History
|
84
|
+
main:
|
85
|
+
aria:
|
86
|
+
main_container: Main content
|
87
|
+
modal:
|
88
|
+
close: Close
|
89
|
+
or: or
|
132
90
|
search:
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
search_constraints_header: 'Search Constraints'
|
139
|
-
search_results: 'Search Results'
|
140
|
-
errors:
|
141
|
-
invalid_solr_id: "Sorry, you have requested a record that doesn't exist."
|
142
|
-
per_page:
|
143
|
-
label: '%{count}<span class="sr-only visually-hidden"> per page</span>'
|
144
|
-
button_label: '%{count} per page' # TODO: Remove during major release
|
145
|
-
button_label_html: '%{count}<span class="d-none d-sm-inline"> per page</span>'
|
146
|
-
title: 'Number of results to display per page'
|
147
|
-
submit: 'Update'
|
148
|
-
aria_label: 'Results navigation'
|
149
|
-
sort:
|
150
|
-
label: 'Sort by %{field}' # TODO: Remove during major release
|
151
|
-
label_html: 'Sort<span class="d-none d-sm-inline"> by %{field}</span>'
|
152
|
-
submit: 'sort results'
|
153
|
-
form:
|
154
|
-
search_field:
|
155
|
-
label: 'Search in'
|
156
|
-
title: 'Targeted search options'
|
157
|
-
post_label: 'for'
|
158
|
-
search:
|
159
|
-
label: 'search for'
|
160
|
-
placeholder: 'Search...'
|
161
|
-
submit: 'Search'
|
162
|
-
pagination:
|
163
|
-
title: 'Results navigation'
|
164
|
-
pagination_info:
|
165
|
-
no_items_found: 'No %{entry_name} found'
|
166
|
-
single_item_found: '<strong>1</strong> %{entry_name} found'
|
167
|
-
pages:
|
168
|
-
one: '<strong>%{start_num}</strong> - <strong>%{end_num}</strong> of <strong>%{total_num}</strong>'
|
169
|
-
other: '<strong>%{start_num}</strong> - <strong>%{end_num}</strong> of <strong>%{total_num}</strong>'
|
170
|
-
entry_pagination_info:
|
171
|
-
one: '<strong>1 of 1</strong>'
|
172
|
-
other: '<strong>%{current}</strong> of <strong>%{total}</strong>'
|
91
|
+
atom_feed: Atom for results
|
92
|
+
bookmarks:
|
93
|
+
absent: Bookmark
|
94
|
+
inprogress: Saving...
|
95
|
+
present: In Bookmarks
|
173
96
|
documents:
|
174
97
|
aria:
|
175
|
-
|
176
|
-
|
177
|
-
counter:
|
98
|
+
limit_search: limit your search
|
99
|
+
search_results: search results
|
100
|
+
counter: "%{counter}. "
|
101
|
+
entry_pagination_info:
|
102
|
+
one: "<strong>1 of 1</strong>"
|
103
|
+
other: "<strong>%{current}</strong> of <strong>%{total}</strong>"
|
104
|
+
errors:
|
105
|
+
invalid_solr_id: Sorry, you have requested a record that doesn't exist.
|
178
106
|
facets:
|
179
|
-
title: 'Limit your search'
|
180
|
-
clear: 'Clear Filter'
|
181
|
-
sort:
|
182
|
-
count: 'Numerical Sort'
|
183
|
-
index: 'A-Z Sort'
|
184
|
-
count: '%{number}'
|
185
|
-
more_html: 'more <span class="sr-only visually-hidden">%{field_name}</span> »'
|
186
|
-
selected:
|
187
|
-
remove: '[remove]'
|
188
|
-
missing: "[Missing]"
|
189
107
|
all: All
|
190
|
-
|
191
|
-
|
192
|
-
hide: Hide
|
108
|
+
clear: Clear Filter
|
109
|
+
count: "%{number}"
|
193
110
|
group:
|
194
|
-
open: Show facets
|
195
111
|
close: Hide facets
|
196
|
-
|
197
|
-
|
112
|
+
open: Show facets
|
113
|
+
missing: "[Missing]"
|
114
|
+
more_html: more <span class="sr-only visually-hidden">%{field_name}</span> »
|
115
|
+
pivot:
|
116
|
+
hide: Hide
|
117
|
+
show: Show
|
118
|
+
selected:
|
119
|
+
remove: "[remove]"
|
120
|
+
sort:
|
121
|
+
count: Numerical Sort
|
122
|
+
index: A-Z Sort
|
123
|
+
title: Limit your search
|
198
124
|
filters:
|
199
|
-
|
200
|
-
label: '%{label}:'
|
125
|
+
label: "%{label}:"
|
201
126
|
remove:
|
202
|
-
value: 'Remove constraint %{value}'
|
203
127
|
label_value: 'Remove constraint %{label}: %{value}'
|
204
|
-
|
128
|
+
value: Remove constraint %{value}
|
129
|
+
title: 'You searched for:'
|
130
|
+
form:
|
131
|
+
search:
|
132
|
+
label: search for
|
133
|
+
placeholder: Search...
|
134
|
+
search_field:
|
135
|
+
label: Search in
|
136
|
+
post_label: for
|
137
|
+
title: Targeted search options
|
138
|
+
submit: Search
|
139
|
+
group:
|
140
|
+
more: more »
|
141
|
+
header: Search
|
205
142
|
index:
|
206
|
-
label:
|
143
|
+
label: "%{label}:"
|
144
|
+
page_title:
|
145
|
+
constraint: "%{label}: %{value}"
|
146
|
+
many_constraint_values: "%{values} selected"
|
147
|
+
title: "%{constraints} - %{application_name} Search Results"
|
148
|
+
pagination:
|
149
|
+
title: Results navigation
|
150
|
+
pagination_info:
|
151
|
+
no_items_found: No %{entry_name} found
|
152
|
+
pages:
|
153
|
+
one: "<strong>%{start_num}</strong> - <strong>%{end_num}</strong> of <strong>%{total_num}</strong>"
|
154
|
+
other: "<strong>%{start_num}</strong> - <strong>%{end_num}</strong> of <strong>%{total_num}</strong>"
|
155
|
+
single_item_found: "<strong>1</strong> %{entry_name} found"
|
156
|
+
per_page:
|
157
|
+
aria_label: Results navigation
|
158
|
+
button_label: "%{count} per page"
|
159
|
+
button_label_html: '%{count}<span class="d-none d-sm-inline"> per page</span>'
|
160
|
+
label: '%{count}<span class="sr-only visually-hidden"> per page</span>'
|
161
|
+
submit: Update
|
162
|
+
title: Number of results to display per page
|
163
|
+
rss_feed: RSS for results
|
164
|
+
search_constraints_header: Search Constraints
|
165
|
+
search_results: Search Results
|
207
166
|
show:
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
inprogress: "Saving..."
|
216
|
-
zero_results:
|
217
|
-
title: "No results found for your search"
|
218
|
-
modify_search: "Try modifying your search"
|
219
|
-
use_fewer_keywords: "Use fewer keywords to start, then refine your search using the links on the left."
|
220
|
-
search_fields: "you searched by %{search_fields}"
|
221
|
-
search_everything: "try searching everything"
|
222
|
-
view_title: "View results as: "
|
167
|
+
label: "%{label}:"
|
168
|
+
title: "%{document_title} - %{application_name}"
|
169
|
+
sort:
|
170
|
+
label: Sort by %{field}
|
171
|
+
label_html: Sort<span class="d-none d-sm-inline"> by %{field}</span>
|
172
|
+
submit: sort results
|
173
|
+
start_over: Start Over
|
223
174
|
view:
|
224
|
-
list:
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
175
|
+
list: List
|
176
|
+
view_title: 'View results as: '
|
177
|
+
zero_results:
|
178
|
+
modify_search: Try modifying your search
|
179
|
+
search_everything: try searching everything
|
180
|
+
search_fields: you searched by %{search_fields}
|
181
|
+
title: No results found for your search
|
182
|
+
use_fewer_keywords: Use fewer keywords to start, then refine your search using the links on the left.
|
183
|
+
search_history:
|
184
|
+
clear:
|
185
|
+
action_confirm: Clear your search history?
|
186
|
+
action_title: Clear Search History
|
187
|
+
failure: There was a problem clearing your search history.
|
188
|
+
success: Cleared your search history.
|
189
|
+
forget: forget
|
190
|
+
no_history: You have no search history
|
191
|
+
page_title: Search History - %{application_name}
|
192
|
+
recent: Your recent searches
|
193
|
+
save: save
|
194
|
+
title: Search History
|
195
|
+
skip_links:
|
196
|
+
first_result: Skip to first result
|
197
|
+
label: Skip links
|
198
|
+
main_content: Skip to main content
|
199
|
+
search_field: Skip to search
|
200
|
+
sms:
|
201
|
+
errors:
|
202
|
+
carrier:
|
203
|
+
blank: You must select a carrier
|
204
|
+
invalid: You must enter a valid carrier
|
205
|
+
to:
|
206
|
+
blank: You must enter a recipient's phone number in order to send this message
|
207
|
+
invalid: You must enter a valid 10 digit phone number
|
250
208
|
form:
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
209
|
+
carrier: Carrier
|
210
|
+
carrier_prompt: Please select your carrier
|
211
|
+
submit: Send
|
212
|
+
title: SMS This
|
213
|
+
to: 'Phone Number:'
|
214
|
+
success: SMS Sent
|
215
|
+
text:
|
216
|
+
url: 'Link: %{url}'
|
217
|
+
tools:
|
218
|
+
citation: Cite
|
219
|
+
clear: Clear
|
220
|
+
email: Email
|
221
|
+
sms: SMS This
|
222
|
+
title: Tools
|
223
|
+
top_navbar:
|
224
|
+
aria:
|
225
|
+
container_label: Main navigation
|
226
|
+
welcome: Welcome!
|
227
|
+
views:
|
228
|
+
pagination:
|
229
|
+
aria:
|
230
|
+
container_label: pagination links
|
231
|
+
current_page: Current Page, Page %{page}
|
232
|
+
go_to_first_page: Go to first page
|
233
|
+
go_to_last_page: Go to last page
|
234
|
+
go_to_next_page: Go to next page
|
235
|
+
go_to_page: Go to page %{page}
|
236
|
+
go_to_previous_page: Go to previous page
|
237
|
+
first: "« First"
|
238
|
+
last: Last »
|
239
|
+
next: Next »
|
240
|
+
previous: "« Previous"
|
241
|
+
truncate: "…"
|
242
|
+
pagination_compact:
|
243
|
+
next: Next »
|
244
|
+
previous: "« Previous"
|
@@ -35,6 +35,12 @@ module Blacklight
|
|
35
35
|
raise NotImplementedError
|
36
36
|
end
|
37
37
|
|
38
|
+
# Find multiple documents by their ids
|
39
|
+
# @param [Hash] _params query parameters
|
40
|
+
def find_many(params, **kwargs)
|
41
|
+
search(params, **kwargs)
|
42
|
+
end
|
43
|
+
|
38
44
|
##
|
39
45
|
# Execute a search query against a search index
|
40
46
|
# @param [Hash] _params query parameters
|