blacklight-spotlight 5.0.0.pre.alpha2 → 5.0.0.pre.alpha3
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 +28 -29
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +28 -29
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/components/spotlight/analytics/dashboard_component.html.erb +4 -4
- data/app/components/spotlight/bulk_action_component.html.erb +1 -1
- data/app/components/spotlight/bulk_action_component.rb +1 -1
- data/app/components/spotlight/document_component.rb +1 -1
- data/app/components/spotlight/exhibit_navbar_component.html.erb +1 -1
- data/app/components/spotlight/save_search_component.html.erb +2 -4
- data/app/components/spotlight/save_search_component.rb +1 -1
- data/app/javascript/spotlight/admin/block_mixins/autocompleteable.js +1 -1
- data/app/javascript/spotlight/admin/blocks/browse_block.js +2 -2
- data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +2 -2
- data/app/javascript/spotlight/admin/blocks/resources_block.js +3 -3
- data/app/javascript/spotlight/admin/blocks/solr_documents_carousel_block.js +4 -4
- data/app/javascript/spotlight/admin/blocks/solr_documents_features_block.js +3 -4
- data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +6 -6
- data/app/javascript/spotlight/admin/users.js +2 -2
- data/app/javascript/spotlight/controllers/tag_selector_controller.js +2 -2
- data/app/javascript/spotlight/user/zpr_links.js +3 -3
- data/app/views/catalog/_add_tags.html.erb +2 -4
- data/app/views/catalog/_change_visibility.html.erb +2 -4
- data/app/views/catalog/_remove_tags.html.erb +3 -5
- data/app/views/shared/_curated_features_navbar.html.erb +1 -1
- data/app/views/shared/_user_util_links.html.erb +2 -2
- data/app/views/spotlight/admin_users/index.html.erb +5 -5
- data/app/views/spotlight/appearances/edit.html.erb +4 -4
- data/app/views/spotlight/browse/_search_box.html.erb +2 -2
- data/app/views/spotlight/browse/index.html.erb +1 -1
- data/app/views/spotlight/browse/show.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/_download.html.erb +2 -2
- data/app/views/spotlight/bulk_updates/_upload.html.erb +1 -1
- data/app/views/spotlight/bulk_updates/edit.html.erb +3 -3
- data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
- data/app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_document_visibility_control.html.erb +1 -1
- data/app/views/spotlight/catalog/admin.html.erb +1 -1
- data/app/views/spotlight/custom_fields/form_group/_text.html.erb +2 -2
- data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +2 -2
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
- data/app/views/spotlight/exhibits/_languages.html.erb +1 -1
- data/app/views/spotlight/exhibits/edit.html.erb +6 -6
- data/app/views/spotlight/exhibits/index.html.erb +3 -3
- data/app/views/spotlight/featured_images/_form.html.erb +1 -1
- data/app/views/spotlight/home_pages/_edit_page_link.html.erb +1 -1
- data/app/views/spotlight/locks/_lock.html.erb +1 -1
- data/app/views/spotlight/pages/_edit_page_link.html.erb +1 -1
- data/app/views/spotlight/pages/_form.html.erb +5 -5
- data/app/views/spotlight/pages/_order_pages.html.erb +1 -1
- data/app/views/spotlight/pages/_view_type_group.html.erb +1 -1
- data/app/views/spotlight/resources/_external_resources_form.html.erb +0 -1
- data/app/views/spotlight/resources/new.html.erb +0 -1
- data/app/views/spotlight/roles/index.html.erb +1 -1
- data/app/views/spotlight/search_configurations/_default_per_page.html.erb +1 -1
- data/app/views/spotlight/search_configurations/_document_index_view_types.html.erb +1 -1
- data/app/views/spotlight/search_configurations/_facets.html.erb +1 -1
- data/app/views/spotlight/search_configurations/edit.html.erb +3 -3
- data/app/views/spotlight/searches/_form.html.erb +4 -4
- data/app/views/spotlight/searches/index.html.erb +4 -4
- data/app/views/spotlight/shared/_dd3_item.html.erb +2 -2
- data/app/views/spotlight/shared/_exhibit_sidebar.html.erb +1 -1
- data/app/views/spotlight/shared/_locale_picker.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/_oembed_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +2 -2
- 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 +3 -3
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
- data/app/views/spotlight/sites/_exhibit.html.erb +4 -4
- data/app/views/spotlight/sites/edit.html.erb +2 -2
- data/app/views/spotlight/sites/edit_exhibits.html.erb +4 -4
- data/app/views/spotlight/tags/index.html.erb +1 -1
- data/app/views/spotlight/translations/_browse_categories.html.erb +3 -3
- data/app/views/spotlight/translations/_import.html.erb +3 -3
- data/app/views/spotlight/translations/_page.html.erb +1 -1
- data/app/views/spotlight/translations/edit.html.erb +6 -6
- data/config/locales/spotlight.en.yml +2 -2
- data/lib/spotlight/version.rb +1 -1
- data/vendor/assets/stylesheets/sir-trevor/block-controls.scss +0 -4
- metadata +5 -7
- data/app/components/spotlight/blocks/heading_block_component.erb +0 -2
- data/app/components/spotlight/blocks/heading_block_component.rb +0 -36
@@ -6,7 +6,7 @@
|
|
6
6
|
<%= bootstrap_form_for current_exhibit, url: spotlight.import_exhibit_translations_path(current_exhibit), html: { class: 'mb-3', multipart: true } do |f| %>
|
7
7
|
<div class="container-fluid">
|
8
8
|
<div class="row">
|
9
|
-
<div class="col-12 col-md-3 text-md-
|
9
|
+
<div class="col-12 col-md-3 text-md-end">
|
10
10
|
<%= f.label :value, t(".import_label"), class: 'col-form-label' %>
|
11
11
|
</div>
|
12
12
|
<div class="col-12 col-md-9">
|
@@ -23,11 +23,11 @@
|
|
23
23
|
<% end %>
|
24
24
|
<div class="container-fluid">
|
25
25
|
<div class="row">
|
26
|
-
<div class="col-form-label col-12 col-md-3 text-md-
|
26
|
+
<div class="col-form-label col-12 col-md-3 text-md-end">
|
27
27
|
<%= content_tag :span, t(".export_label") %>
|
28
28
|
</div>
|
29
29
|
<div class="col-12 col-md-9">
|
30
|
-
<%= link_to t(:'.export_current_locale', language: t(:"locales.#{@language}")), spotlight.exhibit_translations_path(current_exhibit, format: "yaml", locale: @language), class: 'btn btn-primary
|
30
|
+
<%= link_to t(:'.export_current_locale', language: t(:"locales.#{@language}")), spotlight.exhibit_translations_path(current_exhibit, format: "yaml", locale: @language), class: 'btn btn-primary me-3', data: { turbo: false } %>
|
31
31
|
<%= link_to t(:'.export_default_locale', language: t(:"locales.#{I18n.default_locale}")), spotlight.exhibit_translations_path(current_exhibit, format: "yaml", locale: I18n.default_locale), class: 'btn btn-primary', data: { turbo: false } %>
|
32
32
|
</div>
|
33
33
|
</div>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
<td class="text-center">
|
31
31
|
<%= f.fields_for :pages, translated_page do |p| %>
|
32
32
|
<%= p.hidden_field :id %>
|
33
|
-
<%= p.label :published, class: '
|
33
|
+
<%= p.label :published, class: 'visually-hidden' %>
|
34
34
|
<%= p.check_box_without_bootstrap :published, disabled: p.object.home_page? %>
|
35
35
|
<% end if translated_page %>
|
36
36
|
</td>
|
@@ -22,32 +22,32 @@
|
|
22
22
|
<div role="tabpanel">
|
23
23
|
<ul class='nav nav-tabs' role="tablist">
|
24
24
|
<li role="presentation" class="nav-item">
|
25
|
-
<a href='#general' class="nav-link <%= 'active' if @tab.blank? %>" aria-controls="general" role="tab" data-
|
25
|
+
<a href='#general' class="nav-link <%= 'active' if @tab.blank? %>" aria-controls="general" role="tab" data-bs-toggle="tab" data-behavior="translation-progress">
|
26
26
|
<%= t('spotlight.translations.general.label') %> <span class="badge"></span>
|
27
27
|
</a>
|
28
28
|
</li>
|
29
29
|
<li class="nav-item">
|
30
|
-
<a href="#metadata" class="nav-link <%= 'active' if @tab == 'metadata' %>" aria-controls="metadata" role="tab" data-
|
30
|
+
<a href="#metadata" class="nav-link <%= 'active' if @tab == 'metadata' %>" aria-controls="metadata" role="tab" data-bs-toggle="tab" data-behavior="translation-progress">
|
31
31
|
<%= t('spotlight.translations.metadata.label') %> <span class="badge"></span>
|
32
32
|
</a>
|
33
33
|
</li>
|
34
34
|
<li class="nav-item" >
|
35
|
-
<a href="#search_fields" class="nav-link <%= 'active' if @tab == 'search_fields' %>" aria-controls="search_fields" role="tab" data-
|
35
|
+
<a href="#search_fields" class="nav-link <%= 'active' if @tab == 'search_fields' %>" aria-controls="search_fields" role="tab" data-bs-toggle="tab" data-behavior="translation-progress">
|
36
36
|
<%= t('spotlight.translations.search_fields.label') %> <span class="badge"></span>
|
37
37
|
</a>
|
38
38
|
</li>
|
39
39
|
<li class="nav-item">
|
40
|
-
<a href="#browse" class="nav-link <%= 'active' if @tab == 'browse' %>" aria-controls="browse" role="tab" data-
|
40
|
+
<a href="#browse" class="nav-link <%= 'active' if @tab == 'browse' %>" aria-controls="browse" role="tab" data-bs-toggle="tab" data-behavior="translation-progress">
|
41
41
|
<%= t('spotlight.translations.browse_categories.label') %> <span class="badge"></span>
|
42
42
|
</a>
|
43
43
|
</li>
|
44
44
|
<li class="nav-item">
|
45
|
-
<a href="#groups" class="nav-link <%= 'active' if @tab == 'groups' %>" aria-controls="groups" role="tab" data-
|
45
|
+
<a href="#groups" class="nav-link <%= 'active' if @tab == 'groups' %>" aria-controls="groups" role="tab" data-bs-toggle="tab" data-behavior="translation-progress">
|
46
46
|
<%= t('spotlight.translations.groups.label') %> <span class="badge"></span>
|
47
47
|
</a>
|
48
48
|
</li>
|
49
49
|
<li class="nav-item">
|
50
|
-
<a href="#pages" class="nav-link <%= 'active' if @tab == 'pages' %>" aria-controls="pages" role="tab" data-
|
50
|
+
<a href="#pages" class="nav-link <%= 'active' if @tab == 'pages' %>" aria-controls="pages" role="tab" data-bs-toggle="tab" data-behavior="translation-progress">
|
51
51
|
<%= t('spotlight.translations.pages.label') %> <span class="badge"></span>
|
52
52
|
</a>
|
53
53
|
</li>
|
@@ -974,9 +974,9 @@ en:
|
|
974
974
|
one: "%{count} item"
|
975
975
|
other: "%{count} items"
|
976
976
|
solr_documents_block:
|
977
|
-
zpr_link_html: View <span class="
|
977
|
+
zpr_link_html: View <span class="visually-hidden">%{title}</span> larger
|
978
978
|
uploaded_items_block:
|
979
|
-
zpr_link_html: View <span class="
|
979
|
+
zpr_link_html: View <span class="visually-hidden">%{title}</span> larger
|
980
980
|
sites:
|
981
981
|
edit:
|
982
982
|
basic_settings:
|
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: 5.0.0.pre.
|
4
|
+
version: 5.0.0.pre.alpha3
|
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: 2025-02-
|
14
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activejob-status
|
@@ -93,7 +93,7 @@ dependencies:
|
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '4
|
96
|
+
version: '5.4'
|
97
97
|
- - "<"
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '6'
|
@@ -103,7 +103,7 @@ dependencies:
|
|
103
103
|
requirements:
|
104
104
|
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: '4
|
106
|
+
version: '5.4'
|
107
107
|
- - "<"
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '6'
|
@@ -865,8 +865,6 @@ files:
|
|
865
865
|
- app/components/spotlight/analytics/aggregation_component.rb
|
866
866
|
- app/components/spotlight/analytics/dashboard_component.html.erb
|
867
867
|
- app/components/spotlight/analytics/dashboard_component.rb
|
868
|
-
- app/components/spotlight/blocks/heading_block_component.erb
|
869
|
-
- app/components/spotlight/blocks/heading_block_component.rb
|
870
868
|
- app/components/spotlight/breadcrumbs_component.html.erb
|
871
869
|
- app/components/spotlight/breadcrumbs_component.rb
|
872
870
|
- app/components/spotlight/bulk_action_component.html.erb
|
@@ -1548,7 +1546,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1548
1546
|
- !ruby/object:Gem::Version
|
1549
1547
|
version: '0'
|
1550
1548
|
requirements: []
|
1551
|
-
rubygems_version: 3.5.
|
1549
|
+
rubygems_version: 3.5.9
|
1552
1550
|
signing_key:
|
1553
1551
|
specification_version: 4
|
1554
1552
|
summary: Enable librarians, curators, and others who are responsible for digital collections
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Spotlight
|
4
|
-
module Blocks
|
5
|
-
# Sir Trevor Heading Block
|
6
|
-
class HeadingBlockComponent < ViewComponent::Base
|
7
|
-
def initialize(heading_block:)
|
8
|
-
@heading_block = heading_block
|
9
|
-
super
|
10
|
-
end
|
11
|
-
|
12
|
-
attr_reader :heading_block
|
13
|
-
|
14
|
-
delegate :level, to: :heading_block
|
15
|
-
delegate :format, to: :heading_block
|
16
|
-
delegate :text, to: :heading_block
|
17
|
-
|
18
|
-
def heading_tag
|
19
|
-
return "h#{level}" if html? && valid_level?
|
20
|
-
|
21
|
-
# h2 was Spotlight's default heading tag for 10+ years.
|
22
|
-
'h2'
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
def valid_level?
|
28
|
-
level.to_i.between?(1, 6)
|
29
|
-
end
|
30
|
-
|
31
|
-
def html?
|
32
|
-
heading_block.format.to_s == 'html'
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|