blacklight 7.1.0 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.jshintrc +3 -1
  3. data/.rubocop_todo.yml +8 -8
  4. data/.travis.yml +13 -13
  5. data/CONTRIBUTING.md +3 -1
  6. data/Gemfile +2 -0
  7. data/VERSION +1 -1
  8. data/app/assets/images/blacklight/list.svg +1 -1
  9. data/app/assets/images/blacklight/search.svg +1 -1
  10. data/app/assets/javascripts/blacklight/blacklight.js +82 -70
  11. data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +17 -13
  12. data/app/assets/stylesheets/blacklight/_facets.scss +3 -0
  13. data/app/assets/stylesheets/blacklight/_header.scss +26 -0
  14. data/app/assets/stylesheets/blacklight/_icons.scss +6 -6
  15. data/app/assets/stylesheets/blacklight/_mixins.scss +3 -3
  16. data/app/controllers/concerns/blacklight/facet.rb +1 -7
  17. data/app/helpers/blacklight/catalog_helper_behavior.rb +16 -17
  18. data/app/helpers/blacklight/layout_helper_behavior.rb +2 -2
  19. data/app/helpers/blacklight/url_helper_behavior.rb +1 -1
  20. data/app/javascript/blacklight/button_focus.js +9 -0
  21. data/app/javascript/blacklight/facet_load.js +18 -19
  22. data/app/javascript/blacklight/search_context.js +67 -49
  23. data/app/models/blacklight/icon.rb +26 -5
  24. data/app/presenters/blacklight/search_bar_presenter.rb +3 -1
  25. data/app/views/catalog/_bookmark_control.html.erb +11 -13
  26. data/app/views/catalog/_facet_group.html.erb +1 -1
  27. data/app/views/catalog/_facet_layout.html.erb +9 -2
  28. data/app/views/catalog/_facets.html.erb +1 -1
  29. data/app/views/catalog/_per_page_widget.html.erb +1 -1
  30. data/app/views/catalog/_search_form.html.erb +1 -1
  31. data/app/views/catalog/_search_results.html.erb +4 -0
  32. data/app/views/catalog/_sort_widget.html.erb +1 -1
  33. data/app/views/layouts/blacklight.html.erb +2 -2
  34. data/app/views/layouts/blacklight/base.html.erb +14 -8
  35. data/config/locales/blacklight.de.yml +17 -2
  36. data/config/locales/blacklight.en.yml +17 -2
  37. data/config/locales/blacklight.es.yml +17 -2
  38. data/config/locales/blacklight.fr.yml +17 -2
  39. data/config/locales/blacklight.hu.yml +17 -3
  40. data/config/locales/blacklight.it.yml +17 -2
  41. data/config/locales/blacklight.nl.yml +17 -3
  42. data/config/locales/blacklight.pt-BR.yml +17 -2
  43. data/config/locales/blacklight.sq.yml +17 -2
  44. data/config/locales/blacklight.zh.yml +17 -3
  45. data/lib/blacklight/configuration.rb +6 -0
  46. data/lib/blacklight/engine.rb +5 -4
  47. data/lib/blacklight/solr.rb +2 -0
  48. data/{app/models/concerns → lib}/blacklight/solr/document.rb +0 -0
  49. data/{app/models → lib}/blacklight/solr/facet_paginator.rb +0 -0
  50. data/lib/blacklight/solr/response/group_response.rb +10 -0
  51. data/lib/blacklight/solr/response/pagination_methods.rb +12 -0
  52. data/lib/generators/blacklight/assets_generator.rb +4 -1
  53. data/package-lock.json +1 -1
  54. data/package.json +2 -2
  55. data/spec/features/facets_spec.rb +22 -1
  56. data/spec/features/search_filters_spec.rb +25 -5
  57. data/spec/helpers/blacklight/layout_helper_behavior_spec.rb +4 -4
  58. data/spec/helpers/catalog_helper_spec.rb +0 -9
  59. data/spec/models/blacklight/icon_spec.rb +25 -1
  60. data/spec/models/blacklight/solr/response/group_response_spec.rb +13 -0
  61. data/spec/models/blacklight/solr/response_spec.rb +3 -0
  62. data/spec/presenters/blacklight/search_bar_presenter_spec.rb +15 -0
  63. data/spec/views/catalog/_facet_group.html.erb_spec.rb +82 -0
  64. data/spec/views/catalog/_facet_layout.html.erb_spec.rb +1 -1
  65. data/spec/views/catalog/_facets.html.erb_spec.rb +5 -66
  66. metadata +7 -5
  67. data/app/javascript/blacklight/collapsable.js +0 -9
@@ -1,6 +1,13 @@
1
1
  <div class="card facet-limit blacklight-<%= facet_field.key.parameterize %> <%= 'facet-limit-active' if facet_field_in_params?(facet_field.key) %>">
2
- <h3 class="card-header <%= "collapsed" if should_collapse_facet?(facet_field) %> collapse-toggle facet-field-heading" aria-expanded="false" data-toggle="collapse" data-target="#<%= facet_field_id(facet_field) %>" id="<%= facet_field_id(facet_field) %>-header">
3
- <%= link_to facet_field_label(facet_field.key), "##{ facet_field_id(facet_field)}", "data-turbolinks": false %>
2
+ <h3 class="card-header p-0 facet-field-heading" id="<%= facet_field_id(facet_field) %>-header">
3
+ <button
4
+ class="btn btn-block p-2 text-left <%= "collapsed" if should_collapse_facet?(facet_field) %> collapse-toggle"
5
+ data-toggle="collapse"
6
+ data-target="#<%= facet_field_id(facet_field) %>"
7
+ aria-expanded="false"
8
+ >
9
+ <%= facet_field_label(facet_field.key) %>
10
+ </button>
4
11
  </h3>
5
12
  <div id="<%= facet_field_id(facet_field) %>" aria-labelledby="<%= facet_field_id(facet_field) %>-header" class="panel-collapse facet-content <%= should_collapse_facet?(facet_field) ? 'collapse' : 'show' %>">
6
13
  <div class="card-body">
@@ -1,4 +1,4 @@
1
1
  <% # container for facet groups -%>
2
2
  <% facet_group_names.each do |groupname| %>
3
- <%= render partial: "facet_group", locals: {groupname: groupname} %>
3
+ <%= render 'facet_group', groupname: groupname %>
4
4
  <% end %>
@@ -2,7 +2,7 @@
2
2
  <span class="sr-only"><%= t('blacklight.search.per_page.title') %></span>
3
3
  <div id="per_page-dropdown" class="per-page-dropdown btn-group">
4
4
  <button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
5
- <%= t(:'blacklight.search.per_page.button_label', :count => current_per_page) %> <span class="caret"></span>
5
+ <%= t(:'blacklight.search.per_page.button_label_html', :count => current_per_page) %> <span class="caret"></span>
6
6
  </button>
7
7
  <div class="dropdown-menu dropdown-menu-right" role="menu">
8
8
  <%- per_page_options_for_select.each do |(label, count)| %>
@@ -15,7 +15,7 @@
15
15
  <% end %>
16
16
 
17
17
  <label for="q" class="sr-only"><%= t('blacklight.search.form.search.label') %></label>
18
- <%= text_field_tag :q, params[:q], placeholder: t('blacklight.search.form.search.placeholder'), class: "search-q q form-control", id: "q", autofocus: presenter.autofocus?, data: { autocomplete_enabled: presenter.autocomplete_enabled?, autocomplete_path: search_action_path(action: :suggest) } %>
18
+ <%= text_field_tag :q, params[:q], placeholder: t('blacklight.search.form.search.placeholder'), class: "search-q q form-control rounded-#{search_fields.length > 1 ? '0' : 'left'}", id: "q", autofocus: presenter.autofocus?, data: { autocomplete_enabled: presenter.autocomplete_enabled?, autocomplete_path: search_action_path(action: :suggest) } %>
19
19
 
20
20
  <span class="input-group-append">
21
21
  <button type="submit" class="btn btn-primary search-btn" id="search">
@@ -7,6 +7,10 @@
7
7
  <%= json_api_link_tag %>
8
8
  <% end %>
9
9
 
10
+ <% content_for(:skip_links) do -%>
11
+ <%= link_to t('blacklight.skip_links.first_result'), '#documents', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbolinks: 'false' } %>
12
+ <% end %>
13
+
10
14
  <% content_for(:container_header) do -%>
11
15
  <h1 class="sr-only top-content-title"><%= t('blacklight.search.header') %></h1>
12
16
 
@@ -1,7 +1,7 @@
1
1
  <% if show_sort_and_per_page? and active_sort_fields.many? %>
2
2
  <div id="sort-dropdown" class="sort-dropdown btn-group">
3
3
  <button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
4
- <%= t('blacklight.search.sort.label', :field =>sort_field_label(current_sort_field.key)) %> <span class="caret"></span>
4
+ <%= t('blacklight.search.sort.label_html', :field =>sort_field_label(current_sort_field.key)) %> <span class="caret"></span>
5
5
  </button>
6
6
 
7
7
  <div class="dropdown-menu" role="menu">
@@ -1,10 +1,10 @@
1
1
  <% content_for(:content) do %>
2
2
  <% if content_for? :sidebar %>
3
- <section id="content" class="<%= main_content_classes %> order-last">
3
+ <section id="content" class="<%= main_content_classes %> order-last" aria-label="<%= t('blacklight.search.documents.aria.search_results') %>">
4
4
  <%= yield %>
5
5
  </section>
6
6
 
7
- <section id="sidebar" class="<%= sidebar_classes %> order-first">
7
+ <section id="sidebar" class="<%= sidebar_classes %> order-first" aria-label="<%= t('blacklight.search.documents.aria.limit_search') %>">
8
8
  <%= content_for(:sidebar) %>
9
9
  </section>
10
10
  <% else %>
@@ -17,19 +17,25 @@
17
17
  <%= content_for(:head) %>
18
18
  </head>
19
19
  <body class="<%= render_body_class %>">
20
- <%= render partial: 'shared/header_navbar' %>
20
+ <div id="skip-link">
21
+ <%= link_to t('blacklight.skip_links.search_field'), '#search_field', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbolinks: 'false' } %>
22
+ <%= link_to t('blacklight.skip_links.main_content'), '#main-container', class: 'element-invisible element-focusable rounded-bottom py-2 px-3', data: { turbolinks: 'false' } %>
23
+ <%= content_for(:skip_links) %>
24
+ </div>
25
+ <%= render partial: 'shared/header_navbar' %>
21
26
 
22
- <div id="main-container" class="<%= container_classes %>">
27
+ <main id="main-container" class="<%= container_classes %>" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>">
23
28
  <%= content_for(:container_header) %>
24
29
 
25
- <%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>
30
+ <%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>
26
31
 
27
- <div class="row">
28
- <%= content_for?(:content) ? yield(:content) : yield %>
32
+ <div class="row">
33
+ <%= content_for?(:content) ? yield(:content) : yield %>
34
+ </div>
29
35
  </div>
30
- </div>
36
+ </main>
31
37
 
32
- <%= render partial: 'shared/footer' %>
33
- <%= render partial: 'shared/modal' %>
38
+ <%= render partial: 'shared/footer' %>
39
+ <%= render partial: 'shared/modal' %>
34
40
  </body>
35
41
  </html>
@@ -21,6 +21,10 @@ de:
21
21
 
22
22
  blacklight:
23
23
  application_name: 'Blacklight'
24
+ skip_links:
25
+ main_content: 'Zum Hauptinhalt gehen'
26
+ search_field: 'Gehen Sie zur Suchleiste'
27
+ first_result: 'Gehe zum ersten Suchergebnis'
24
28
  header_links:
25
29
  login: 'Anmelden'
26
30
  logout: 'Ausloggen'
@@ -143,11 +147,13 @@ de:
143
147
  invalid_solr_id: "Entschuldigung, Sie haben einen nicht vorhandenen Datensatz angefordert."
144
148
  per_page:
145
149
  label: '%{count}<span class="sr-only"> pro Seite</span>'
146
- button_label: '%{count} pro Seite'
150
+ button_label: '%{count} pro Seite' # TODO: Remove during major release
151
+ button_label_html: '%{count}<span class="d-none d-sm-inline"> pro Seite</span>'
147
152
  title: 'Anzahl der Ergebnisse, die pro Seite angezeigt werden'
148
153
  submit: 'Aktualisieren'
149
154
  sort:
150
- label: 'Ordnen nach %{field}'
155
+ label: 'Ordnen nach %{field}' # TODO: Remove during major release
156
+ label_html: 'Ordnen<span class="d-none d-sm-inline"> nach %{field}</span>'
151
157
  submit: 'Ergebnisse ordnen'
152
158
  form:
153
159
  search_field:
@@ -170,6 +176,9 @@ de:
170
176
  one: '<strong>1 von 1</strong>'
171
177
  other: '<strong>%{current}</strong> von <strong>%{total}</strong>'
172
178
  documents:
179
+ aria:
180
+ search_results: 'Suchergebnisse'
181
+ limit_search: 'Suche beschränken'
173
182
  counter: '%{counter}. '
174
183
  facets:
175
184
  title: 'Suche beschränken'
@@ -215,5 +224,11 @@ de:
215
224
 
216
225
  entry_name:
217
226
  default: 'Eintrag'
227
+ grouped:
228
+ default: 'gruppiertes Ergebnis'
218
229
 
219
230
  did_you_mean: 'Meinten Sie: %{options}?'
231
+
232
+ main:
233
+ aria:
234
+ main_container: 'Hauptinhalt'
@@ -21,6 +21,10 @@ en:
21
21
 
22
22
  blacklight:
23
23
  application_name: 'Blacklight'
24
+ skip_links:
25
+ main_content: 'Skip to main content'
26
+ search_field: 'Skip to search'
27
+ first_result: 'Skip to first result'
24
28
  header_links:
25
29
  login: 'Login'
26
30
  logout: 'Log Out'
@@ -143,11 +147,13 @@ en:
143
147
  invalid_solr_id: "Sorry, you have requested a record that doesn't exist."
144
148
  per_page:
145
149
  label: '%{count}<span class="sr-only"> per page</span>'
146
- button_label: '%{count} per page'
150
+ button_label: '%{count} per page' # TODO: Remove during major release
151
+ button_label_html: '%{count}<span class="d-none d-sm-inline"> per page</span>'
147
152
  title: 'Number of results to display per page'
148
153
  submit: 'Update'
149
154
  sort:
150
- label: 'Sort by %{field}'
155
+ label: 'Sort by %{field}' # TODO: Remove during major release
156
+ label_html: 'Sort<span class="d-none d-sm-inline"> by %{field}</span>'
151
157
  submit: 'sort results'
152
158
  form:
153
159
  search_field:
@@ -170,6 +176,9 @@ en:
170
176
  one: '<strong>1 of 1</strong>'
171
177
  other: '<strong>%{current}</strong> of <strong>%{total}</strong>'
172
178
  documents:
179
+ aria:
180
+ search_results: 'search results'
181
+ limit_search: 'limit your search'
173
182
  counter: '%{counter}. '
174
183
  facets:
175
184
  title: 'Limit your search'
@@ -215,5 +224,11 @@ en:
215
224
 
216
225
  entry_name:
217
226
  default: 'entry'
227
+ grouped:
228
+ default: 'grouped result'
218
229
 
219
230
  did_you_mean: 'Did you mean to type: %{options}?'
231
+
232
+ main:
233
+ aria:
234
+ main_container: 'Main content'
@@ -21,6 +21,10 @@ es:
21
21
 
22
22
  blacklight:
23
23
  application_name: 'Blacklight'
24
+ skip_links:
25
+ main_content: 'Saltar al contenido principal'
26
+ search_field: 'Salta a la búsqueda'
27
+ first_result: 'Salta al primer resultado de búsqueda'
24
28
  header_links:
25
29
  login: 'Entrar'
26
30
  logout: 'Salir'
@@ -143,11 +147,13 @@ es:
143
147
  invalid_solr_id: "Lo sentimos, usted ha solicitado un registro que no existe."
144
148
  per_page:
145
149
  label: '%{count}<span class="sr-only"> por página</span>'
146
- button_label: '%{count} por página'
150
+ button_label: '%{count} por página' # TODO: Remove during major release
151
+ button_label_html: '%{count}<span class="d-none d-sm-inline"> por página</span>'
147
152
  title: 'El número de resultados a mostrar por página'
148
153
  submit: 'Actualización'
149
154
  sort:
150
- label: 'Ordenar por %{field}'
155
+ label: 'Ordenar por %{field}' # TODO: Remove during major release
156
+ label_html: 'Ordenar<span class="d-none d-sm-inline"> por %{field}</span>'
151
157
  submit: 'Resultados de ordenación'
152
158
  form:
153
159
  search_field:
@@ -170,6 +176,9 @@ es:
170
176
  one: '<strong>1 de 1</strong>'
171
177
  other: '<strong>%{current}</strong> de <strong>%{total}</strong>'
172
178
  documents:
179
+ aria:
180
+ search_results: 'Resultados de la búsqueda'
181
+ limit_search: 'Limite su búsqueda'
173
182
  counter: '%{counter}.'
174
183
  facets:
175
184
  title: 'Limite su búsqueda'
@@ -215,5 +224,11 @@ es:
215
224
 
216
225
  entry_name:
217
226
  default: 'entrada'
227
+ grouped:
228
+ default: 'resultado agrupado'
218
229
 
219
230
  did_you_mean: '¿Quiere decir %{options}?'
231
+
232
+ main:
233
+ aria:
234
+ main_container: 'Contenido principal'
@@ -21,6 +21,10 @@ fr:
21
21
 
22
22
  blacklight:
23
23
  application_name: 'Blacklight'
24
+ skip_links:
25
+ main_content: 'Aller au contenu principal'
26
+ search_field: 'Aller à la recherche'
27
+ first_result: 'Aller au premier résultat de recherche'
24
28
  header_links:
25
29
  login: 'Mon compte'
26
30
  logout: 'Me déconnecter'
@@ -146,11 +150,13 @@ fr:
146
150
  invalid_solr_id: "Vous avez demandé une notice qui n'existe pas."
147
151
  per_page:
148
152
  label: '%{count}<span class="sr-only"> par page</span>'
149
- button_label: '%{count} par page'
153
+ button_label: '%{count} par page' # TODO: Remove during major release
154
+ button_label_html: '%{count}<span class="d-none d-sm-inline"> par page</span>'
150
155
  title: 'Nombre de résultats à afficher par page'
151
156
  submit: 'mettre à jour'
152
157
  sort:
153
- label: 'Trier par %{field}'
158
+ label: 'Trier par %{field}' # TODO: Remove during major release
159
+ label_html: 'Trier<span class="d-none d-sm-inline"> par %{field}</span>'
154
160
  submit: 'trier les résultats'
155
161
  form:
156
162
  search_field:
@@ -173,6 +179,9 @@ fr:
173
179
  one: '<b>1 sur 1</b>'
174
180
  other: '<b>%{current}</b> sur <b>%{total}</b>'
175
181
  documents:
182
+ aria:
183
+ search_results: 'Résultats de recherche'
184
+ limit_search: 'Limiter votre recherche'
176
185
  counter: '%{counter}. '
177
186
  facets:
178
187
  title: 'Limiter votre recherche'
@@ -219,5 +228,11 @@ fr:
219
228
 
220
229
  entry_name:
221
230
  default: 'résultat'
231
+ grouped:
232
+ default: 'résultat groupé'
222
233
 
223
234
  did_you_mean: 'Essayez peut-être avec : %{options}'
235
+
236
+ main:
237
+ aria:
238
+ main_container: 'Contenu principal'
@@ -13,7 +13,10 @@ hu:
13
13
 
14
14
  blacklight:
15
15
  application_name: 'Blacklight'
16
-
16
+ skip_links:
17
+ main_content: 'Ugrás a tartalomra'
18
+ search_field: 'Ugrás a keresésre'
19
+ first_result: 'Ugrás az első keresési eredményre'
17
20
  header_links:
18
21
  login: 'Belépés'
19
22
  logout: 'Kilépés'
@@ -136,11 +139,13 @@ hu:
136
139
  invalid_solr_id: "Elnézést, de az Ön által kért rekord nem létezik."
137
140
  per_page:
138
141
  label: '%{count}<span class="sr-only"> oldalanként</span>'
139
- button_label: '%{count} oldalanként'
142
+ button_label: '%{count} oldalanként' # TODO: Remove during major release
143
+ button_label_html: '%{count}<span class="d-none d-sm-inline"> oldalanként</span>'
140
144
  title: 'Az eredmények száma oldalanként'
141
145
  submit: 'Frissítés'
142
146
  sort:
143
- label: 'Rendezés %{field}'
147
+ label: 'Rendezés %{field}' # TODO: Remove during major release
148
+ label_html: 'Rendezés<span class="d-none d-sm-inline"> %{field}</span>'
144
149
  submit: 'Eredmények rendezése'
145
150
  form:
146
151
  search_field:
@@ -163,6 +168,9 @@ hu:
163
168
  one: '<strong>1 / 1</strong>'
164
169
  other: '<strong>%{current}</strong> / <strong>%{total}</strong>'
165
170
  documents:
171
+ aria:
172
+ search_results: 'Keresés eredményei'
173
+ limit_search: 'Szűrje tovább a keresését'
166
174
  counter: '%{counter}. '
167
175
  facets:
168
176
  title: 'Szűrje tovább a keresését'
@@ -208,5 +216,11 @@ hu:
208
216
 
209
217
  entry_name:
210
218
  default: 'bejegyzés'
219
+ grouped:
220
+ default: 'csoportosított eredmény'
211
221
 
212
222
  did_you_mean: 'Arra gondolt, hogy: %{options}?'
223
+
224
+ main:
225
+ aria:
226
+ main_container: 'Központi téma'
@@ -21,6 +21,10 @@ it:
21
21
 
22
22
  blacklight:
23
23
  application_name: 'Blacklight'
24
+ skip_links:
25
+ main_content: 'Vai al contenuto principale'
26
+ search_field: 'Vai alla ricerca'
27
+ first_result: 'Vai al primo risultato di ricerca'
24
28
  header_links:
25
29
  login: 'Login'
26
30
  logout: 'Log out'
@@ -143,11 +147,13 @@ it:
143
147
  invalid_solr_id: "Il numero di scheda richiesto non esiste."
144
148
  per_page:
145
149
  label: '%{count}<span class="sr-only"> per pagina</span>'
146
- button_label: '%{count} per pagina'
150
+ button_label: '%{count} per pagina' # TODO: Remove during major release
151
+ button_label_html: '%{count}<span class="d-none d-sm-inline"> per pagina</span>'
147
152
  title: 'Risultati per pagina'
148
153
  submit: 'Aggiorna'
149
154
  sort:
150
- label: 'Ordina per %{field}'
155
+ label: 'Ordina per %{field}' # TODO: Remove during major release
156
+ label_html: 'Ordina<span class="d-none d-sm-inline"> per %{field}</span>'
151
157
  submit: 'Ordina i risultati'
152
158
  form:
153
159
  search_field:
@@ -170,6 +176,9 @@ it:
170
176
  one: '<strong>1 di 1</strong>'
171
177
  other: '<strong>%{current}</strong> di <strong>%{total}</strong>'
172
178
  documents:
179
+ aria:
180
+ search_results: 'Risultati della ricerca'
181
+ limit_search: 'Affina la ricerca'
173
182
  counter: '%{counter}. '
174
183
  facets:
175
184
  title: 'Affina la ricerca'
@@ -215,5 +224,11 @@ it:
215
224
 
216
225
  entry_name:
217
226
  default: 'termine di ricerca'
227
+ grouped:
228
+ default: 'risultato raggruppato'
218
229
 
219
230
  did_you_mean: 'Intendevi digitare: %{options}?'
231
+
232
+ main:
233
+ aria:
234
+ main_container: 'Contenuto principale'
@@ -13,7 +13,10 @@ nl:
13
13
 
14
14
  blacklight:
15
15
  application_name: 'Blacklight'
16
-
16
+ skip_links:
17
+ main_content: 'Ga naar de hoofdinhoud'
18
+ search_field: 'Ga naar de zoekopdracht'
19
+ first_result: 'Ga naar het eerste zoekresultaat'
17
20
  header_links:
18
21
  login: 'Login'
19
22
  logout: 'Log Out'
@@ -136,11 +139,13 @@ nl:
136
139
  invalid_solr_id: "Sorry, u vroeg een onbestaande record op."
137
140
  per_page:
138
141
  label: '%{count}<span class="sr-only"> per pagina</span>'
139
- button_label: '%{count} per pagina'
142
+ button_label: '%{count} per pagina' # TODO: Remove during major release
143
+ button_label_html: '%{count}<span class="d-none d-sm-inline"> per pagina</span>'
140
144
  title: 'Toon aantal zoekresultaten per pagina'
141
145
  submit: 'Update'
142
146
  sort:
143
- label: 'Sorteer op %{field}'
147
+ label: 'Sorteer op %{field}' # TODO: Remove during major release
148
+ label_html: 'Sorteer<span class="d-none d-sm-inline"> op %{field}</span>'
144
149
  submit: 'sorteer resultaten'
145
150
  form:
146
151
  search_field:
@@ -163,6 +168,9 @@ nl:
163
168
  one: '<strong>1 van 1</strong>'
164
169
  other: '<strong>%{current}</strong> van <strong>%{total}</strong>'
165
170
  documents:
171
+ aria:
172
+ search_results: 'Zoek resultaten'
173
+ limit_search: 'Verfijn uw zoekopdracht'
166
174
  counter: '%{counter}. '
167
175
  facets:
168
176
  title: 'Verfijn uw zoekopdracht'
@@ -208,5 +216,11 @@ nl:
208
216
 
209
217
  entry_name:
210
218
  default: 'ingang'
219
+ grouped:
220
+ default: 'gegroepeerd resultaat'
211
221
 
212
222
  did_you_mean: 'Bedoelde u: %{options}?'
223
+
224
+ main:
225
+ aria:
226
+ main_container: 'Belangrijkste inhoud'