blacklight-spotlight 5.3.0 → 5.3.1
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/README.md +18 -1
- data/app/assets/javascripts/spotlight/spotlight.esm.js +1679 -1228
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +1682 -1231
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/components/spotlight/analytics/aggregation_component.html.erb +1 -1
- data/app/components/spotlight/document_admin_table_component.html.erb +2 -2
- data/app/components/spotlight/edit_view_links_component.html.erb +1 -1
- data/app/components/spotlight/header_component.html.erb +1 -1
- data/app/components/spotlight/tag_list_form_component.html.erb +1 -1
- data/app/components/spotlight/tag_selector_component.html.erb +2 -2
- data/app/components/spotlight/translations/subheading_component.html.erb +1 -1
- data/app/controllers/spotlight/resources_controller.rb +1 -1
- data/app/javascript/spotlight/admin/add_another.js +22 -15
- data/app/javascript/spotlight/admin/add_image_selector.js +27 -25
- data/app/javascript/spotlight/admin/add_new_button.js +47 -43
- data/app/javascript/spotlight/admin/blacklight_configuration.js +52 -38
- data/app/javascript/spotlight/admin/block_mixins/autocompleteable.js +68 -60
- data/app/javascript/spotlight/admin/block_mixins/formable.js +55 -47
- data/app/javascript/spotlight/admin/block_mixins/plustextable.js +19 -20
- data/app/javascript/spotlight/admin/blocks/block.js +20 -16
- data/app/javascript/spotlight/admin/blocks/browse_block.js +42 -37
- data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +33 -31
- data/app/javascript/spotlight/admin/blocks/iframe_block.js +14 -11
- data/app/javascript/spotlight/admin/blocks/link_to_search_block.js +4 -7
- data/app/javascript/spotlight/admin/blocks/oembed_block.js +13 -10
- data/app/javascript/spotlight/admin/blocks/pages_block.js +20 -13
- data/app/javascript/spotlight/admin/blocks/resources_block.js +150 -117
- data/app/javascript/spotlight/admin/blocks/rule_block.js +11 -10
- data/app/javascript/spotlight/admin/blocks/search_result_block.js +16 -17
- data/app/javascript/spotlight/admin/blocks/solr_documents_base_block.js +123 -64
- data/app/javascript/spotlight/admin/blocks/solr_documents_block.js +8 -8
- data/app/javascript/spotlight/admin/blocks/solr_documents_carousel_block.js +63 -43
- data/app/javascript/spotlight/admin/blocks/solr_documents_embed_block.js +9 -9
- data/app/javascript/spotlight/admin/blocks/solr_documents_features_block.js +17 -16
- data/app/javascript/spotlight/admin/blocks/solr_documents_grid_block.js +6 -7
- data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +84 -64
- data/app/javascript/spotlight/admin/crop.js +203 -156
- data/app/javascript/spotlight/admin/croppable.js +4 -4
- data/app/javascript/spotlight/admin/croppable_modal.js +59 -37
- data/app/javascript/spotlight/admin/edit_in_place.js +50 -47
- data/app/javascript/spotlight/admin/exhibits.js +52 -41
- data/app/javascript/spotlight/admin/form_observer.js +59 -53
- data/app/javascript/spotlight/admin/iiif.js +26 -25
- data/app/javascript/spotlight/admin/index.js +44 -47
- data/app/javascript/spotlight/admin/locks.js +14 -14
- data/app/javascript/spotlight/admin/multi_image_selector.js +127 -111
- data/app/javascript/spotlight/admin/pages.js +21 -21
- data/app/javascript/spotlight/admin/progress_monitor.js +67 -65
- data/app/javascript/spotlight/admin/readonly_checkbox.js +3 -3
- data/app/javascript/spotlight/admin/search_typeahead.js +55 -43
- data/app/javascript/spotlight/admin/select_related_input.js +17 -17
- data/app/javascript/spotlight/admin/sir-trevor/block_controls.js +100 -84
- data/app/javascript/spotlight/admin/sir-trevor/block_limits.js +36 -31
- data/app/javascript/spotlight/admin/sir-trevor/locales.js +52 -39
- data/app/javascript/spotlight/admin/spotlight_nestable.js +112 -90
- data/app/javascript/spotlight/admin/tabs.js +16 -3
- data/app/javascript/spotlight/admin/translation_progress.js +13 -7
- data/app/javascript/spotlight/admin/users.js +41 -41
- data/app/javascript/spotlight/admin/visibility_toggle.js +4 -4
- data/app/javascript/spotlight/controllers/clipboard_controller.js +14 -0
- data/app/javascript/spotlight/controllers/index.js +4 -2
- data/app/javascript/spotlight/controllers/tag_selector_controller.js +116 -79
- data/app/javascript/spotlight/core.js +18 -15
- data/app/javascript/spotlight/index.js +4 -4
- data/app/javascript/spotlight/user/browse_group_categories.js +24 -22
- data/app/javascript/spotlight/user/carousel.js +23 -19
- data/app/javascript/spotlight/user/clear_form_button.js +15 -15
- data/app/javascript/spotlight/user/index.js +4 -4
- data/app/javascript/spotlight/user/zpr_links.js +18 -18
- data/app/models/spotlight/analytics/ga.rb +0 -1
- data/app/models/spotlight/resources/iiif_manifest_v3.rb +2 -2
- data/app/services/spotlight/exhibit_import_export_service.rb +0 -2
- data/app/views/blacklight/nav/_bookmark.html.erb +1 -1
- data/app/views/catalog/_remove_tags.html.erb +1 -1
- data/app/views/layouts/spotlight/base.html.erb +1 -1
- data/app/views/shared/_header_navbar.html.erb +1 -1
- data/app/views/shared/_masthead.html.erb +2 -2
- data/app/views/shared/_site_sidebar.html.erb +1 -1
- data/app/views/shared/_user_util_links.html.erb +2 -2
- data/app/views/spotlight/about_pages/_contacts.html.erb +1 -1
- data/app/views/spotlight/accessibility/alt_text.html.erb +1 -1
- data/app/views/spotlight/admin_users/index.html.erb +11 -9
- data/app/views/spotlight/appearances/edit.html.erb +1 -1
- data/app/views/spotlight/browse/_search_box.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/_download.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/_progress_panel.html.erb +6 -6
- data/app/views/spotlight/bulk_updates/edit.html.erb +1 -1
- data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
- data/app/views/spotlight/catalog/_admin_index_header_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_document.html.erb +2 -2
- data/app/views/spotlight/catalog/_document_admin_table.html.erb +1 -1
- data/app/views/spotlight/catalog/_edit_sidecar.html.erb +1 -1
- data/app/views/spotlight/catalog/_index_compact_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_reindex_progress_panel.html.erb +6 -6
- data/app/views/spotlight/catalog/select_image.html.erb +1 -1
- data/app/views/spotlight/contact_mailer/report_problem.html.erb +2 -2
- data/app/views/spotlight/exhibits/_contact.html.erb +2 -2
- data/app/views/spotlight/exhibits/_delete.html.erb +2 -2
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
- data/app/views/spotlight/exhibits/_export.html.erb +1 -1
- data/app/views/spotlight/exhibits/_form.html.erb +2 -2
- data/app/views/spotlight/exhibits/_languages.html.erb +7 -7
- data/app/views/spotlight/exhibits/_missing_exhibits.html.erb +1 -1
- data/app/views/spotlight/locks/_lock.html.erb +2 -2
- data/app/views/spotlight/metadata_configurations/edit.html.erb +1 -1
- data/app/views/spotlight/pages/_order_pages.html.erb +3 -3
- data/app/views/spotlight/pages/preview.html.erb +1 -1
- data/app/views/spotlight/pages/show.html.erb +2 -2
- data/app/views/spotlight/resources/_form.html.erb +1 -1
- data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
- data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
- data/app/views/spotlight/roles/index.html.erb +5 -5
- data/app/views/spotlight/search_configurations/_search_fields.html.erb +1 -1
- data/app/views/spotlight/search_configurations/edit.html.erb +1 -1
- data/app/views/spotlight/searches/index.html.erb +2 -2
- data/app/views/spotlight/shared/_configuration_sidebar.html.erb +1 -1
- data/app/views/spotlight/shared/_curation_sidebar.html.erb +1 -1
- data/app/views/spotlight/shared/_dd3_item.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/_sir_trevor_block_array.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_featured_pages_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_rule_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
- data/app/views/spotlight/sites/edit_exhibits.html.erb +3 -3
- data/app/views/spotlight/translations/_browse_categories.html.erb +2 -2
- data/app/views/spotlight/translations/_general.html.erb +21 -21
- data/app/views/spotlight/translations/_groups.html.erb +1 -1
- data/app/views/spotlight/translations/_metadata.html.erb +8 -8
- data/app/views/spotlight/translations/_pages_table.html.erb +2 -2
- data/app/views/spotlight/translations/_search_fields.html.erb +13 -13
- data/app/views/spotlight/translations/edit.html.erb +5 -5
- data/config/importmap.rb +0 -1
- data/lib/generators/spotlight/assets/propshaft_generator.rb +0 -1
- data/lib/generators/spotlight/templates/solr/conf/admin-extra.html +31 -31
- data/lib/spotlight/version.rb +1 -1
- data/spec/factories/contact_images.rb +1 -1
- data/spec/factories/exhibit_thumbnails.rb +1 -1
- data/spec/factories/featured_images.rb +1 -1
- data/spec/support/features/test_features_helpers.rb +10 -1
- metadata +4 -61
- data/app/javascript/spotlight/admin/copy_email_addresses.js +0 -7
- data/vendor/assets/javascripts/jquery.waitforimages.min.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<p class="alert alert-warning alert-lock">
|
|
2
2
|
<button type="button" class="close btn-close" data-bs-dismiss="alert"><span class="visually-hidden">Close</span></button>
|
|
3
|
-
<%= t :'spotlight.pages.edit.locked', user: lock.by, created_at: time_ago_in_words(lock.created_at) + " ago"%>
|
|
4
|
-
</p>
|
|
3
|
+
<%= t :'spotlight.pages.edit.locked', user: lock.by, created_at: time_ago_in_words(lock.created_at) + " ago" %>
|
|
4
|
+
</p>
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
<%- end -%>
|
|
24
24
|
<div>
|
|
25
|
-
<%= form_for @page, url: spotlight.polymorphic_path([@exhibit, page_collection_name.to_sym]), html: {class: "expanded-add-button"} do |f
|
|
26
|
-
<a href=
|
|
25
|
+
<%= form_for @page, url: spotlight.polymorphic_path([@exhibit, page_collection_name.to_sym]), html: {class: "expanded-add-button"} do |f| %>
|
|
26
|
+
<a href="#add-new" class="btn btn-primary" data-turbo="false" data-turbolinks="false" data-expanded-add-button="true" data-field-target="[data-title-field]">
|
|
27
27
|
<%= t(:'.new_page') %> <%= blacklight_icon('chevron_right') %>
|
|
28
28
|
<span data-title-field="true" class="input-field">
|
|
29
29
|
<%= f.text_field(:title) %>
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
<%- end -%>
|
|
35
35
|
</div>
|
|
36
36
|
<% else %>
|
|
37
|
-
<%= render Spotlight::UneditableNonDefaultLanguageComponent.new(current_exhibit:, current_language: I18n.locale)%>
|
|
37
|
+
<%= render Spotlight::UneditableNonDefaultLanguageComponent.new(current_exhibit:, current_language: I18n.locale) %>
|
|
38
38
|
<% end %>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<%= render @block %>
|
|
1
|
+
<%= render @block %>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<% content_for(:sidebar) do %>
|
|
5
5
|
<%= render 'sidebar' %>
|
|
6
|
-
<% end if @page.display_sidebar
|
|
6
|
+
<% end if @page.display_sidebar? %>
|
|
7
7
|
|
|
8
8
|
<%= cache_unless current_user, [current_exhibit, @page, I18n.locale, request.query_string] do %>
|
|
9
9
|
<div class="clearfix">
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<%= @page.title %>
|
|
14
14
|
</h2>
|
|
15
15
|
<% else %>
|
|
16
|
-
<h2 class="visually-hidden"><%= t '.default_page_title'%></h2>
|
|
16
|
+
<h2 class="visually-hidden"><%= t '.default_page_title' %></h2>
|
|
17
17
|
<% end %>
|
|
18
18
|
</div>
|
|
19
19
|
<div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="instructions mb-4"><%= t('.instructions_html') %></div>
|
|
2
2
|
|
|
3
|
-
<%= bootstrap_form_for([current_exhibit,
|
|
3
|
+
<%= bootstrap_form_for([current_exhibit, Spotlight::Resources::CsvUpload.new], layout: :horizontal, label_col: 'col-md-2', control_col: 'col-sm-6 col-md-6', html: { class: 'item-upload-form', multipart: true } ) do |f| %>
|
|
4
4
|
<%= f.url_field :url, type: "file", help: t('.help_html', link: link_to(t('.template'), template_exhibit_resources_csv_uploads_path, data: { turbo: false })), label: t('.file_label') %>
|
|
5
5
|
<div class="form-actions">
|
|
6
6
|
<div class="primary-actions">
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<% end %>
|
|
7
7
|
|
|
8
8
|
<% current_exhibit.custom_fields.each do |custom_field| %>
|
|
9
|
-
<%= render partial: "spotlight/custom_fields/form_group/#{custom_field.field_type}", locals: { inline: true, f: d, field: custom_field, value: nil }
|
|
9
|
+
<%= render partial: "spotlight/custom_fields/form_group/#{custom_field.field_type}", locals: { inline: true, f: d, field: custom_field, value: nil } %>
|
|
10
10
|
<% end %>
|
|
11
11
|
<% end %>
|
|
12
12
|
<div class="form-actions">
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<%= render partial: 'edit_fields', locals: {f: r} %>
|
|
17
17
|
<tr data-edit-for="new">
|
|
18
18
|
<td></td>
|
|
19
|
-
<td colspan=2>
|
|
19
|
+
<td colspan="2">
|
|
20
20
|
<div class="form-actions d-flex justify-content-end">
|
|
21
21
|
<%= cancel_link r.object, '#', class: 'btn btn-link', role: 'button', data: { behavior: 'cancel-edit' } %>
|
|
22
|
-
<%=f.submit nil, class: 'btn btn-primary'%>
|
|
22
|
+
<%= f.submit nil, class: 'btn btn-primary' %>
|
|
23
23
|
</div>
|
|
24
24
|
</td>
|
|
25
25
|
</tr>
|
|
@@ -27,7 +27,7 @@
|
|
|
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=
|
|
30
|
+
<span class="badge bg-warning pending-label"><%= t('.invite_pending') %></span>
|
|
31
31
|
</td>
|
|
32
32
|
<td><%= r.object.role.humanize %></td>
|
|
33
33
|
<td>
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
<td><%= f.submit action_label(r.object, :destroy), class: 'btn btn-danger', data: { behavior: 'destroy-user', target: r.object.id} %>
|
|
42
42
|
<%= r.hidden_field :_destroy, data: {'destroy-for' => r.object.id} %>
|
|
43
43
|
</td>
|
|
44
|
-
<td colspan=2>
|
|
44
|
+
<td colspan="2">
|
|
45
45
|
<div class="form-actions d-flex justify-content-end">
|
|
46
46
|
<%= cancel_link r.object, '#', class: 'btn btn-link', role: 'button', data: { behavior: 'cancel-edit' } %>
|
|
47
|
-
<%=f.submit nil, class: 'btn btn-primary'%>
|
|
47
|
+
<%= f.submit nil, class: 'btn btn-primary' %>
|
|
48
48
|
</div>
|
|
49
49
|
</td>
|
|
50
50
|
</tr>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<%= vt.fields_for default_field.key, default_field do |field| %>
|
|
20
20
|
<%= field.check_box_without_bootstrap :enabled, data: { readonly: true }, class: 'disabled' %>
|
|
21
21
|
<%= field.hidden_field :label, readonly: true %>
|
|
22
|
-
<%= field.hidden_field :weight, value: "-1", readonly: true
|
|
22
|
+
<%= field.hidden_field :weight, value: "-1", readonly: true %>
|
|
23
23
|
<%= default_field.label %>
|
|
24
24
|
<% end %>
|
|
25
25
|
</h3>
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
|
|
50
50
|
<% end %>
|
|
51
51
|
<% else %>
|
|
52
|
-
<%= render Spotlight::UneditableNonDefaultLanguageComponent.new(current_exhibit:, current_language: I18n.locale)%>
|
|
52
|
+
<%= render Spotlight::UneditableNonDefaultLanguageComponent.new(current_exhibit:, current_language: I18n.locale) %>
|
|
53
53
|
<% end %>
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
<%= submit_tag t(:'helpers.action.update_all'), class: "btn btn-primary" %>
|
|
62
62
|
</div>
|
|
63
63
|
<% end %>
|
|
64
|
-
<%= form_for :group, url: spotlight.exhibit_groups_path(current_exhibit), html: {class: "expanded-add-button"} do |f
|
|
65
|
-
<a href=
|
|
64
|
+
<%= form_for :group, url: spotlight.exhibit_groups_path(current_exhibit), html: {class: "expanded-add-button"} do |f| %>
|
|
65
|
+
<a href="#add-new" class="btn btn-primary" data-turbo="false" data-turbolinks="false" data-expanded-add-button="true" data-field-target="[data-title-field]">
|
|
66
66
|
<%= t(:'.add_new_group') %> <%= blacklight_icon('chevron_right') %>
|
|
67
67
|
<span data-title-field="true" class="input-field">
|
|
68
68
|
<%= f.text_field(:title) %>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<h3 class="nav-heading h4"><%=t(:'spotlight.curation.sidebar.header') %></h3>
|
|
1
|
+
<h3 class="nav-heading h4"><%= t(:'spotlight.curation.sidebar.header') %></h3>
|
|
2
2
|
|
|
3
3
|
<ul class="nav sidenav flex-column">
|
|
4
4
|
<%= nav_link t(:'spotlight.curation.sidebar.items'), spotlight.admin_exhibit_catalog_path(current_exhibit) %>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<div class="dd-handle dd3-handle"><%= t :drag %></div>
|
|
17
17
|
<%= content_tag :div, class: "d-flex card-header", data: card_data do %>
|
|
18
18
|
<%= field.hidden_field :id %>
|
|
19
|
-
<% if main_content.present?
|
|
19
|
+
<% if main_content.present? %>
|
|
20
20
|
<%= main_content %>
|
|
21
21
|
<% else %>
|
|
22
22
|
<div class="flex-grow-1 align-self-center">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<%= render sir_trevor_block_array.to_a %>
|
|
1
|
+
<%= render sir_trevor_block_array.to_a %>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<% browse_block.with_solr_helper(self) %>
|
|
2
2
|
|
|
3
3
|
<% if browse_block.searches? %>
|
|
4
|
-
<div class="spotlight-flexbox browse-categories categories-<%= browse_block.searches.length %>" data-sidebar=
|
|
4
|
+
<div class="spotlight-flexbox browse-categories categories-<%= browse_block.searches.length %>" data-sidebar="<%= @page.display_sidebar? %>">
|
|
5
5
|
<% browse_block.searches.each_with_index do |search, index| %>
|
|
6
6
|
<div class="box category-<%= (index + 1) %>">
|
|
7
7
|
<%= link_to spotlight.exhibit_browse_path(search.exhibit, search) do %>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</ul>
|
|
20
20
|
<% end %>
|
|
21
21
|
</div>
|
|
22
|
-
<div class="spotlight-flexbox browse-categories categories-<%= [group.searches.count, (@page.display_sidebar? ? 3 : 4)].min %>" data-browse-group-categories-carousel data-sidebar=
|
|
22
|
+
<div class="spotlight-flexbox browse-categories categories-<%= [group.searches.count, (@page.display_sidebar? ? 3 : 4)].min %>" data-browse-group-categories-carousel data-sidebar="<%= @page.display_sidebar? %>" data-browse-group-categories-count="<%= group.searches.count %>">
|
|
23
23
|
<% group.searches.published.each_with_index do |search, index| %>
|
|
24
24
|
<div class="box category-1 justify-content-center justify-content-md-space-around">
|
|
25
25
|
<%= link_to spotlight.exhibit_browse_group_path(current_exhibit, group, search), class: 'justify-content-center' do %>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if featured_pages_block.pages? %>
|
|
2
|
-
<div class="spotlight-flexbox browse-categories categories-<%= featured_pages_block.pages.length %>" data-sidebar=
|
|
2
|
+
<div class="spotlight-flexbox browse-categories categories-<%= featured_pages_block.pages.length %>" data-sidebar="<%= @page.display_sidebar? %>">
|
|
3
3
|
<% featured_pages_block.pages.each_with_index do |page, index| %>
|
|
4
4
|
<div class="box category-<%= (index + 1) %>">
|
|
5
5
|
<%= link_to [spotlight, current_exhibit, page] do %>
|
|
6
|
-
<div class="browse-category" style=
|
|
6
|
+
<div class="browse-category" style="background-image: <%= "url(\"#{page.thumbnail_image_url}\")" if page.thumbnail_image_url %>">
|
|
7
7
|
<div class="category-caption">
|
|
8
8
|
<p class="category-title">
|
|
9
9
|
<%= page.title %>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<% link_to_search_block.with_solr_helper(self) %>
|
|
2
2
|
|
|
3
3
|
<% if link_to_search_block.searches? %>
|
|
4
|
-
<div class="spotlight-flexbox browse-categories categories-<%= link_to_search_block.searches.length %>" data-sidebar=
|
|
4
|
+
<div class="spotlight-flexbox browse-categories categories-<%= link_to_search_block.searches.length %>" data-sidebar="<%= @page.display_sidebar? %>">
|
|
5
5
|
<% link_to_search_block.searches.each_with_index do |search, index| %>
|
|
6
6
|
<div class="box category-<%= (index + 1) %>">
|
|
7
7
|
<%= link_to spotlight.search_exhibit_catalog_path(search.exhibit, search.query_params || {}) do %>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<hr
|
|
1
|
+
<hr>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<% views = blacklight_view_config_for_search_block(search_results_block) %>
|
|
12
12
|
<% if views.length > 1 -%>
|
|
13
|
-
<div id="sortAndPerPage" class="clearfix my-3" role="navigation" aria-label="<%= t('blacklight.search.per_page.aria_label', default: 'Results navigation')%>">
|
|
13
|
+
<div id="sortAndPerPage" class="clearfix my-3" role="navigation" aria-label="<%= t('blacklight.search.per_page.aria_label', default: 'Results navigation') %>">
|
|
14
14
|
<div class="search-widgets float-end">
|
|
15
15
|
<%= render partial: 'view_type_group', locals: { block: search_results_block } %>
|
|
16
16
|
</div>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div class="contents">
|
|
11
11
|
<% if block_options[:thumbnail_image_url].present? %>
|
|
12
12
|
<%= link_to_document(document, image_tag(block_options[:thumbnail_image_url], class: 'img-thumbnail', alt: resource_alt_text(block_options, doc_presenter.heading), skip_pipeline: true), counter: -1) %>
|
|
13
|
-
<% elsif block_options[:iiif_tilesource_base].present?
|
|
13
|
+
<% elsif block_options[:iiif_tilesource_base].present? %>
|
|
14
14
|
<%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!400,400/0/default.jpg', class: 'img-thumbnail', alt: resource_alt_text(block_options, doc_presenter.heading), skip_pipeline: true), counter: -1) %>
|
|
15
15
|
<% elsif doc_presenter.thumbnail.exists? %>
|
|
16
16
|
<%= doc_presenter.thumbnail.thumbnail_tag({ class: 'img-thumbnail', alt: resource_alt_text(block_options, doc_presenter.heading) }, document_counter: -1) %>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div class="carousel-item <%= 'active' if index == 0 %>" data-id="<%= document.id %>">
|
|
11
11
|
<% if block_options[:full_image_url].present? %>
|
|
12
12
|
<%= link_to_document(document, image_tag(block_options[:full_image_url], alt: resource_alt_text(block_options, doc_presenter.heading), skip_pipeline: true), counter: -1) %>
|
|
13
|
-
<% elsif block_options[:iiif_tilesource_base].present?
|
|
13
|
+
<% elsif block_options[:iiif_tilesource_base].present? %>
|
|
14
14
|
<%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!800,800/0/default.jpg', alt: resource_alt_text(block_options, doc_presenter.heading), skip_pipeline: true), counter: -1) %>
|
|
15
15
|
<% elsif doc_presenter.thumbnail.exists? %>
|
|
16
16
|
<%= doc_presenter.thumbnail.thumbnail_tag({ alt: resource_alt_text(block_options, doc_presenter.heading) }, document_counter: -1) %>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div class="carousel-item <%= 'active' if index == 0 %>" data-id="<%= document.id %>">
|
|
14
14
|
<% if block_options[:full_image_url].present? %>
|
|
15
15
|
<%= link_to_document(document, image_tag(block_options[:full_image_url], alt: resource_alt_text(block_options, doc_presenter.heading), skip_pipeline: true), counter: -1) %>
|
|
16
|
-
<% elsif block_options[:iiif_tilesource_base].present?
|
|
16
|
+
<% elsif block_options[:iiif_tilesource_base].present? %>
|
|
17
17
|
<%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!800,800/0/default.jpg', alt: resource_alt_text(block_options, doc_presenter.heading), skip_pipeline: true), counter: -1) %>
|
|
18
18
|
<% elsif doc_presenter.thumbnail.exists? %>
|
|
19
19
|
<%= doc_presenter.thumbnail.thumbnail_tag({ alt: resource_alt_text(block_options, doc_presenter.heading) }, document_counter: -1) %>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<div class="box item-<%= index %>" data-id="<%= document.id %>">
|
|
8
8
|
<% if block_options[:thumbnail_image_url].present? %>
|
|
9
9
|
<%= link_to_document(document, image_tag(block_options[:thumbnail_image_url], class: 'img-thumbnail', alt: resource_alt_text(block_options, doc_presenter.heading), skip_pipeline: true), counter: -1) %>
|
|
10
|
-
<% elsif block_options[:iiif_tilesource_base].present?
|
|
10
|
+
<% elsif block_options[:iiif_tilesource_base].present? %>
|
|
11
11
|
<%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!400,400/0/default.jpg', class: 'img-thumbnail', alt: resource_alt_text(block_options, doc_presenter.heading), skip_pipeline: true), counter: -1) %>
|
|
12
12
|
<% elsif doc_presenter.thumbnail.exists? %>
|
|
13
13
|
<%= doc_presenter.thumbnail.thumbnail_tag({ class: 'img-thumbnail', alt: resource_alt_text(block_options, doc_presenter.heading) }, document_counter: -1) %>
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
<thead>
|
|
6
6
|
<tr>
|
|
7
7
|
<th><%= Spotlight::Exhibit.human_attribute_name(:title) %></th>
|
|
8
|
-
<th class="text-end"><%= Spotlight::Exhibit.human_attribute_name(:published)
|
|
8
|
+
<th class="text-end"><%= Spotlight::Exhibit.human_attribute_name(:published) %></th>
|
|
9
9
|
<th class="text-end"><%= Spotlight::Exhibit.human_attribute_name(:requested_by) %></th>
|
|
10
|
-
<th class="text-end"><%= Spotlight::Exhibit.human_attribute_name(:created_at)
|
|
11
|
-
<th class="text-end"><%= Spotlight::Exhibit.human_attribute_name(:updated_at)
|
|
10
|
+
<th class="text-end"><%= Spotlight::Exhibit.human_attribute_name(:created_at) %></th>
|
|
11
|
+
<th class="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=" ">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div role="tabpanel" class="tab-pane <%= 'active' if @tab == 'browse' %>" id="browse">
|
|
2
2
|
<%= bootstrap_form_for current_exhibit, url: spotlight.exhibit_translations_path(current_exhibit), layout: :horizontal do |f| %>
|
|
3
|
-
|
|
3
|
+
<%# Add hidden fields for the language and tab so the redirect knows how to come back here %>
|
|
4
4
|
<%= hidden_field_tag :language, @language %>
|
|
5
5
|
<%= hidden_field_tag :tab, 'browse', id: nil %>
|
|
6
6
|
<div class="row">
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
<div class="col-7">
|
|
13
13
|
<span class="browse-translations-header">
|
|
14
|
-
<%= t :'.translation_column_label', language: t("locales.#{@language}")
|
|
14
|
+
<%= t :'.translation_column_label', language: t("locales.#{@language}") %>
|
|
15
15
|
</span>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<div role="tabpanel" class="tab-pane <%= 'active' if @tab.blank? %>" id="general">
|
|
2
2
|
<%= bootstrap_form_for current_exhibit, url: spotlight.exhibit_translations_path(current_exhibit), layout: :horizontal do |f| %>
|
|
3
|
-
|
|
3
|
+
<%# Add a hidden field for the language so the redirect knows how to come back here %>
|
|
4
4
|
<%= hidden_field_tag :language, @language %>
|
|
5
5
|
|
|
6
|
-
<div class=
|
|
6
|
+
<div class="translation-basic-settings">
|
|
7
7
|
<%= render Spotlight::Translations::SubheadingComponent.new(key: 'general.basic_settings.label') %>
|
|
8
8
|
|
|
9
9
|
<% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{current_exhibit.slug}.title", locale: @language) %>
|
|
10
10
|
<%= f.fields_for :translations, translation do |translation_fields| %>
|
|
11
11
|
<%= translation_fields.hidden_field :key %>
|
|
12
12
|
<%= translation_fields.hidden_field :locale %>
|
|
13
|
-
<div data-translation-progress-item=
|
|
13
|
+
<div data-translation-progress-item="true" class="row form-group mb-3 translation-form translation-basic-settings-title">
|
|
14
14
|
<%= translation_fields.label :value, t('.basic_settings.title'), class: 'col-form-label col-12 col-sm-2' %>
|
|
15
|
-
<div class=
|
|
15
|
+
<div class="col-11 col-sm-9 card card-body panel-translation">
|
|
16
16
|
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
|
|
17
17
|
<div class="form-text text-muted mb-3">
|
|
18
18
|
<%= current_exhibit[:title] %>
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
|
-
<div class=
|
|
21
|
+
<div class="col-1">
|
|
22
22
|
<% if translation.value.present? %>
|
|
23
23
|
<span data-translation-present="true">
|
|
24
24
|
<%= blacklight_icon('check', classes: 'translation-complete') %>
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
<%= f.fields_for :translations, translation do |translation_fields| %>
|
|
32
32
|
<%= translation_fields.hidden_field :key %>
|
|
33
33
|
<%= translation_fields.hidden_field :locale %>
|
|
34
|
-
<div data-translation-progress-item=
|
|
34
|
+
<div data-translation-progress-item="true" class="row form-group mb-3 translation-form translation-basic-settings-subtitle">
|
|
35
35
|
<%= translation_fields.label :value, t('.basic_settings.subtitle'), class: 'col-form-label col-12 col-sm-2' %>
|
|
36
|
-
<div class=
|
|
36
|
+
<div class="col-11 col-sm-9 card card-body panel-translation">
|
|
37
37
|
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
|
|
38
38
|
<div class="form-text text-muted mb-3">
|
|
39
39
|
<%= current_exhibit[:subtitle] %>
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
|
-
<div class=
|
|
42
|
+
<div class="col-1">
|
|
43
43
|
<% if translation.value.present? %>
|
|
44
44
|
<span data-translation-present="true">
|
|
45
45
|
<%= blacklight_icon('check', classes: 'translation-complete') %>
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
<%= f.fields_for :translations, translation do |translation_fields| %>
|
|
53
53
|
<%= translation_fields.hidden_field :key %>
|
|
54
54
|
<%= translation_fields.hidden_field :locale %>
|
|
55
|
-
<div data-translation-progress-item=
|
|
55
|
+
<div data-translation-progress-item="true" class="row form-group mb-3 translation-form translation-basic-settings-description">
|
|
56
56
|
<%= translation_fields.label :value, t('.basic_settings.description'), class: 'col-form-label col-12 col-sm-2' %>
|
|
57
|
-
<div class=
|
|
57
|
+
<div class="col-11 col-sm-9 card card-body panel-translation">
|
|
58
58
|
<%= translation_fields.text_area_without_bootstrap :value, class: 'form-control' %>
|
|
59
59
|
<div class="form-text text-muted mb-3">
|
|
60
60
|
<%= current_exhibit.description %>
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
|
-
<div class=
|
|
63
|
+
<div class="col-1">
|
|
64
64
|
<% if translation.value.present? %>
|
|
65
65
|
<span data-translation-present="true">
|
|
66
66
|
<%= blacklight_icon('check', classes: 'translation-complete') %>
|
|
@@ -70,22 +70,22 @@
|
|
|
70
70
|
</div>
|
|
71
71
|
<% end %>
|
|
72
72
|
</div>
|
|
73
|
-
<div class=
|
|
73
|
+
<div class="translation-main-menu">
|
|
74
74
|
<%= render Spotlight::Translations::SubheadingComponent.new(key: 'general.main_menu.label') %>
|
|
75
75
|
|
|
76
76
|
<% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "spotlight.curation.nav.home", locale: @language) %>
|
|
77
77
|
<%= f.fields_for :translations, translation do |translation_fields| %>
|
|
78
78
|
<%= translation_fields.hidden_field :key %>
|
|
79
79
|
<%= translation_fields.hidden_field :locale %>
|
|
80
|
-
<div data-translation-progress-item=
|
|
80
|
+
<div data-translation-progress-item="true" class="row form-group mb-3 translation-form translation-main-menu-home">
|
|
81
81
|
<%= translation_fields.label :value, t('.main_menu.home'), class: 'col-form-label col-12 col-sm-2' %>
|
|
82
|
-
<div class=
|
|
82
|
+
<div class="col-11 col-sm-9 card card-body panel-translation">
|
|
83
83
|
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
|
|
84
84
|
<div class="form-text text-muted mb-3">
|
|
85
85
|
<%= t(:'spotlight.curation.nav.home', locale: I18n.default_locale) %>
|
|
86
86
|
</div>
|
|
87
87
|
</div>
|
|
88
|
-
<div class=
|
|
88
|
+
<div class="col-1">
|
|
89
89
|
<% if translation.value.present? %>
|
|
90
90
|
<span data-translation-present="true">
|
|
91
91
|
<%= blacklight_icon('check', classes: 'translation-complete') %>
|
|
@@ -100,15 +100,15 @@
|
|
|
100
100
|
<%= f.fields_for :translations, translation do |translation_fields| %>
|
|
101
101
|
<%= translation_fields.hidden_field :key %>
|
|
102
102
|
<%= translation_fields.hidden_field :locale %>
|
|
103
|
-
<div data-translation-progress-item=
|
|
103
|
+
<div data-translation-progress-item="true" class="row form-group mb-3 translation-form translation-main-menu-<%= navigation.nav_type %>">
|
|
104
104
|
<%= translation_fields.label :value, t(".main_menu.#{navigation.nav_type}", default: navigation.default_label), class: 'col-form-label col-12 col-sm-2' %>
|
|
105
|
-
<div class=
|
|
105
|
+
<div class="col-11 col-sm-9 card card-body panel-translation">
|
|
106
106
|
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
|
|
107
107
|
<div class="form-text text-muted mb-3">
|
|
108
108
|
<%= navigation[:label].presence || navigation.default_label %>
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
111
|
-
<div class=
|
|
111
|
+
<div class="col-1">
|
|
112
112
|
<% if translation.value.present? %>
|
|
113
113
|
<span data-translation-present="true">
|
|
114
114
|
<%= blacklight_icon('check', classes: 'translation-complete') %>
|
|
@@ -123,15 +123,15 @@
|
|
|
123
123
|
<%= f.fields_for :translations, translation do |translation_fields| %>
|
|
124
124
|
<%= translation_fields.hidden_field :key %>
|
|
125
125
|
<%= translation_fields.hidden_field :locale %>
|
|
126
|
-
<div data-translation-progress-item=
|
|
126
|
+
<div data-translation-progress-item="true" class="row form-group mb-3 translation-form translation-main-menu-search-results">
|
|
127
127
|
<%= translation_fields.label :value, t('spotlight.catalog.breadcrumb.index'), class: 'col-form-label col-12 col-sm-2' %>
|
|
128
|
-
<div class=
|
|
128
|
+
<div class="col-11 col-sm-9 card card-body panel-translation">
|
|
129
129
|
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
|
|
130
130
|
<div class="form-text text-muted mb-3">
|
|
131
131
|
<%= t(:'spotlight.catalog.breadcrumb.index', locale: I18n.default_locale) %>
|
|
132
132
|
</div>
|
|
133
133
|
</div>
|
|
134
|
-
<div class=
|
|
134
|
+
<div class="col-1">
|
|
135
135
|
<% if translation.value.present? %>
|
|
136
136
|
<span data-translation-present="true">
|
|
137
137
|
<%= blacklight_icon('check', classes: 'translation-complete') %>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div role="tabpanel" class="tab-pane <%= 'active' if @tab == 'groups' %>" id="groups">
|
|
2
2
|
<%= bootstrap_form_for current_exhibit, url: spotlight.exhibit_translations_path(current_exhibit), layout: :horizontal do |f| %>
|
|
3
|
-
|
|
3
|
+
<%# Add hidden fields for the language and tab so the redirect knows how to come back here %>
|
|
4
4
|
<%= hidden_field_tag :language, @language %>
|
|
5
5
|
<%= hidden_field_tag :tab, 'groups', id: nil %>
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div role="tabpanel" class="tab-pane <%= 'active' if @tab == 'metadata' %>" id="metadata">
|
|
2
2
|
<%= bootstrap_form_for current_exhibit, url: spotlight.exhibit_translations_path(current_exhibit), layout: :horizontal do |f| %>
|
|
3
|
-
|
|
3
|
+
<%# Add a hidden field for the language so the redirect knows how to come back here %>
|
|
4
4
|
<%= hidden_field_tag :language, @language %>
|
|
5
5
|
<%= hidden_field_tag :tab, 'metadata', id: nil %>
|
|
6
6
|
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
<%= translation_fields.hidden_field :key %>
|
|
11
11
|
<%= translation_fields.hidden_field :locale %>
|
|
12
12
|
|
|
13
|
-
<div data-translation-progress-item=
|
|
13
|
+
<div data-translation-progress-item="true" class="row form-group mb-3 translation-form">
|
|
14
14
|
<%= translation_fields.label :value, t("spotlight.search.fields.#{key}", default: field_config.label, locale: I18n.default_locale), class: 'col-form-label col-12 col-sm-2' %>
|
|
15
|
-
<div class=
|
|
15
|
+
<div class="col-11 col-sm-9 card card-body panel-translation">
|
|
16
16
|
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
|
|
17
17
|
<div class="form-text text-muted mb-3">
|
|
18
18
|
<%= field_config.label %>
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
|
-
<div class=
|
|
21
|
+
<div class="col-1">
|
|
22
22
|
<% if translation.value.present? %>
|
|
23
23
|
<span data-translation-present="true">
|
|
24
24
|
<%= blacklight_icon('check', classes: 'translation-complete') %>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<% end %>
|
|
31
31
|
|
|
32
32
|
<% if current_exhibit.custom_fields.any? %>
|
|
33
|
-
<div class=
|
|
33
|
+
<div class="translation-exhibit-specific-fields">
|
|
34
34
|
<%= render Spotlight::Translations::SubheadingComponent.new(key: 'metadata.exhibit_specific_fields.label') %>
|
|
35
35
|
|
|
36
36
|
<% current_exhibit.custom_fields.each do |custom_field| %>
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
<%= translation_fields.hidden_field :key %>
|
|
40
40
|
<%= translation_fields.hidden_field :locale %>
|
|
41
41
|
|
|
42
|
-
<div data-translation-progress-item=
|
|
42
|
+
<div data-translation-progress-item="true" class="row form-group mb-3 translation-form">
|
|
43
43
|
<%= translation_fields.label :value, t("spotlight.search.fields.#{custom_field.field}", default: custom_field.configuration['label'], locale: I18n.default_locale), class: 'col-form-label col-12 col-sm-2' %>
|
|
44
|
-
<div class=
|
|
44
|
+
<div class="col-11 col-sm-9 card card-body panel-translation">
|
|
45
45
|
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
|
|
46
46
|
<div class="form-text text-muted mb-3">
|
|
47
47
|
<%= custom_field.configuration['label'] %>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
|
-
<div class=
|
|
50
|
+
<div class="col-1">
|
|
51
51
|
<% if translation.value.present? %>
|
|
52
52
|
<span data-translation-present="true">
|
|
53
53
|
<%= blacklight_icon('check', classes: 'translation-complete') %>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<th><%= t('.header.last_updated', language: t(:"locales.#{I18n.default_locale}")) %></th>
|
|
5
5
|
<th class="text-center"><%= t('.header.default_published') %></th>
|
|
6
6
|
<th><%= t('.header.last_updated', language: t(:"locales.#{@language}")) %></th>
|
|
7
|
-
<th class=
|
|
8
|
-
<th class=
|
|
7
|
+
<th class="text-center"><%= t('.header.language_published') %></th>
|
|
8
|
+
<th class="text-center"><%= t('.header.actions') %></th>
|
|
9
9
|
</tr>
|
|
10
10
|
</thead>
|
|
11
11
|
|