blacklight-spotlight 4.3.6 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spotlight/spotlight.esm.js +20 -11
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +20 -11
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/assets/stylesheets/spotlight/_accessibility.scss +9 -0
- data/app/assets/stylesheets/spotlight/_browse.scss +4 -11
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +4 -2
- data/app/assets/stylesheets/spotlight/_mixins.scss +1 -0
- data/app/components/spotlight/edit_view_links_component.html.erb +13 -0
- data/app/components/spotlight/edit_view_links_component.rb +16 -0
- data/app/components/spotlight/solr_document_legacy_embed_component.rb +1 -1
- data/app/components/spotlight/tag_list_form_component.html.erb +1 -1
- data/app/controllers/spotlight/accessibility_controller.rb +45 -0
- data/app/helpers/spotlight/main_app_helpers.rb +1 -1
- data/app/helpers/spotlight/title_helper.rb +4 -0
- data/app/javascript/spotlight/admin/blocks/resources_block.js +16 -7
- data/app/javascript/spotlight/admin/blocks/solr_documents_embed_block.js +0 -1
- data/app/javascript/spotlight/admin/pages.js +1 -0
- data/app/javascript/spotlight/admin/visibility_toggle.js +1 -1
- data/app/javascript/spotlight/user/clear_form_button.js +2 -2
- data/app/models/sir_trevor_rails/block.rb +12 -0
- data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +4 -0
- data/app/models/sir_trevor_rails/blocks/solr_documents_embed_block.rb +3 -0
- data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +4 -0
- data/app/models/spotlight/blacklight_configuration.rb +2 -1
- data/app/models/spotlight/custom_field.rb +1 -1
- data/app/services/spotlight/exhibit_import_export_service.rb +1 -0
- data/app/views/layouts/spotlight/base.html.erb +1 -1
- data/app/views/shared/_masthead.html.erb +1 -1
- data/app/views/spotlight/accessibility/alt_text.html.erb +64 -0
- data/app/views/spotlight/browse/_search_box.html.erb +9 -11
- data/app/views/spotlight/bulk_updates/_upload.html.erb +1 -1
- data/app/views/spotlight/custom_fields/form_group/_text.html.erb +1 -1
- data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +1 -1
- data/app/views/spotlight/dashboards/_page.html.erb +1 -9
- data/app/views/spotlight/exhibits/_form.html.erb +2 -2
- data/app/views/spotlight/feature_pages/_header.html.erb +3 -6
- data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +7 -0
- data/app/views/spotlight/metadata_configurations/edit.html.erb +1 -0
- data/app/views/spotlight/pages/_form.html.erb +1 -1
- data/app/views/spotlight/pages/_page.html.erb +1 -5
- data/app/views/spotlight/searches/_form.html.erb +3 -3
- data/app/views/spotlight/shared/_exhibit_sidebar.html.erb +1 -0
- data/app/views/spotlight/shared/_honeypot_field.html.erb +2 -2
- 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 +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +2 -2
- data/app/views/spotlight/translations/_import.html.erb +1 -1
- data/config/locales/spotlight.en.yml +15 -2
- data/config/routes.rb +2 -0
- data/lib/spotlight/version.rb +1 -1
- metadata +6 -2
@@ -1,11 +1,7 @@
|
|
1
1
|
<% page = f.object %>
|
2
2
|
<%= render layout: 'spotlight/shared/dd3_item', locals: { id: page.id.to_s, field: f, label: page.title, label_method: :title, enabled_method: :published } do |_, section| %>
|
3
3
|
<% case section when :additional_options %>
|
4
|
-
|
5
|
-
<%= exhibit_view_link page %> ·
|
6
|
-
<%= exhibit_edit_link page, data: { turbolinks: false, turbo: false } %> ·
|
7
|
-
<%= exhibit_delete_link page %>
|
8
|
-
</div>
|
4
|
+
<%= render Spotlight::EditViewLinksComponent.new(page:, delete_link: true) %>
|
9
5
|
<%- if page.feature_page? -%>
|
10
6
|
<%= f.hidden_field :parent_page_id, data: {property: "parent_page"} %>
|
11
7
|
<% end %>
|
@@ -35,10 +35,10 @@
|
|
35
35
|
<%= f.text_field :title, control_col: "col-sm-5" %>
|
36
36
|
<%= f.text_field :subtitle, control_col: "col-sm-5" %>
|
37
37
|
<%= f.text_area :long_description, rows: 5 %>
|
38
|
-
<%= f.form_group :search_box, label: { text: t(:'.search_box.label'), class: 'pt-0' }, help: t(:'.search_box.help_block') do %>
|
39
|
-
<%= f.
|
38
|
+
<%= f.form_group :search_box, label: { text: t(:'.search_box.label'), class: 'pt-0 col-md-2 col-sm-2 col-form-label' }, help: t(:'.search_box.help_block') do %>
|
39
|
+
<%= f.check_box_without_bootstrap :search_box %>
|
40
40
|
<% end %>
|
41
|
-
<%= f.form_group label: { text: t(:".default_index_view_type")
|
41
|
+
<%= f.form_group label: { text: t(:".default_index_view_type") } do %>
|
42
42
|
<% available_document_index_views.each do |key, view| %>
|
43
43
|
<%= f.radio_button :default_index_view_type, key, label: view.display_label %>
|
44
44
|
<% end %>
|
@@ -4,6 +4,7 @@
|
|
4
4
|
<% if current_exhibit.analytics_provider&.enabled? %>
|
5
5
|
<%= nav_link t(:'spotlight.curation.sidebar.analytics'), spotlight.analytics_exhibit_dashboard_path(current_exhibit) %>
|
6
6
|
<% end %>
|
7
|
+
<%= nav_link t(:'spotlight.accessibility.header'), spotlight.exhibit_alt_text_path(current_exhibit) %>
|
7
8
|
</ul>
|
8
9
|
<%= render 'spotlight/shared/configuration_sidebar' if can? :update, current_exhibit %>
|
9
10
|
<%= render 'spotlight/shared/curation_sidebar' %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<
|
1
|
+
<div style="display:none;visibility:hidden;">
|
2
2
|
<% honeypot_field_name = Spotlight::Engine.config.spambot_honeypot_email_field %>
|
3
3
|
<%= f.email_field honeypot_field_name, label: t(:'spotlight.shared.report_a_problem.honeypot_field_explanation') %>
|
4
|
-
</
|
4
|
+
</div>
|
@@ -5,7 +5,7 @@
|
|
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 %>
|
8
|
-
<div class="browse-category" style='background-image:
|
8
|
+
<div class="browse-category" style='background-image: url("<%= search.thumbnail.iiif_url if search.thumbnail %>")'>
|
9
9
|
<div class="category-caption">
|
10
10
|
<p class="category-title">
|
11
11
|
<%= search.title %>
|
@@ -23,7 +23,7 @@
|
|
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 %>
|
26
|
-
<div class="browse-category" style='background-image:
|
26
|
+
<div class="browse-category" style='background-image: url("<%= search.thumbnail.iiif_url if search.thumbnail %>")'>
|
27
27
|
<div class="category-caption">
|
28
28
|
<p class="category-title">
|
29
29
|
<%= search.title %>
|
@@ -3,7 +3,7 @@
|
|
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='background-image:
|
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 %>
|
@@ -5,7 +5,7 @@
|
|
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 %>
|
8
|
-
<div class="browse-category" style='background-image:
|
8
|
+
<div class="browse-category" style='background-image: url("<%= search.thumbnail.iiif_url if search.thumbnail %>")'>
|
9
9
|
<div class="category-caption">
|
10
10
|
<p class="category-title">
|
11
11
|
<%= search.title %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="content-block item-text row d-block clearfix">
|
2
|
-
<div class="items-col spotlight-flexbox <%=
|
2
|
+
<div class="items-col spotlight-flexbox <%= uploaded_items_block.text? ? "col-md-6" : "col-md-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] %>">
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</div>
|
29
29
|
|
30
30
|
<% if uploaded_items_block.text? %>
|
31
|
-
<div class="text-col col-md-6 mw-100">
|
31
|
+
<div class="text-col col-md-6 mw-100 w-auto">
|
32
32
|
<%= content_tag(:h3, uploaded_items_block.title) if uploaded_items_block.title.present? %>
|
33
33
|
<%= sir_trevor_markdown uploaded_items_block.text %>
|
34
34
|
</div>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<%= file_field_tag :file, class: 'form-control' %>
|
15
15
|
<%= hidden_field_tag :tab, 'import', id: nil %>
|
16
16
|
<div class="input-group-append">
|
17
|
-
<%= f.submit t(:'.import_submit'), class: 'btn btn-primary' %>
|
17
|
+
<%= f.submit t(:'.import_submit'), class: 'btn btn-primary rounded-0 rounded-end' %>
|
18
18
|
</div>
|
19
19
|
</div>
|
20
20
|
</div>
|
@@ -191,6 +191,16 @@ en:
|
|
191
191
|
instructions: Enter details for each librarian, curator or other contact person for this exhibit. Select the contacts you want to be show in the sidebar of the about pages. Drag and drop contacts to specify the order in which they are shown in the sidebar.
|
192
192
|
page_options:
|
193
193
|
published: Publish
|
194
|
+
accessibility:
|
195
|
+
alt_text:
|
196
|
+
header: Alternative text
|
197
|
+
note: Items displayed via Item Embed are excluded from these totals, as it not currently possible to add alt text using this widget.
|
198
|
+
table:
|
199
|
+
can_have_alt_text: Total items on page
|
200
|
+
has_alt_text: Items with alt text
|
201
|
+
page_title: Page title
|
202
|
+
total_items: Of the items displayed via widgets, <b>%{has_alt_text} of %{total_alt_items}</b> have entered alt text (or a checked decorative box).
|
203
|
+
header: Accessibility
|
194
204
|
admin_users:
|
195
205
|
create:
|
196
206
|
error: There was a problem adding the user as an exhibits adminstrator
|
@@ -711,10 +721,14 @@ en:
|
|
711
721
|
instructions: Select metadata fields to display on each type of page. Select a field name to edit its display label. Drag and drop fields to specify the order in which they are displayed.
|
712
722
|
order_header: Display and order metadata fields
|
713
723
|
select_all: Select all
|
724
|
+
type_label: Type
|
714
725
|
view:
|
715
726
|
show: Item details
|
716
727
|
metadata_field:
|
717
728
|
restore_default: Restore default
|
729
|
+
types:
|
730
|
+
custom-field: Exhibit-specific
|
731
|
+
uploaded: Upload
|
718
732
|
pages:
|
719
733
|
edit:
|
720
734
|
header: Edit page
|
@@ -899,9 +913,8 @@ en:
|
|
899
913
|
help_secondary: To create a browse category-specific masthead, you should use an image that is at least 120 pixels tall and 1200 pixels wide. For best results use an image at least 1800 pixels wide. You can crop larger images using the cropping tool below.
|
900
914
|
query_params: Search parameters
|
901
915
|
search_box:
|
902
|
-
checkbox_label: Display
|
903
916
|
help_block: Displays a search box that enables users to search within the browse category results
|
904
|
-
label:
|
917
|
+
label: Display search box
|
905
918
|
search_description: Description
|
906
919
|
search_group: Group
|
907
920
|
search_masthead: Masthead
|
data/config/routes.rb
CHANGED
data/lib/spotlight/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-spotlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2024-
|
14
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activejob-status
|
@@ -925,6 +925,8 @@ files:
|
|
925
925
|
- app/components/spotlight/document_admin_table_component.html.erb
|
926
926
|
- app/components/spotlight/document_admin_table_component.rb
|
927
927
|
- app/components/spotlight/document_component.rb
|
928
|
+
- app/components/spotlight/edit_view_links_component.html.erb
|
929
|
+
- app/components/spotlight/edit_view_links_component.rb
|
928
930
|
- app/components/spotlight/exhibit_navbar_component.html.erb
|
929
931
|
- app/components/spotlight/exhibit_navbar_component.rb
|
930
932
|
- app/components/spotlight/header_component.html.erb
|
@@ -940,6 +942,7 @@ files:
|
|
940
942
|
- app/controllers/concerns/spotlight/controller.rb
|
941
943
|
- app/controllers/concerns/spotlight/search_helper.rb
|
942
944
|
- app/controllers/spotlight/about_pages_controller.rb
|
945
|
+
- app/controllers/spotlight/accessibility_controller.rb
|
943
946
|
- app/controllers/spotlight/admin_users_controller.rb
|
944
947
|
- app/controllers/spotlight/appearances_controller.rb
|
945
948
|
- app/controllers/spotlight/application_controller.rb
|
@@ -1209,6 +1212,7 @@ files:
|
|
1209
1212
|
- app/views/spotlight/about_pages/_page_options.html.erb
|
1210
1213
|
- app/views/spotlight/about_pages/_sidebar.html.erb
|
1211
1214
|
- app/views/spotlight/about_pages/index.html.erb
|
1215
|
+
- app/views/spotlight/accessibility/alt_text.html.erb
|
1212
1216
|
- app/views/spotlight/admin_users/index.html.erb
|
1213
1217
|
- app/views/spotlight/appearances/edit.html.erb
|
1214
1218
|
- app/views/spotlight/browse/_search.html.erb
|