blacklight-spotlight 3.6.0.beta10 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spotlight/spotlight.esm.js +30 -30
  3. data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
  4. data/app/assets/javascripts/spotlight/spotlight.js +30 -30
  5. data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
  6. data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +0 -8
  7. data/app/assets/stylesheets/spotlight/_blacklight_overrides.scss +2 -1
  8. data/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +0 -5
  9. data/app/assets/stylesheets/spotlight/_catalog.scss +6 -3
  10. data/app/assets/stylesheets/spotlight/_mixins.scss +2 -1
  11. data/app/assets/stylesheets/spotlight/_pages.scss +2 -1
  12. data/app/assets/stylesheets/spotlight/_report_a_problem.scss +2 -1
  13. data/app/assets/stylesheets/spotlight/_translations.scss +0 -6
  14. data/app/assets/stylesheets/spotlight/_utilities.scss +0 -4
  15. data/app/components/spotlight/document_component.rb +1 -1
  16. data/app/javascript/spotlight/admin/block_mixins/plustextable.js +1 -1
  17. data/app/javascript/spotlight/admin/blocks/browse_block.js +2 -2
  18. data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +1 -1
  19. data/app/javascript/spotlight/admin/blocks/oembed_block.js +1 -1
  20. data/app/javascript/spotlight/admin/blocks/resources_block.js +3 -3
  21. data/app/javascript/spotlight/admin/blocks/solr_documents_carousel_block.js +5 -5
  22. data/app/javascript/spotlight/admin/blocks/solr_documents_features_block.js +5 -5
  23. data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +5 -5
  24. data/app/javascript/spotlight/admin/users.js +2 -2
  25. data/app/javascript/spotlight/user/report_a_problem.js +1 -1
  26. data/app/javascript/spotlight/user/zpr_links.js +3 -3
  27. data/app/models/sir_trevor_rails/blocks/solr_documents_carousel_block.rb +5 -2
  28. data/app/models/spotlight/resources/upload.rb +2 -2
  29. data/app/views/catalog/_add_tags.html.erb +4 -4
  30. data/app/views/catalog/_bulk_actions.html.erb +2 -2
  31. data/app/views/catalog/_change_visibility.html.erb +3 -3
  32. data/app/views/catalog/_remove_tags.html.erb +5 -5
  33. data/app/views/catalog/_save_search.html.erb +5 -5
  34. data/app/views/shared/_curated_features_navbar.html.erb +1 -1
  35. data/app/views/shared/_exhibit_navbar.html.erb +1 -1
  36. data/app/views/shared/_header_navbar.html.erb +1 -1
  37. data/app/views/shared/_user_util_links.html.erb +2 -2
  38. data/app/views/spotlight/admin_users/index.html.erb +6 -6
  39. data/app/views/spotlight/appearances/edit.html.erb +4 -4
  40. data/app/views/spotlight/browse/_search_box.html.erb +2 -2
  41. data/app/views/spotlight/browse/index.html.erb +1 -1
  42. data/app/views/spotlight/browse/show.html.erb +1 -1
  43. data/app/views/spotlight/bulk_updates/_download.html.erb +2 -2
  44. data/app/views/spotlight/bulk_updates/_upload.html.erb +17 -7
  45. data/app/views/spotlight/bulk_updates/edit.html.erb +3 -3
  46. data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
  47. data/app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb +1 -1
  48. data/app/views/spotlight/catalog/_document_visibility_control.html.erb +1 -1
  49. data/app/views/spotlight/catalog/_edit_default.html.erb +1 -1
  50. data/app/views/spotlight/contacts/_form.html.erb +3 -3
  51. data/app/views/spotlight/custom_fields/_form.html.erb +2 -2
  52. data/app/views/spotlight/custom_fields/form_group/_text.html.erb +3 -3
  53. data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +3 -3
  54. data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
  55. data/app/views/spotlight/dashboards/_analytics.html.erb +2 -2
  56. data/app/views/spotlight/exhibits/_contact.html.erb +1 -1
  57. data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
  58. data/app/views/spotlight/exhibits/_form.html.erb +4 -4
  59. data/app/views/spotlight/exhibits/_import.html.erb +1 -1
  60. data/app/views/spotlight/exhibits/_languages.html.erb +1 -1
  61. data/app/views/spotlight/exhibits/edit.html.erb +6 -6
  62. data/app/views/spotlight/exhibits/index.html.erb +3 -3
  63. data/app/views/spotlight/featured_images/_form.html.erb +4 -4
  64. data/app/views/spotlight/featured_images/_upload_form.html.erb +3 -3
  65. data/app/views/spotlight/home_pages/_edit_page_link.html.erb +1 -1
  66. data/app/views/spotlight/job_trackers/show.html.erb +3 -3
  67. data/app/views/spotlight/locks/_lock.html.erb +1 -1
  68. data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +6 -2
  69. data/app/views/spotlight/pages/_edit_page_link.html.erb +1 -1
  70. data/app/views/spotlight/pages/_form.html.erb +8 -8
  71. data/app/views/spotlight/pages/_order_pages.html.erb +1 -1
  72. data/app/views/spotlight/pages/_view_type_group.html.erb +1 -1
  73. data/app/views/spotlight/resources/_external_resources_form.html.erb +1 -0
  74. data/app/views/spotlight/resources/_form.html.erb +1 -1
  75. data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
  76. data/app/views/spotlight/resources/iiif/_form.html.erb +1 -1
  77. data/app/views/spotlight/resources/json_upload/_form.html.erb +1 -1
  78. data/app/views/spotlight/resources/new.html.erb +1 -0
  79. data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
  80. data/app/views/spotlight/roles/index.html.erb +4 -4
  81. data/app/views/spotlight/search_configurations/_default_per_page.html.erb +1 -1
  82. data/app/views/spotlight/search_configurations/_document_index_view_types.html.erb +7 -2
  83. data/app/views/spotlight/search_configurations/_facets.html.erb +1 -1
  84. data/app/views/spotlight/search_configurations/edit.html.erb +3 -3
  85. data/app/views/spotlight/searches/_form.html.erb +6 -6
  86. data/app/views/spotlight/searches/index.html.erb +4 -4
  87. data/app/views/spotlight/shared/_dd3_item.html.erb +2 -2
  88. data/app/views/spotlight/shared/_exhibit_sidebar.html.erb +1 -1
  89. data/app/views/spotlight/shared/_locale_picker.html.erb +1 -1
  90. data/app/views/spotlight/shared/_report_a_problem.html.erb +1 -1
  91. data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +2 -2
  92. data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +1 -1
  93. data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +1 -1
  94. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
  95. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +4 -4
  96. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +1 -1
  97. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +2 -2
  98. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
  99. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
  100. data/app/views/spotlight/sites/_exhibit.html.erb +4 -4
  101. data/app/views/spotlight/sites/edit.html.erb +2 -2
  102. data/app/views/spotlight/sites/edit_exhibits.html.erb +4 -4
  103. data/app/views/spotlight/tags/index.html.erb +1 -1
  104. data/app/views/spotlight/translations/_browse_categories.html.erb +8 -8
  105. data/app/views/spotlight/translations/_general.html.erb +18 -18
  106. data/app/views/spotlight/translations/_groups.html.erb +1 -1
  107. data/app/views/spotlight/translations/_import.html.erb +31 -18
  108. data/app/views/spotlight/translations/_metadata.html.erb +6 -6
  109. data/app/views/spotlight/translations/_page.html.erb +1 -1
  110. data/app/views/spotlight/translations/_search_fields.html.erb +9 -9
  111. data/app/views/spotlight/translations/edit.html.erb +6 -6
  112. data/config/locales/spotlight.en.yml +7 -2
  113. data/lib/generators/spotlight/templates/catalog_controller.rb +4 -0
  114. data/lib/spotlight/version.rb +1 -1
  115. data/vendor/assets/javascripts/bootstrap-tagsinput.js +1 -1
  116. data/vendor/assets/javascripts/sir-trevor.js +1 -1
  117. metadata +17 -11
@@ -2,7 +2,7 @@
2
2
  <%= f.text_field :url, help: t('.url-field.help'), label: t('.manifest') %>
3
3
  <div class="form-actions">
4
4
  <div class="primary-actions">
5
- <%= cancel_link @resource, :back, class: 'btn-sizing' %>
5
+ <%= cancel_link @resource, :back, class: 'btn btn-link', role: 'button' %>
6
6
  <%= f.submit t('.add_item'), class: 'btn btn-primary' %>
7
7
  </div>
8
8
  </div>
@@ -3,7 +3,7 @@
3
3
  <%= f.url_field :json, type: "file", label: t('.file_label') %>
4
4
  <div class="form-actions">
5
5
  <div class="primary-actions">
6
- <%= cancel_link @resource, :back, class: 'btn-sizing' %>
6
+ <%= cancel_link @resource, :back, class: 'btn btn-link', role: 'button' %>
7
7
  <%= f.submit t('.add_item'), class: 'btn btn-primary' %>
8
8
  </div>
9
9
  </div>
@@ -13,6 +13,7 @@
13
13
  role: 'tab',
14
14
  class: "nav-link #{"active" if @tab == tab_name}",
15
15
  'data-toggle' => 'tab',
16
+ 'data-bs-toggle' => 'tab',
16
17
  'aria-controls' => "#{tab_name}" %>
17
18
  </li>
18
19
  <% end %>
@@ -12,7 +12,7 @@
12
12
  <div class="form-actions">
13
13
  <div class="primary-actions">
14
14
  <%= hidden_field_tag :tab, 'upload', id: nil %>
15
- <%= cancel_link @resource, :back, class: 'btn-sizing' %>
15
+ <%= cancel_link @resource, :back, class: 'btn btn-link', role: 'button' %>
16
16
  <%= f.submit t('.add_item_and_continue'), name: 'add-and-continue', class: 'btn btn-secondary' %>
17
17
  <%= f.submit t('.add_item'), class: 'btn btn-primary' %>
18
18
  </div>
@@ -18,7 +18,7 @@
18
18
  <td></td>
19
19
  <td colspan=2>
20
20
  <div class="form-actions d-flex justify-content-end">
21
- <%= cancel_link r.object, '#', class: 'btn-sizing', data: {behavior: 'cancel-edit' } %>
21
+ <%= cancel_link r.object, '#', class: 'btn btn-link', role: 'button', data: { behavior: 'cancel-edit' } %>
22
22
  <%=f.submit nil, class: 'btn btn-primary'%>
23
23
  </div>
24
24
  </td>
@@ -27,11 +27,11 @@
27
27
  <tr data-show-for="<%= r.object.id %>" class="<%= 'invite-pending' if r.object.user.invite_pending? %>">
28
28
  <td>
29
29
  <%= r.object.user.to_s %>
30
- <span class='badge badge-warning pending-label'><%= t('.invite_pending') %></span>
30
+ <span class='badge badge-warning bg-warning pending-label'><%= t('.invite_pending') %></span>
31
31
  </td>
32
32
  <td><%= r.object.role.humanize %></td>
33
33
  <td>
34
- <%= link_to "#", data: {behavior: 'edit-user', target: r.object.id } do %>
34
+ <%= link_to "#", data: { behavior: 'edit-user', target: r.object.id } do %>
35
35
  <%= blacklight_icon('edit') %>
36
36
  <% end %>
37
37
  </td>
@@ -43,7 +43,7 @@
43
43
  </td>
44
44
  <td colspan=2>
45
45
  <div class="form-actions d-flex justify-content-end">
46
- <%= cancel_link r.object, '#', class: 'btn-sizing', data: {behavior: 'cancel-edit' } %>
46
+ <%= cancel_link r.object, '#', class: 'btn btn-link', role: 'button', data: { behavior: 'cancel-edit' } %>
47
47
  <%=f.submit nil, class: 'btn btn-primary'%>
48
48
  </div>
49
49
  </td>
@@ -1,4 +1,4 @@
1
- <%= f.form_group :default_per_page, label: { text: t(:'.label'), class: 'pt-0'} do %>
1
+ <%= f.form_group :default_per_page, label: { text: t(:'.label'), class: 'pt-0 col-md-3 text-md-right text-md-end' } do %>
2
2
  <% @blacklight_configuration.default_blacklight_config.per_page.each do |key| %>
3
3
  <%= f.radio_button :default_per_page, key, label: key.to_s %>
4
4
  <% end %>
@@ -1,7 +1,12 @@
1
- <%= f.form_group :document_index_view_types, label: {text: t(:'.label'), class: 'pt-0'} do %>
1
+ <%= f.form_group :document_index_view_types, label: { text: t(:'.label'), class: 'pt-0 col-md-3 text-md-right text-md-end' } do %>
2
2
  <%= f.fields_for :document_index_view_types, @blacklight_configuration.document_index_view_types_selected_hash do |vt| %>
3
3
  <% @blacklight_configuration.default_blacklight_config.view.select { |_k, v| v.if != false }.each do |key, view| %>
4
- <%= vt.check_box key, label: view.display_label %>
4
+ <div class="row">
5
+ <div class="col">
6
+ <%= vt.check_box_without_bootstrap key %>
7
+ <%= vt.label key, label: view.display_label %>
8
+ </div>
9
+ </div>
5
10
  <% end %>
6
11
  <% end %>
7
12
  <% end %>
@@ -15,7 +15,7 @@
15
15
  <% end %>
16
16
  </div>
17
17
  <% when :additional_options %>
18
- <div class="facet-metadata mr-3">
18
+ <div class="facet-metadata mr-3 me-3">
19
19
  <%= render partial: 'facet_metadata', locals: { blacklight_config: @blacklight_configuration.blacklight_config, field_config: config, metadata: metadata } %>
20
20
  </div>
21
21
  <% else %>
@@ -8,13 +8,13 @@
8
8
  <div role="tabpanel">
9
9
  <ul class="nav nav-tabs" role="tablist">
10
10
  <li role="presentation" class="nav-item">
11
- <a href="#options" aria-controls="options" role="tab" data-toggle="tab" class="nav-link active"><%= t(:'.tab.options') %></a>
11
+ <a href="#options" aria-controls="options" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link active"><%= t(:'.tab.options') %></a>
12
12
  </li>
13
13
  <li role="presentation" class="nav-item">
14
- <a href="#facets" aria-controls="facets" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.tab.facets') %></a>
14
+ <a href="#facets" aria-controls="facets" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link"><%= t(:'.tab.facets') %></a>
15
15
  </li>
16
16
  <li role="presentation" class="nav-item">
17
- <a href="#results" aria-controls="results" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.tab.results') %></a>
17
+ <a href="#results" aria-controls="results" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link"><%= t(:'.tab.results') %></a>
18
18
  </li>
19
19
  </ul>
20
20
  <div class="tab-content">
@@ -13,19 +13,19 @@
13
13
  <div role="tabpanel">
14
14
  <ul class="nav nav-tabs" role="tablist">
15
15
  <li role="presentation" class="nav-item">
16
- <a href="#search-description" aria-controls="search-description" role="tab" data-toggle="tab" class="nav-link active"><%= t(:'.search_description') %></a>
16
+ <a href="#search-description" aria-controls="search-description" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link active"><%= t(:'.search_description') %></a>
17
17
  </li>
18
18
 
19
19
  <li role="presentation" class="nav-item">
20
- <a href="#search-group" aria-controls="search-group" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.search_group') %></a>
20
+ <a href="#search-group" aria-controls="search-group" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link"><%= t(:'.search_group') %></a>
21
21
  </li>
22
22
 
23
23
  <li role="presentation" class="nav-item">
24
- <a href="#search-masthead" aria-controls="search-masthead" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.search_masthead') %></a>
24
+ <a href="#search-masthead" aria-controls="search-masthead" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link"><%= t(:'.search_masthead') %></a>
25
25
  </li>
26
26
 
27
27
  <li role="presentation" class="nav-item">
28
- <a href="#search-thumbnail" aria-controls="search-thumbnail" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.search_thumbnail') %></a>
28
+ <a href="#search-thumbnail" aria-controls="search-thumbnail" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link"><%= t(:'.search_thumbnail') %></a>
29
29
  </li>
30
30
  </ul>
31
31
 
@@ -44,7 +44,7 @@
44
44
  <% end %>
45
45
  <% end %>
46
46
  <% unless @search.query_params.blank? %>
47
- <div class="form-group row">
47
+ <div class="form-group mb-3 row">
48
48
  <label class="col-md-2 col-sm-2 col-form-label"><%= t(:".query_params") %></label>
49
49
  <div class="col-md-7 col-sm-7">
50
50
  <div class="appliedParams card card-body bg-light d-block">
@@ -81,7 +81,7 @@
81
81
 
82
82
  <div class="form-actions">
83
83
  <div class="primary-actions">
84
- <%= cancel_link @search,exhibit_searches_path(@exhibit), class: 'btn-sizing' %>
84
+ <%= cancel_link @search,exhibit_searches_path(@exhibit), class: 'btn btn-link', role: 'button' %>
85
85
  <%= f.submit nil, class: 'btn btn-primary' %>
86
86
  </div>
87
87
  </div>
@@ -15,11 +15,11 @@
15
15
  <div role="tabpanel">
16
16
  <ul class="nav nav-tabs" role="tablist">
17
17
  <li role="presentation" class="nav-item">
18
- <a href="#browse-categories" aria-controls="browse-categories" role="tab" data-toggle="tab" class="nav-link active"><%= t(:'.categories_header') %></a>
18
+ <a href="#browse-categories" aria-controls="browse-categories" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link active"><%= t(:'.categories_header') %></a>
19
19
  </li>
20
20
 
21
21
  <li role="presentation" class="nav-item">
22
- <a href="#browse-groups" aria-controls="browse-groups" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.groups_header') %></a>
22
+ <a href="#browse-groups" aria-controls="browse-groups" role="tab" data-toggle="tab" data-bs-toggle="tab" class="nav-link"><%= t(:'.groups_header') %></a>
23
23
  </li>
24
24
  </ul>
25
25
  <div class="tab-content">
@@ -40,7 +40,7 @@
40
40
  </ol>
41
41
  </div>
42
42
 
43
- <div class="float-right">
43
+ <div class="float-right float-end">
44
44
  <%= submit_tag t(:'helpers.action.update_all'), class: "btn btn-primary" %>
45
45
  </div>
46
46
  <% end %>
@@ -57,7 +57,7 @@
57
57
  </ol>
58
58
  </div>
59
59
 
60
- <div class="float-right">
60
+ <div class="float-right float-end">
61
61
  <%= submit_tag t(:'helpers.action.update_all'), class: "btn btn-primary" %>
62
62
  </div>
63
63
  <% end %>
@@ -22,7 +22,7 @@
22
22
  <div class="flex-grow-1 align-self-center">
23
23
  <h3 class="h6 card-title mb-0">
24
24
  <%= field.hidden_field :weight, value: index, 'data-property' => 'weight' %>
25
- <%= field.check_box enabled_method, inline: true, checked: field.object.public_send(enabled_method), hide_label: true, title: label %>
25
+ <%= field.check_box_without_bootstrap enabled_method, class: 'mr-3 me-3', checked: field.object.public_send(enabled_method), hide_label: true, title: label %>
26
26
  <span class="d-inline-block w-75" data-in-place-edit-target=".edit-in-place" data-in-place-edit-field-target="[data-edit-field-target='true']">
27
27
  <a href="#edit-in-place" class="field-label edit-in-place"><%= label %></a>
28
28
  <%= field.hidden_field label_method, value: label, class: 'form-control form-control-sm title-field', data: {:"edit-field-target" => 'true', default_value: default_value } %>
@@ -42,7 +42,7 @@
42
42
 
43
43
  <% if additional_content.present? %>
44
44
  <div class="d-flex">
45
- <button class="btn btn-link collapse-toggle collapsed" type="button" data-toggle="collapse" data-target="#<%= id.parameterize %>_options" aria-expanded="false" aria-controls="<%= id.parameterize %>_options">
45
+ <button class="btn btn-link collapse-toggle collapsed" type="button" data-toggle="collapse" data-bs-toggle="collapse" data-target="#<%= id.parameterize %>_options" data-bs-target="#<%= id.parameterize %>_options" aria-expanded="false" aria-controls="<%= id.parameterize %>_options">
46
46
  Options
47
47
  </button>
48
48
  <span class="collapse-chevron">❯</span>
@@ -1,4 +1,4 @@
1
- <h2 class="sr-only"><%= t(:'.header') %></h2>
1
+ <h2 class="sr-only visually-hidden"><%= t(:'.header') %></h2>
2
2
  <ul class="nav sidenav top-level flex-column">
3
3
  <%= nav_link t(:'spotlight.curation.sidebar.dashboard'), spotlight.exhibit_dashboard_path(current_exhibit) %>
4
4
  <% if current_exhibit.analytics_provider&.enabled? %>
@@ -1,6 +1,6 @@
1
1
  <% if current_exhibit && current_exhibit.languages.accessible_by(current_ability).any? %>
2
2
  <li class="nav-item dropdown">
3
- <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
3
+ <a class="nav-link dropdown-toggle" data-toggle="dropdown" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
4
4
  <%= Spotlight::Language.new(locale: I18n.locale).to_native %>
5
5
  </a>
6
6
  <ul class="dropdown-menu">
@@ -12,7 +12,7 @@
12
12
  <div class="form-actions row">
13
13
  <div class="col offset-sm-3">
14
14
  <%= f.submit nil, class: 'btn btn-primary' %>
15
- <%= link_to t(:'helpers.action.cancel'), '#', class: 'btn-sizing', data: { 'behavior' => 'cancel-link' } %>
15
+ <%= link_to t(:'helpers.action.cancel'), '#', class: 'btn btn-link', role: 'button', data: { 'behavior' => 'cancel-link' } %>
16
16
  </div>
17
17
  </div>
18
18
  <% end %>
@@ -4,12 +4,12 @@
4
4
  <div class="d-flex flex-column flex-md-row py-2">
5
5
  <div class="d-flex justify-content-between align-items-baseline">
6
6
  <h2 class="m-0"><%= group.title %></h2>
7
- <div class="pl-3">
7
+ <div class="pl-3 ps-3">
8
8
  <%= link_to t(:'.view_all'), exhibit_browse_groups_path(current_exhibit, group) %>
9
9
  </div>
10
10
  </div>
11
11
  <% if group.searches.count > 1 %>
12
- <ul class="browse-group-categories-controls p-0 pt-2 pt-md-0 ml-md-auto mb-0 d-flex justify-content-center align-items-end">
12
+ <ul class="browse-group-categories-controls p-0 pt-2 pt-md-0 ml-md-auto ms-md-auto mb-0 d-flex justify-content-center align-items-end">
13
13
  <li class="prev px-1 overflow-hidden">
14
14
  <%= blacklight_icon 'arrow-alt-circle-left' %>
15
15
  </li>
@@ -1,5 +1,5 @@
1
1
  <div class="content-block item-text row d-block clearfix">
2
- <div class="<%= 'col-md-6' if oembed_block.text? %> col-12 <%= oembed_block.content_align == 'right' ? 'float-right' : 'float-left' %> oembed-block">
2
+ <div class="<%= 'col-md-6' if oembed_block.text? %> col-12 <%= oembed_block.content_align == 'right' ? 'float-right float-end' : 'float-left float-start' %> oembed-block">
3
3
  <%= render_oembed_tag oembed_block.url %>
4
4
  </div>
5
5
 
@@ -11,7 +11,7 @@
11
11
  <% views = blacklight_view_config_for_search_block(search_results_block) %>
12
12
  <% if views.length > 1 -%>
13
13
  <div id="sortAndPerPage" class="clearfix my-3" role="navigation" aria-label="<%= t('blacklight.search.per_page.aria_label', default: 'Results navigation')%>">
14
- <div class="search-widgets float-right">
14
+ <div class="search-widgets float-right float-end">
15
15
  <%= render partial: 'view_type_group', locals: { block: search_results_block } %>
16
16
  </div>
17
17
  </div>
@@ -3,7 +3,7 @@
3
3
  <div class="content-block items-block row d-block clearfix">
4
4
  <% if solr_documents_block.documents? %>
5
5
 
6
- <div class="items-col spotlight-flexbox <%= solr_documents_block.text? ? "col-md-6" : "col-md-12" %> <%= solr_documents_block.content_align == 'right' ? 'float-right' : 'float-left' %>">
6
+ <div class="items-col spotlight-flexbox <%= solr_documents_block.text? ? "col-md-6" : "col-md-12" %> <%= solr_documents_block.content_align == 'right' ? 'float-right float-end' : 'float-left float-start' %>">
7
7
  <% solr_documents_block.each_document do |block_options, document| %>
8
8
  <% doc_presenter = document_presenter(document) %>
9
9
  <div class="box" data-id="<%= document.id %>">
@@ -3,7 +3,7 @@
3
3
  <% html_id = "carousel-#{solr_documents_carousel_block.object_id}" %>
4
4
  <div class="content-block carousel-block carousel-height-<%= solr_documents_carousel_block.max_height %>">
5
5
  <% if solr_documents_carousel_block.documents? %>
6
- <div id="<%= html_id %>" class="carousel slide" data-ride="carousel" data-interval="<%= solr_documents_carousel_block.interval %>">
6
+ <div id="<%= html_id %>" class="carousel slide" data-ride="carousel" data-interval="<%= solr_documents_carousel_block.interval %>" <%= "data-bs-ride=carousel data-bs-interval=#{solr_documents_carousel_block.interval}" if solr_documents_carousel_block.autoplay? %>>
7
7
  <div class="carousel-inner text-center">
8
8
  <% solr_documents_carousel_block.each_document.each_with_index do |(block_options, document), index| %>
9
9
  <% doc_presenter = document_presenter(document) %>
@@ -29,7 +29,7 @@
29
29
  </div>
30
30
  </div>
31
31
  <% indicators << capture do %>
32
- <li data-target="#<%= html_id %>" data-slide-to="<%= index %>" class="<%= 'active' if index == 0 %>"></li>
32
+ <li data-target="#<%= html_id %>" data-bs-target="#<%= html_id %>" data-slide-to="<%= index %>" data-bs-slide-to="<%= index %>" class="<%= 'active' if index == 0 %>"></li>
33
33
  <% end %>
34
34
  <% end %>
35
35
  </div>
@@ -40,10 +40,10 @@
40
40
  </ol>
41
41
 
42
42
  <!-- Controls -->
43
- <a class="left carousel-control-prev" href="#<%= html_id %>" data-slide="prev">
43
+ <a class="left carousel-control-prev" href="#<%= html_id %>" data-slide="prev" data-bs-slide="prev">
44
44
  <%= blacklight_icon('arrow_back_ios') %>
45
45
  </a>
46
- <a class="right carousel-control-next" href="#<%= html_id %>" data-slide="next">
46
+ <a class="right carousel-control-next" href="#<%= html_id %>" data-slide="next" data-bs-slide="next">
47
47
  <%= blacklight_icon('arrow_forward_ios') %>
48
48
  </a>
49
49
  </div>
@@ -3,7 +3,7 @@
3
3
  <div class="content-block items-block row d-block clearfix">
4
4
 
5
5
  <% if solr_documents_embed_block.documents? %>
6
- <div class="items-col <%= solr_documents_embed_block.text? ? "col-md-6" : "col-md-12" %> <%= solr_documents_embed_block.content_align == 'right' ? 'float-right' : 'float-left' %>">
6
+ <div class="items-col <%= solr_documents_embed_block.text? ? "col-md-6" : "col-md-12" %> <%= solr_documents_embed_block.content_align == 'right' ? 'float-right float-end' : 'float-left float-start' %>">
7
7
  <% unless solr_documents_embed_block.text? %>
8
8
  <% unless solr_documents_embed_block.title.blank? %>
9
9
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div class="content-block carousel-block item-features">
6
6
  <% if solr_documents_features_block.documents? %>
7
- <div id="<%= html_id %>" class="carousel" data-ride="carousel" data-interval="false">
7
+ <div id="<%= html_id %>" class="carousel" data-ride="carousel" data-interval="false">
8
8
  <div class="row">
9
9
  <div class="col-sm-6">
10
10
  <div class="carousel-inner">
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
 
23
23
  <% indicators << capture do %>
24
- <li data-target="#<%= html_id %>" data-slide-to="<%= index %>" class="list-group-item <%= 'active' if index == 0 %>">
24
+ <li data-target="#<%= html_id %>" data-bs-target="#<%= html_id %>" data-slide-to="<%= index %>" data-bs-slide-to="<%= index %>" class="list-group-item <%= 'active' if index == 0 %>">
25
25
  <% caption_text = solr_documents_features_block.document_caption(doc_presenter, solr_documents_features_block.primary_caption_field, default: Spotlight::PageConfigurations::DOCUMENT_TITLE_KEY) %>
26
26
 
27
27
  <a href="#" title="<%= caption_text %>">
@@ -1,6 +1,6 @@
1
1
  <% solr_documents_grid_block.with_solr_helper(self) %>
2
2
  <div class="content-block item-grid-block row d-block clearfix">
3
- <div class="items-col align-content-start justify-content-between flex-wrap <%= solr_documents_grid_block.text? ? 'col-md-9' : 'col-md-12' %> <%= solr_documents_grid_block.content_align == 'right' ? 'float-right' : 'float-left' %>">
3
+ <div class="items-col align-content-start justify-content-between flex-wrap <%= solr_documents_grid_block.text? ? 'col-md-9' : 'col-md-12' %> <%= solr_documents_grid_block.content_align == 'right' ? 'float-right float-end' : 'float-left float-start' %>">
4
4
  <% if solr_documents_grid_block.documents? %>
5
5
  <% solr_documents_grid_block.each_document.each_with_index do |(block_options, document), index| %>
6
6
  <% doc_presenter = document_presenter(document) %>
@@ -1,5 +1,5 @@
1
1
  <div class="content-block item-text row d-block clearfix">
2
- <div class="items-col spotlight-flexbox <%= 'col-md-6' if uploaded_items_block.text? %> col-12 <%= uploaded_items_block.content_align == 'right' ? 'float-right' : 'float-left' %> uploaded-items-block">
2
+ <div class="items-col spotlight-flexbox <%= 'col-md-6' if uploaded_items_block.text? %> col-12 <%= uploaded_items_block.content_align == 'right' ? 'float-right float-end' : 'float-left float-start' %> uploaded-items-block">
3
3
  <% if uploaded_items_block.files.present? %>
4
4
  <% uploaded_items_block.files.each do |file| %>
5
5
  <div class="box" data-id="<%= file[:id] %>">
@@ -11,8 +11,8 @@
11
11
  </div>
12
12
 
13
13
  </td>
14
- <td class="text-right"><%= exhibit.published? ? t(:'.published') : t(:'.unpublished') %></td>
15
- <td class="text-right"><%= exhibit.requested_by %></td>
16
- <td class="text-right"><%= l exhibit.created_at, format: :long %></td>
17
- <td class="text-right"><%= l exhibit.updated_at, format: :long %></td>
14
+ <td class="text-right text-end"><%= exhibit.published? ? t(:'.published') : t(:'.unpublished') %></td>
15
+ <td class="text-right text-end"><%= exhibit.requested_by %></td>
16
+ <td class="text-right text-end"><%= l exhibit.created_at, format: :long %></td>
17
+ <td class="text-right text-end"><%= l exhibit.updated_at, format: :long %></td>
18
18
  </tr>
@@ -3,10 +3,10 @@
3
3
  <%= bootstrap_form_for @site, url: spotlight.site_path, layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10' do |f| %>
4
4
  <ul class="nav nav-tabs" role="tablist">
5
5
  <li role="presentation" class="nav-item">
6
- <a href="#basic" class="active nav-link" aria-controls="basic" role="tab" data-toggle="tab"><%= t(:'.basic_settings.heading') %></a>
6
+ <a href="#basic" class="active nav-link" aria-controls="basic" role="tab" data-toggle="tab" data-bs-toggle="tab"><%= t(:'.basic_settings.heading') %></a>
7
7
  </li>
8
8
  <li role="presentation" class="nav-item">
9
- <a href="#site-masthead" class="nav-link" aria-controls="site-masthead" role="tab" data-toggle="tab"><%= t(:'.site_masthead.heading') %></a>
9
+ <a href="#site-masthead" class="nav-link" aria-controls="site-masthead" role="tab" data-toggle="tab" data-bs-toggle="tab"><%= t(:'.site_masthead.heading') %></a>
10
10
  </li>
11
11
  </ul>
12
12
  <div class="tab-content">
@@ -5,10 +5,10 @@
5
5
  <thead>
6
6
  <tr>
7
7
  <th><%= Spotlight::Exhibit.human_attribute_name(:title) %></th>
8
- <th class="text-right"><%= Spotlight::Exhibit.human_attribute_name(:published) %></th>
9
- <th class="text-right"><%= Spotlight::Exhibit.human_attribute_name(:requested_by) %></th>
10
- <th class="text-right"><%= Spotlight::Exhibit.human_attribute_name(:created_at) %></th>
11
- <th class="text-right"><%= Spotlight::Exhibit.human_attribute_name(:updated_at) %></th>
8
+ <th class="text-right text-end"><%= Spotlight::Exhibit.human_attribute_name(:published) %></th>
9
+ <th class="text-right text-end"><%= Spotlight::Exhibit.human_attribute_name(:requested_by) %></th>
10
+ <th class="text-right text-end"><%= Spotlight::Exhibit.human_attribute_name(:created_at) %></th>
11
+ <th class="text-right text-end"><%= Spotlight::Exhibit.human_attribute_name(:updated_at) %></th>
12
12
  </tr>
13
13
  </thead>
14
14
  <tbody class="table metadata_fields dd dd-list" data-behavior="nestable" data-max-depth="1" data-list-node-name="tbody" data-item-node-name="tr" data-expand-btn-HTML=" " data-collapse-btn-HTML=" ">
@@ -16,7 +16,7 @@
16
16
  </ul>
17
17
  <% end %>
18
18
 
19
- <div class="float-right">
19
+ <div class="float-right float-end">
20
20
  <%= submit_tag t(:'helpers.action.update_all'), class: "btn btn-primary" %>
21
21
  </div>
22
22
  <% end %>
@@ -4,7 +4,7 @@
4
4
  <%= hidden_field_tag :language, @language %>
5
5
  <%= hidden_field_tag :tab, 'browse', id: nil %>
6
6
  <div class="row">
7
- <div class="col-4 text-right">
7
+ <div class="col-4 text-right text-end">
8
8
  <span class="browse-translations-header">
9
9
  <%= t :'.default_language_column_label' %>
10
10
  </span>
@@ -21,7 +21,7 @@
21
21
  <%= f.fields_for :translations, title_translation do |translation_fields| %>
22
22
  <%= translation_fields.hidden_field :key %>
23
23
  <%= translation_fields.hidden_field :locale %>
24
- <div data-translation-progress-item="true" class="row form-group browse-category-title">
24
+ <div data-translation-progress-item="true" class="row form-group mb-3 browse-category-title">
25
25
  <%= translation_fields.label :value, search[:title], class: 'col-form-label col-4' %>
26
26
  <div class="col-7">
27
27
  <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
@@ -37,10 +37,10 @@
37
37
  <% end %>
38
38
 
39
39
  <% subtitle_translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{search.slug}.subtitle", locale: @language) %>
40
- <div data-translation-progress-item="true" class="row form-group browse-category-subtitle">
40
+ <div data-translation-progress-item="true" class="row form-group mb-3 browse-category-subtitle">
41
41
  <div class="col-7 offset-4">
42
42
  <%= f.fields_for :translations, subtitle_translation do |translation_fields| %>
43
- <%= button_tag 'type' => 'button', class: 'btn btn-text collapse-toggle collapsed translation-subtitle-toggle', 'data-toggle': 'collapse', 'data-target': "#browse_category_subtitle_#{search.id}", 'aria-expanded': 'false', 'aria-controls': "#browse_category_subtitle_#{search.id}" do %>
43
+ <%= button_tag 'type' => 'button', class: 'btn btn-text collapse-toggle collapsed translation-subtitle-toggle', 'data-toggle': 'collapse','data-bs-toggle': 'collapse', 'data-target': "#browse_category_subtitle_#{search.id}", 'data-bs-target': "#browse_category_subtitle_#{search.id}", 'aria-expanded': 'false', 'aria-controls': "#browse_category_subtitle_#{search.id}" do %>
44
44
  <%= translation_fields.label :value, t(:'.subtitle_label') %>
45
45
  <% end %>
46
46
  <span class="collapse-chevron">❯</span>
@@ -49,7 +49,7 @@
49
49
  <%= translation_fields.hidden_field :locale %>
50
50
  <div id="browse_category_subtitle_<%= search.id %>" class="card card-body collapse panel-translation">
51
51
  <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
52
- <small class="form-text text-muted"><%= search[:subtitle] %></small>
52
+ <div class="form-text text-muted mb-3"><%= search[:subtitle] %></div>
53
53
  </div>
54
54
  <% end %>
55
55
  </div>
@@ -63,10 +63,10 @@
63
63
  </div>
64
64
 
65
65
  <% description_translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{search.slug}.long_description", locale: @language) %>
66
- <div data-translation-progress-item="true" class="row form-group browse-category-description">
66
+ <div data-translation-progress-item="true" class="row form-group mb-3 browse-category-description">
67
67
  <div class="col-7 offset-4">
68
68
  <%= f.fields_for :translations, description_translation do |translation_fields| %>
69
- <%= button_tag 'type' => 'button', class: 'btn btn-text collapse-toggle collapsed translation-description-toggle', 'data-toggle': 'collapse', 'data-target': "#browse_category_description_#{search.id}", 'aria-expanded': 'false', 'aria-controls': "#browse_category_description_#{search.id}" do %>
69
+ <%= button_tag 'type' => 'button', class: 'btn btn-text collapse-toggle collapsed translation-description-toggle', 'data-toggle': 'collapse', 'data-bs-toggle': 'collapse', 'data-target': "#browse_category_description_#{search.id}", 'data-bs-target': "#browse_category_description_#{search.id}", 'aria-expanded': 'false', 'aria-controls': "#browse_category_description_#{search.id}" do %>
70
70
  <%= translation_fields.label :value, t(:'.description_label') %>
71
71
  <% end %>
72
72
  <span class="collapse-chevron">❯</span>
@@ -75,7 +75,7 @@
75
75
  <%= translation_fields.hidden_field :locale %>
76
76
  <div id="browse_category_description_<%= search.id %>" class="card card-body collapse panel-translation">
77
77
  <%= translation_fields.text_area_without_bootstrap :value, class: 'form-control' %>
78
- <small class="form-text text-muted"><%= search[:long_description] %></small>
78
+ <div class="form-text text-muted mb-3"><%= search[:long_description] %></div>
79
79
  </div>
80
80
  <% end %>
81
81
  </div>
@@ -12,13 +12,13 @@
12
12
  <%= f.fields_for :translations, translation do |translation_fields| %>
13
13
  <%= translation_fields.hidden_field :key %>
14
14
  <%= translation_fields.hidden_field :locale %>
15
- <div data-translation-progress-item='true' class='row form-group translation-form translation-basic-settings-title'>
15
+ <div data-translation-progress-item='true' class='row form-group mb-3 translation-form translation-basic-settings-title'>
16
16
  <%= translation_fields.label :value, t('.basic_settings.title'), class: 'col-form-label col-12 col-sm-2' %>
17
17
  <div class='col-11 col-sm-9 card card-body panel-translation'>
18
18
  <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
19
- <small class="form-text text-muted">
19
+ <div class="form-text text-muted mb-3">
20
20
  <%= current_exhibit[:title] %>
21
- </small>
21
+ </div>
22
22
  </div>
23
23
  <div class='col-1'>
24
24
  <% if translation.value.present? %>
@@ -33,13 +33,13 @@
33
33
  <%= f.fields_for :translations, translation do |translation_fields| %>
34
34
  <%= translation_fields.hidden_field :key %>
35
35
  <%= translation_fields.hidden_field :locale %>
36
- <div data-translation-progress-item='true' class='row form-group translation-form translation-basic-settings-subtitle'>
36
+ <div data-translation-progress-item='true' class='row form-group mb-3 translation-form translation-basic-settings-subtitle'>
37
37
  <%= translation_fields.label :value, t('.basic_settings.subtitle'), class: 'col-form-label col-12 col-sm-2' %>
38
38
  <div class='col-11 col-sm-9 card card-body panel-translation'>
39
39
  <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
40
- <small class="form-text text-muted">
40
+ <div class="form-text text-muted mb-3">
41
41
  <%= current_exhibit[:subtitle] %>
42
- </small>
42
+ </div>
43
43
  </div>
44
44
  <div class='col-1'>
45
45
  <% if translation.value.present? %>
@@ -54,13 +54,13 @@
54
54
  <%= f.fields_for :translations, translation do |translation_fields| %>
55
55
  <%= translation_fields.hidden_field :key %>
56
56
  <%= translation_fields.hidden_field :locale %>
57
- <div data-translation-progress-item='true' class='row form-group translation-form translation-basic-settings-description'>
57
+ <div data-translation-progress-item='true' class='row form-group mb-3 translation-form translation-basic-settings-description'>
58
58
  <%= translation_fields.label :value, t('.basic_settings.description'), class: 'col-form-label col-12 col-sm-2' %>
59
59
  <div class='col-11 col-sm-9 card card-body panel-translation'>
60
60
  <%= translation_fields.text_area_without_bootstrap :value, class: 'form-control' %>
61
- <small class="form-text text-muted">
61
+ <div class="form-text text-muted mb-3">
62
62
  <%= current_exhibit.description %>
63
- </small>
63
+ </div>
64
64
  </div>
65
65
  <div class='col-1'>
66
66
  <% if translation.value.present? %>
@@ -81,13 +81,13 @@
81
81
  <%= f.fields_for :translations, translation do |translation_fields| %>
82
82
  <%= translation_fields.hidden_field :key %>
83
83
  <%= translation_fields.hidden_field :locale %>
84
- <div data-translation-progress-item='true' class='row form-group translation-form translation-main-menu-home'>
84
+ <div data-translation-progress-item='true' class='row form-group mb-3 translation-form translation-main-menu-home'>
85
85
  <%= translation_fields.label :value, t('.main_menu.home'), class: 'col-form-label col-12 col-sm-2' %>
86
86
  <div class='col-11 col-sm-9 card card-body panel-translation'>
87
87
  <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
88
- <small class="form-text text-muted">
88
+ <div class="form-text text-muted mb-3">
89
89
  <%= t(:'spotlight.curation.nav.home', locale: I18n.default_locale) %>
90
- </small>
90
+ </div>
91
91
  </div>
92
92
  <div class='col-1'>
93
93
  <% if translation.value.present? %>
@@ -104,13 +104,13 @@
104
104
  <%= f.fields_for :translations, translation do |translation_fields| %>
105
105
  <%= translation_fields.hidden_field :key %>
106
106
  <%= translation_fields.hidden_field :locale %>
107
- <div data-translation-progress-item='true' class='row form-group translation-form translation-main-menu-<%= navigation.nav_type %>'>
107
+ <div data-translation-progress-item='true' class='row form-group mb-3 translation-form translation-main-menu-<%= navigation.nav_type %>'>
108
108
  <%= translation_fields.label :value, t(".main_menu.#{navigation.nav_type}", default: navigation.default_label), class: 'col-form-label col-12 col-sm-2' %>
109
109
  <div class='col-11 col-sm-9 card card-body panel-translation'>
110
110
  <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
111
- <small class="form-text text-muted">
111
+ <div class="form-text text-muted mb-3">
112
112
  <%= navigation[:label].presence || navigation.default_label %>
113
- </small>
113
+ </div>
114
114
  </div>
115
115
  <div class='col-1'>
116
116
  <% if translation.value.present? %>
@@ -127,13 +127,13 @@
127
127
  <%= f.fields_for :translations, translation do |translation_fields| %>
128
128
  <%= translation_fields.hidden_field :key %>
129
129
  <%= translation_fields.hidden_field :locale %>
130
- <div data-translation-progress-item='true' class='row form-group translation-form translation-main-menu-search-results'>
130
+ <div data-translation-progress-item='true' class='row form-group mb-3 translation-form translation-main-menu-search-results'>
131
131
  <%= translation_fields.label :value, t('spotlight.catalog.breadcrumb.index'), class: 'col-form-label col-12 col-sm-2' %>
132
132
  <div class='col-11 col-sm-9 card card-body panel-translation'>
133
133
  <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
134
- <small class="form-text text-muted">
134
+ <div class="form-text text-muted mb-3">
135
135
  <%= t(:'spotlight.catalog.breadcrumb.index', locale: I18n.default_locale) %>
136
- </small>
136
+ </div>
137
137
  </div>
138
138
  <div class='col-1'>
139
139
  <% if translation.value.present? %>
@@ -9,7 +9,7 @@
9
9
  <%= f.fields_for :translations, title_translation do |translation_fields| %>
10
10
  <%= translation_fields.hidden_field :key %>
11
11
  <%= translation_fields.hidden_field :locale %>
12
- <div data-translation-progress-item="true" class="row form-group browse-group-title">
12
+ <div data-translation-progress-item="true" class="row form-group mb-3 browse-group-title">
13
13
  <%= translation_fields.label :value, group[:title], class: 'col-form-label col-12 col-sm-2' %>
14
14
  <div class="col-11 col-sm-9">
15
15
  <%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>