blacklight-spotlight 5.3.2 → 6.0.0.rc2
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 +41 -4
- data/Rakefile +1 -2
- data/app/assets/javascripts/spotlight/spotlight.esm.js +2168 -4560
- data/app/assets/javascripts/spotlight/spotlight.esm.js.map +1 -1
- data/app/assets/javascripts/spotlight/spotlight.js +2167 -4559
- data/app/assets/javascripts/spotlight/spotlight.js.map +1 -1
- data/app/assets/stylesheets/spotlight/_blacklight_overrides.scss +4 -0
- data/app/assets/stylesheets/spotlight/_browse.scss +0 -4
- data/app/assets/stylesheets/spotlight/{_collapse_toggle.scss → _collapse_toggle.css} +2 -2
- data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +8 -0
- data/app/assets/stylesheets/spotlight/_exhibits_index.scss +2 -1
- data/app/assets/stylesheets/spotlight/_footer.scss +2 -2
- data/app/assets/stylesheets/spotlight/_header.scss +8 -8
- data/app/assets/stylesheets/spotlight/_pages.scss +1 -1
- data/app/assets/stylesheets/spotlight/_slideshow_block.scss +15 -0
- data/app/assets/stylesheets/spotlight/_spotlight.scss +1 -1
- data/app/assets/stylesheets/spotlight/_translations.scss +3 -3
- data/app/assets/stylesheets/spotlight/_uploaded_items_block.css +7 -0
- data/app/assets/stylesheets/spotlight/_variables.css +15 -0
- data/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +0 -76
- data/app/components/blacklight/icons/pause_component.rb +15 -0
- data/app/components/blacklight/icons/play_arrow_component.rb +15 -0
- data/app/components/spotlight/analytics/dashboard_component.html.erb +1 -1
- data/app/components/spotlight/custom_field_form_group_component.rb +40 -0
- data/app/components/spotlight/document_admin_table_component.html.erb +2 -2
- data/app/components/spotlight/edit_sidecar_component.html.erb +18 -0
- data/app/components/spotlight/edit_sidecar_component.rb +41 -0
- data/app/components/spotlight/masthead_component.html.erb +18 -0
- data/app/components/spotlight/masthead_component.rb +46 -0
- data/app/components/spotlight/save_search_component.html.erb +1 -1
- data/app/components/spotlight/sidecar_form_field_component.html.erb +18 -0
- data/app/components/spotlight/sidecar_form_field_component.rb +71 -0
- data/app/components/spotlight/solr_document_legacy_embed_component.html.erb +0 -4
- data/app/components/spotlight/solr_document_legacy_embed_component.rb +2 -2
- data/app/components/spotlight/tag_selector_component.html.erb +1 -1
- data/app/components/spotlight/tag_selector_component.rb +3 -2
- data/app/components/spotlight/upload_field_form_group_component.rb +33 -0
- data/app/controllers/concerns/spotlight/controller.rb +15 -14
- data/app/controllers/concerns/spotlight/search_helper.rb +2 -5
- data/app/controllers/spotlight/browse_controller.rb +1 -6
- data/app/controllers/spotlight/catalog_controller.rb +2 -3
- data/app/controllers/spotlight/concerns/application_controller.rb +4 -6
- data/app/controllers/spotlight/exhibits_controller.rb +22 -10
- data/app/controllers/spotlight/lock_controller.rb +1 -1
- data/app/controllers/spotlight/pages_controller.rb +11 -11
- data/app/controllers/spotlight/resources/upload_controller.rb +1 -1
- data/app/controllers/spotlight/resources_controller.rb +1 -1
- data/app/controllers/spotlight/solr_controller.rb +5 -1
- data/app/helpers/spotlight/application_helper.rb +14 -26
- data/app/helpers/spotlight/crud_link_helpers.rb +0 -12
- data/app/helpers/spotlight/main_app_helpers.rb +2 -2
- data/app/javascript/spotlight/admin/add_another.js +37 -25
- data/app/javascript/spotlight/admin/add_image_selector.js +43 -26
- data/app/javascript/spotlight/admin/add_new_button.js +51 -36
- data/app/javascript/spotlight/admin/blacklight_configuration.js +76 -54
- data/app/javascript/spotlight/admin/block_mixins/autocompleteable.js +102 -101
- data/app/javascript/spotlight/admin/block_mixins/formable.js +91 -75
- data/app/javascript/spotlight/admin/block_mixins/plustextable.js +46 -48
- data/app/javascript/spotlight/admin/blocks/block.js +27 -28
- data/app/javascript/spotlight/admin/blocks/browse_block.js +14 -10
- data/app/javascript/spotlight/admin/blocks/browse_group_categories_block.js +14 -10
- data/app/javascript/spotlight/admin/blocks/pages_block.js +5 -4
- data/app/javascript/spotlight/admin/blocks/resources_block.js +61 -41
- data/app/javascript/spotlight/admin/blocks/search_result_block.js +24 -7
- data/app/javascript/spotlight/admin/blocks/solr_documents_base_block.js +103 -50
- data/app/javascript/spotlight/admin/blocks/solr_documents_carousel_block.js +50 -26
- data/app/javascript/spotlight/admin/blocks/solr_documents_features_block.js +47 -23
- data/app/javascript/spotlight/admin/blocks/uploaded_items_block.js +35 -19
- data/app/javascript/spotlight/admin/crop.js +146 -66
- data/app/javascript/spotlight/admin/croppable.js +5 -4
- data/app/javascript/spotlight/admin/croppable_modal.js +67 -32
- data/app/javascript/spotlight/admin/edit_in_place.js +69 -54
- data/app/javascript/spotlight/admin/exhibits.js +92 -45
- data/app/javascript/spotlight/admin/form_observer.js +92 -78
- data/app/javascript/spotlight/admin/multi_image_selector.js +201 -153
- data/app/javascript/spotlight/admin/pages.js +13 -7
- data/app/javascript/spotlight/admin/progress_monitor.js +65 -50
- data/app/javascript/spotlight/admin/readonly_checkbox.js +7 -3
- data/app/javascript/spotlight/admin/search_typeahead.js +20 -11
- data/app/javascript/spotlight/admin/select_related_input.js +23 -23
- data/app/javascript/spotlight/admin/serialize_json.js +120 -0
- data/app/javascript/spotlight/admin/sir-trevor/block_controls.js +24 -11
- data/app/javascript/spotlight/admin/sir-trevor/block_limits.js +9 -6
- data/app/javascript/spotlight/admin/sir-trevor/locales.js +2 -2
- data/app/javascript/spotlight/admin/spotlight_nestable.js +2 -5
- data/app/javascript/spotlight/admin/translation_progress.js +18 -13
- data/app/javascript/spotlight/admin/users.js +151 -64
- data/app/javascript/spotlight/user/carousel.js +104 -32
- data/app/javascript/spotlight/user/clear_form_button.js +24 -14
- data/app/javascript/spotlight/user/index.js +0 -2
- data/app/javascript/spotlight/user/zpr_links.js +99 -40
- data/app/jobs/concerns/spotlight/gather_documents.rb +1 -1
- data/app/jobs/spotlight/add_uploads_from_csv.rb +31 -8
- data/app/jobs/spotlight/cleanup_job_trackers_job.rb +5 -3
- data/app/models/concerns/spotlight/access_controls_enforcement_search_builder.rb +13 -2
- data/app/models/concerns/spotlight/browse_category_search_builder.rb +3 -3
- data/app/models/concerns/spotlight/exhibit_documents.rb +2 -2
- data/app/models/concerns/spotlight/sitemap.rb +2 -2
- data/app/models/concerns/spotlight/solr_document/finder.rb +2 -2
- data/app/models/concerns/spotlight/solr_document.rb +1 -47
- data/app/models/sir_trevor_rails/blocks/browse_block.rb +0 -4
- data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +2 -1
- data/app/models/spotlight/blacklight_configuration.rb +5 -3
- data/app/models/spotlight/contact_email.rb +2 -2
- data/app/models/spotlight/custom_field.rb +17 -0
- data/app/models/spotlight/exhibit.rb +28 -0
- data/app/models/spotlight/featured_image.rb +1 -1
- data/app/models/spotlight/field_metadata.rb +10 -5
- data/app/models/spotlight/job_tracker.rb +0 -18
- data/app/models/spotlight/main_navigation.rb +2 -2
- data/app/models/spotlight/page.rb +3 -3
- data/app/models/spotlight/resources/iiif_harvester.rb +7 -4
- data/app/models/spotlight/resources/iiif_manifest.rb +0 -4
- data/app/models/spotlight/resources/iiif_manifest_metadata.rb +1 -3
- data/app/models/spotlight/resources/iiif_service.rb +21 -6
- data/app/models/spotlight/resources/upload.rb +6 -0
- data/app/models/spotlight/search.rb +5 -9
- data/app/models/spotlight/solr_document_sidecar.rb +18 -0
- data/app/services/spotlight/bulk_updates_csv_template_service.rb +1 -1
- data/app/services/spotlight/etl/pipeline.rb +2 -2
- data/app/services/spotlight/etl/step.rb +2 -2
- data/app/views/catalog/_remove_tags.html.erb +2 -2
- data/app/views/layouts/spotlight/base.html.erb +3 -6
- data/app/views/layouts/spotlight/spotlight.html.erb +2 -2
- data/app/views/shared/_analytics.html.erb +4 -3
- data/app/views/shared/_masthead.html.erb +2 -18
- data/app/views/spotlight/about_pages/_empty.html.erb +1 -1
- data/app/views/spotlight/about_pages/_sidebar.html.erb +10 -8
- data/app/views/spotlight/browse/_search.html.erb +2 -2
- data/app/views/spotlight/browse/_search_box.html.erb +6 -14
- data/app/views/spotlight/browse/index.html.erb +1 -1
- data/app/views/spotlight/browse/show.html.erb +1 -1
- data/app/views/spotlight/catalog/_document_admin_table.html.erb +1 -1
- data/app/views/spotlight/catalog/_edit_default.html.erb +1 -1
- data/app/views/spotlight/catalog/edit.html.erb +1 -1
- data/app/views/spotlight/dashboards/_page.html.erb +1 -1
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +3 -1
- data/app/views/spotlight/exhibits/_export.html.erb +17 -1
- data/app/views/spotlight/exhibits/_form.html.erb +20 -4
- data/app/views/spotlight/exhibits/_missing_exhibits.html.erb +3 -3
- data/app/views/spotlight/exhibits/index.html.erb +21 -8
- data/app/views/spotlight/feature_pages/_empty.html.erb +1 -1
- data/app/views/spotlight/feature_pages/_sidebar.html.erb +17 -15
- data/app/views/spotlight/home_pages/_empty.html.erb +7 -7
- data/app/views/spotlight/pages/show.html.erb +1 -0
- data/app/views/spotlight/resources/upload/_form.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +5 -16
- data/app/views/spotlight/sir_trevor/blocks/_embedded_document.html.erb +3 -5
- data/app/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +11 -2
- data/app/views/spotlight/sites/_exhibit.html.erb +1 -1
- data/config/i18n-tasks.yml +1 -1
- data/config/locales/spotlight.ar.yml +1 -2
- data/config/locales/spotlight.de.yml +1 -2
- data/config/locales/spotlight.en.yml +39 -10
- data/config/locales/spotlight.es.yml +1 -2
- data/config/locales/spotlight.fr.yml +1 -2
- data/config/locales/spotlight.it.yml +1 -2
- data/config/locales/spotlight.ja.yml +39 -0
- data/config/locales/spotlight.zh.yml +1 -2
- data/db/migrate/20261007133748_add_discovery_enabled_to_spotlight_exhibits.rb +5 -0
- data/lib/generators/spotlight/assets/importmap_generator.rb +2 -10
- data/lib/generators/spotlight/assets/propshaft_generator.rb +5 -4
- data/lib/generators/spotlight/install_generator.rb +2 -4
- data/lib/generators/spotlight/templates/catalog_controller.rb +0 -1
- data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +26 -4
- data/lib/generators/spotlight/templates/solr/conf/schema.xml +4 -3
- data/lib/generators/spotlight/templates/solr/conf/solrconfig.xml +3 -8
- data/lib/migration/page_language.rb +0 -2
- data/lib/spotlight/engine.rb +28 -9
- data/lib/spotlight/search_state.rb +7 -11
- data/lib/spotlight/upload_field_config.rb +19 -1
- data/lib/spotlight/version.rb +1 -1
- data/lib/spotlight.rb +1 -1
- data/spec/support/features/capybara_wait_metadata_helper.rb +3 -1
- data/spec/support/features/test_features_helpers.rb +24 -1
- data/spec/support/iiif_manifest_fixtures.rb +33 -0
- data/spec/support/stub_dns_resolution.rb +12 -0
- metadata +50 -80
- data/app/assets/stylesheets/spotlight/_uploaded_items_block.scss +0 -7
- data/app/assets/stylesheets/spotlight/_variables.scss +0 -13
- data/app/components/blacklight/icons/arrow_alt_circle_left_component.rb +0 -15
- data/app/components/blacklight/icons/arrow_alt_circle_right_component.rb +0 -15
- data/app/components/blacklight/icons/info_component.rb +0 -15
- data/app/components/blacklight/icons/zoom_in_component.rb +0 -15
- data/app/components/blacklight/icons/zoom_out_component.rb +0 -15
- data/app/components/spotlight/icon_component.rb +0 -13
- data/app/javascript/spotlight/user/browse_group_categories.js +0 -54
- data/app/mailers/spotlight/invitation_mailer.rb +0 -21
- data/app/models/concerns/spotlight/resources/web.rb +0 -38
- data/app/services/spotlight/iiif_resource_resolver.rb +0 -78
- data/app/views/catalog/_image_default.html.erb +0 -6
- data/app/views/shared/_exhibit_navbar.html.erb +0 -2
- data/app/views/shared/_header_navbar.html.erb +0 -6
- data/app/views/spotlight/catalog/_admin_index_header_default.html.erb +0 -23
- data/app/views/spotlight/catalog/_admin_thumbnail_default.html.erb +0 -7
- data/app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb +0 -1
- data/app/views/spotlight/catalog/_document_row.html.erb +0 -2
- data/app/views/spotlight/catalog/_edit_sidecar.html.erb +0 -24
- data/app/views/spotlight/catalog/_index_compact_default.html.erb +0 -21
- data/app/views/spotlight/custom_fields/form_group/_text.html.erb +0 -23
- data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +0 -23
- data/app/views/spotlight/invitation_mailer/exhibit_invitation_notification.html.erb +0 -12
- data/lib/generators/spotlight/templates/javascript/jquery-shim.js +0 -1
- data/vendor/assets/javascripts/tiny-slider.js +0 -3221
- data/vendor/assets/stylesheets/tiny-slider.css +0 -1
- /data/app/assets/stylesheets/spotlight/{_breadcrumbs.scss → _breadcrumbs.css} +0 -0
- /data/app/assets/stylesheets/spotlight/{_croppable.scss → _croppable.css} +0 -0
- /data/app/assets/stylesheets/spotlight/{_modals.scss → _modals.css} +0 -0
- /data/app/assets/stylesheets/spotlight/{_utilities.scss → _utilities.css} +0 -0
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
|
+
version: 6.0.0.rc2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Beer
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
- Justin Coyne
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activejob-status
|
|
@@ -52,27 +52,27 @@ dependencies:
|
|
|
52
52
|
requirements:
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 8.
|
|
55
|
+
version: 8.12.0
|
|
56
56
|
- - "<"
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: '
|
|
58
|
+
version: '10'
|
|
59
59
|
type: :runtime
|
|
60
60
|
prerelease: false
|
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 8.
|
|
65
|
+
version: 8.12.0
|
|
66
66
|
- - "<"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '10'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: blacklight-gallery
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
75
|
+
version: '5.1'
|
|
76
76
|
- - "<"
|
|
77
77
|
- !ruby/object:Gem::Version
|
|
78
78
|
version: '7'
|
|
@@ -82,7 +82,7 @@ dependencies:
|
|
|
82
82
|
requirements:
|
|
83
83
|
- - ">="
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: '
|
|
85
|
+
version: '5.1'
|
|
86
86
|
- - "<"
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: '7'
|
|
@@ -188,34 +188,6 @@ dependencies:
|
|
|
188
188
|
- - ">="
|
|
189
189
|
- !ruby/object:Gem::Version
|
|
190
190
|
version: '0'
|
|
191
|
-
- !ruby/object:Gem::Dependency
|
|
192
|
-
name: faraday
|
|
193
|
-
requirement: !ruby/object:Gem::Requirement
|
|
194
|
-
requirements:
|
|
195
|
-
- - ">="
|
|
196
|
-
- !ruby/object:Gem::Version
|
|
197
|
-
version: '0'
|
|
198
|
-
type: :runtime
|
|
199
|
-
prerelease: false
|
|
200
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
201
|
-
requirements:
|
|
202
|
-
- - ">="
|
|
203
|
-
- !ruby/object:Gem::Version
|
|
204
|
-
version: '0'
|
|
205
|
-
- !ruby/object:Gem::Dependency
|
|
206
|
-
name: faraday-follow_redirects
|
|
207
|
-
requirement: !ruby/object:Gem::Requirement
|
|
208
|
-
requirements:
|
|
209
|
-
- - ">="
|
|
210
|
-
- !ruby/object:Gem::Version
|
|
211
|
-
version: '0'
|
|
212
|
-
type: :runtime
|
|
213
|
-
prerelease: false
|
|
214
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
215
|
-
requirements:
|
|
216
|
-
- - ">="
|
|
217
|
-
- !ruby/object:Gem::Version
|
|
218
|
-
version: '0'
|
|
219
191
|
- !ruby/object:Gem::Dependency
|
|
220
192
|
name: friendly_id
|
|
221
193
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -443,25 +415,33 @@ dependencies:
|
|
|
443
415
|
- !ruby/object:Gem::Version
|
|
444
416
|
version: '2.0'
|
|
445
417
|
- !ruby/object:Gem::Dependency
|
|
446
|
-
name:
|
|
418
|
+
name: ssrf_filter
|
|
447
419
|
requirement: !ruby/object:Gem::Requirement
|
|
448
420
|
requirements:
|
|
449
|
-
- - "
|
|
450
|
-
- !ruby/object:Gem::Version
|
|
451
|
-
version: '2.66'
|
|
452
|
-
- - "<"
|
|
421
|
+
- - "~>"
|
|
453
422
|
- !ruby/object:Gem::Version
|
|
454
|
-
version: '
|
|
423
|
+
version: '1.0'
|
|
455
424
|
type: :runtime
|
|
456
425
|
prerelease: false
|
|
457
426
|
version_requirements: !ruby/object:Gem::Requirement
|
|
458
427
|
requirements:
|
|
459
|
-
- - "
|
|
428
|
+
- - "~>"
|
|
460
429
|
- !ruby/object:Gem::Version
|
|
461
|
-
version: '
|
|
462
|
-
|
|
430
|
+
version: '1.0'
|
|
431
|
+
- !ruby/object:Gem::Dependency
|
|
432
|
+
name: view_component
|
|
433
|
+
requirement: !ruby/object:Gem::Requirement
|
|
434
|
+
requirements:
|
|
435
|
+
- - "~>"
|
|
463
436
|
- !ruby/object:Gem::Version
|
|
464
|
-
version: '4'
|
|
437
|
+
version: '4.0'
|
|
438
|
+
type: :runtime
|
|
439
|
+
prerelease: false
|
|
440
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
441
|
+
requirements:
|
|
442
|
+
- - "~>"
|
|
443
|
+
- !ruby/object:Gem::Version
|
|
444
|
+
version: '4.0'
|
|
465
445
|
- !ruby/object:Gem::Dependency
|
|
466
446
|
name: axe-core-rspec
|
|
467
447
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -766,11 +746,11 @@ files:
|
|
|
766
746
|
- app/assets/stylesheets/spotlight/_blacklight_configuration.scss
|
|
767
747
|
- app/assets/stylesheets/spotlight/_blacklight_overrides.scss
|
|
768
748
|
- app/assets/stylesheets/spotlight/_bootstrap_overrides.scss
|
|
769
|
-
- app/assets/stylesheets/spotlight/_breadcrumbs.
|
|
749
|
+
- app/assets/stylesheets/spotlight/_breadcrumbs.css
|
|
770
750
|
- app/assets/stylesheets/spotlight/_browse.scss
|
|
771
751
|
- app/assets/stylesheets/spotlight/_catalog.scss
|
|
772
|
-
- app/assets/stylesheets/spotlight/_collapse_toggle.
|
|
773
|
-
- app/assets/stylesheets/spotlight/_croppable.
|
|
752
|
+
- app/assets/stylesheets/spotlight/_collapse_toggle.css
|
|
753
|
+
- app/assets/stylesheets/spotlight/_croppable.css
|
|
774
754
|
- app/assets/stylesheets/spotlight/_curation.scss
|
|
775
755
|
- app/assets/stylesheets/spotlight/_edit_in_place.scss
|
|
776
756
|
- app/assets/stylesheets/spotlight/_exhibit_admin.scss
|
|
@@ -781,7 +761,7 @@ files:
|
|
|
781
761
|
- app/assets/stylesheets/spotlight/_header.scss
|
|
782
762
|
- app/assets/stylesheets/spotlight/_item_text_block.scss
|
|
783
763
|
- app/assets/stylesheets/spotlight/_mixins.scss
|
|
784
|
-
- app/assets/stylesheets/spotlight/_modals.
|
|
764
|
+
- app/assets/stylesheets/spotlight/_modals.css
|
|
785
765
|
- app/assets/stylesheets/spotlight/_multi_image_selector.scss
|
|
786
766
|
- app/assets/stylesheets/spotlight/_multi_up_item_grid.scss
|
|
787
767
|
- app/assets/stylesheets/spotlight/_nestable.scss
|
|
@@ -793,13 +773,11 @@ files:
|
|
|
793
773
|
- app/assets/stylesheets/spotlight/_tag_selector.scss
|
|
794
774
|
- app/assets/stylesheets/spotlight/_translations.scss
|
|
795
775
|
- app/assets/stylesheets/spotlight/_upload.scss
|
|
796
|
-
- app/assets/stylesheets/spotlight/_uploaded_items_block.
|
|
797
|
-
- app/assets/stylesheets/spotlight/_utilities.
|
|
798
|
-
- app/assets/stylesheets/spotlight/_variables.
|
|
776
|
+
- app/assets/stylesheets/spotlight/_uploaded_items_block.css
|
|
777
|
+
- app/assets/stylesheets/spotlight/_utilities.css
|
|
778
|
+
- app/assets/stylesheets/spotlight/_variables.css
|
|
799
779
|
- app/assets/stylesheets/spotlight/_view_larger.scss
|
|
800
780
|
- app/assets/stylesheets/spotlight/browse_group_categories_block.scss
|
|
801
|
-
- app/components/blacklight/icons/arrow_alt_circle_left_component.rb
|
|
802
|
-
- app/components/blacklight/icons/arrow_alt_circle_right_component.rb
|
|
803
781
|
- app/components/blacklight/icons/arrow_back_ios_component.rb
|
|
804
782
|
- app/components/blacklight/icons/arrow_forward_ios_component.rb
|
|
805
783
|
- app/components/blacklight/icons/check_circle_component.rb
|
|
@@ -809,10 +787,9 @@ files:
|
|
|
809
787
|
- app/components/blacklight/icons/edit_component.rb
|
|
810
788
|
- app/components/blacklight/icons/error_component.rb
|
|
811
789
|
- app/components/blacklight/icons/highlight_off_component.rb
|
|
812
|
-
- app/components/blacklight/icons/
|
|
790
|
+
- app/components/blacklight/icons/pause_component.rb
|
|
791
|
+
- app/components/blacklight/icons/play_arrow_component.rb
|
|
813
792
|
- app/components/blacklight/icons/warning_component.rb
|
|
814
|
-
- app/components/blacklight/icons/zoom_in_component.rb
|
|
815
|
-
- app/components/blacklight/icons/zoom_out_component.rb
|
|
816
793
|
- app/components/spotlight/admin_users/email_component.html.erb
|
|
817
794
|
- app/components/spotlight/admin_users/email_component.rb
|
|
818
795
|
- app/components/spotlight/admin_users/exhibit_roles_component.html.erb
|
|
@@ -827,9 +804,12 @@ files:
|
|
|
827
804
|
- app/components/spotlight/breadcrumbs_component.rb
|
|
828
805
|
- app/components/spotlight/bulk_action_component.html.erb
|
|
829
806
|
- app/components/spotlight/bulk_action_component.rb
|
|
807
|
+
- app/components/spotlight/custom_field_form_group_component.rb
|
|
830
808
|
- app/components/spotlight/document_admin_table_component.html.erb
|
|
831
809
|
- app/components/spotlight/document_admin_table_component.rb
|
|
832
810
|
- app/components/spotlight/document_component.rb
|
|
811
|
+
- app/components/spotlight/edit_sidecar_component.html.erb
|
|
812
|
+
- app/components/spotlight/edit_sidecar_component.rb
|
|
833
813
|
- app/components/spotlight/edit_view_links_component.html.erb
|
|
834
814
|
- app/components/spotlight/edit_view_links_component.rb
|
|
835
815
|
- app/components/spotlight/exhibit_navbar_component.html.erb
|
|
@@ -838,11 +818,14 @@ files:
|
|
|
838
818
|
- app/components/spotlight/header_component.rb
|
|
839
819
|
- app/components/spotlight/header_navigation_link_component.html.erb
|
|
840
820
|
- app/components/spotlight/header_navigation_link_component.rb
|
|
841
|
-
- app/components/spotlight/
|
|
821
|
+
- app/components/spotlight/masthead_component.html.erb
|
|
822
|
+
- app/components/spotlight/masthead_component.rb
|
|
842
823
|
- app/components/spotlight/save_search_component.html.erb
|
|
843
824
|
- app/components/spotlight/save_search_component.rb
|
|
844
825
|
- app/components/spotlight/select_image_component.html.erb
|
|
845
826
|
- app/components/spotlight/select_image_component.rb
|
|
827
|
+
- app/components/spotlight/sidecar_form_field_component.html.erb
|
|
828
|
+
- app/components/spotlight/sidecar_form_field_component.rb
|
|
846
829
|
- app/components/spotlight/skip_link_component.rb
|
|
847
830
|
- app/components/spotlight/solr_document_legacy_embed_component.html.erb
|
|
848
831
|
- app/components/spotlight/solr_document_legacy_embed_component.rb
|
|
@@ -857,6 +840,7 @@ files:
|
|
|
857
840
|
- app/components/spotlight/translations/subheading_component.rb
|
|
858
841
|
- app/components/spotlight/uneditable_non_default_language_component.html.erb
|
|
859
842
|
- app/components/spotlight/uneditable_non_default_language_component.rb
|
|
843
|
+
- app/components/spotlight/upload_field_form_group_component.rb
|
|
860
844
|
- app/controllers/concerns/spotlight/base.rb
|
|
861
845
|
- app/controllers/concerns/spotlight/catalog.rb
|
|
862
846
|
- app/controllers/concerns/spotlight/config.rb
|
|
@@ -962,6 +946,7 @@ files:
|
|
|
962
946
|
- app/javascript/spotlight/admin/readonly_checkbox.js
|
|
963
947
|
- app/javascript/spotlight/admin/search_typeahead.js
|
|
964
948
|
- app/javascript/spotlight/admin/select_related_input.js
|
|
949
|
+
- app/javascript/spotlight/admin/serialize_json.js
|
|
965
950
|
- app/javascript/spotlight/admin/sir-trevor/block_controls.js
|
|
966
951
|
- app/javascript/spotlight/admin/sir-trevor/block_limits.js
|
|
967
952
|
- app/javascript/spotlight/admin/sir-trevor/locales.js
|
|
@@ -975,7 +960,6 @@ files:
|
|
|
975
960
|
- app/javascript/spotlight/controllers/tag_selector_controller.js
|
|
976
961
|
- app/javascript/spotlight/core.js
|
|
977
962
|
- app/javascript/spotlight/index.js
|
|
978
|
-
- app/javascript/spotlight/user/browse_group_categories.js
|
|
979
963
|
- app/javascript/spotlight/user/carousel.js
|
|
980
964
|
- app/javascript/spotlight/user/clear_form_button.js
|
|
981
965
|
- app/javascript/spotlight/user/index.js
|
|
@@ -999,7 +983,6 @@ files:
|
|
|
999
983
|
- app/mailers/spotlight/confirmation_mailer.rb
|
|
1000
984
|
- app/mailers/spotlight/contact_mailer.rb
|
|
1001
985
|
- app/mailers/spotlight/indexing_complete_mailer.rb
|
|
1002
|
-
- app/mailers/spotlight/invitation_mailer.rb
|
|
1003
986
|
- app/models/ability.rb
|
|
1004
987
|
- app/models/breadcrumb.rb
|
|
1005
988
|
- app/models/concerns/spotlight/access_controls_enforcement_search_builder.rb
|
|
@@ -1009,7 +992,6 @@ files:
|
|
|
1009
992
|
- app/models/concerns/spotlight/exhibit_analytics.rb
|
|
1010
993
|
- app/models/concerns/spotlight/exhibit_defaults.rb
|
|
1011
994
|
- app/models/concerns/spotlight/exhibit_documents.rb
|
|
1012
|
-
- app/models/concerns/spotlight/resources/web.rb
|
|
1013
995
|
- app/models/concerns/spotlight/search_builder.rb
|
|
1014
996
|
- app/models/concerns/spotlight/sitemap.rb
|
|
1015
997
|
- app/models/concerns/spotlight/solr_document.rb
|
|
@@ -1094,7 +1076,6 @@ files:
|
|
|
1094
1076
|
- app/services/spotlight/etl/step.rb
|
|
1095
1077
|
- app/services/spotlight/etl/transforms.rb
|
|
1096
1078
|
- app/services/spotlight/exhibit_import_export_service.rb
|
|
1097
|
-
- app/services/spotlight/iiif_resource_resolver.rb
|
|
1098
1079
|
- app/services/spotlight/invite_users_service.rb
|
|
1099
1080
|
- app/services/spotlight/validity_checker.rb
|
|
1100
1081
|
- app/uploaders/spotlight/attachment_uploader.rb
|
|
@@ -1108,7 +1089,6 @@ files:
|
|
|
1108
1089
|
- app/views/catalog/_bulk_actions.html.erb
|
|
1109
1090
|
- app/views/catalog/_change_visibility.html.erb
|
|
1110
1091
|
- app/views/catalog/_curator_actions.html.erb
|
|
1111
|
-
- app/views/catalog/_image_default.html.erb
|
|
1112
1092
|
- app/views/catalog/_remove_tags.html.erb
|
|
1113
1093
|
- app/views/catalog/_save_search.html.erb
|
|
1114
1094
|
- app/views/devise/confirmations/new.html.erb
|
|
@@ -1121,9 +1101,7 @@ files:
|
|
|
1121
1101
|
- app/views/shared/_body_preamble.html.erb
|
|
1122
1102
|
- app/views/shared/_browse_navbar.html.erb
|
|
1123
1103
|
- app/views/shared/_curated_features_navbar.html.erb
|
|
1124
|
-
- app/views/shared/_exhibit_navbar.html.erb
|
|
1125
1104
|
- app/views/shared/_footer.html.erb
|
|
1126
|
-
- app/views/shared/_header_navbar.html.erb
|
|
1127
1105
|
- app/views/shared/_masthead.html.erb
|
|
1128
1106
|
- app/views/shared/_site_navbar.html.erb
|
|
1129
1107
|
- app/views/shared/_site_sidebar.html.erb
|
|
@@ -1150,16 +1128,10 @@ files:
|
|
|
1150
1128
|
- app/views/spotlight/bulk_updates/_upload.html.erb
|
|
1151
1129
|
- app/views/spotlight/bulk_updates/edit.html.erb
|
|
1152
1130
|
- app/views/spotlight/catalog/_admin_header.html.erb
|
|
1153
|
-
- app/views/spotlight/catalog/_admin_index_header_default.html.erb
|
|
1154
|
-
- app/views/spotlight/catalog/_admin_thumbnail_default.html.erb
|
|
1155
|
-
- app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb
|
|
1156
1131
|
- app/views/spotlight/catalog/_document.html.erb
|
|
1157
1132
|
- app/views/spotlight/catalog/_document_admin_table.html.erb
|
|
1158
|
-
- app/views/spotlight/catalog/_document_row.html.erb
|
|
1159
1133
|
- app/views/spotlight/catalog/_document_visibility_control.html.erb
|
|
1160
1134
|
- app/views/spotlight/catalog/_edit_default.html.erb
|
|
1161
|
-
- app/views/spotlight/catalog/_edit_sidecar.html.erb
|
|
1162
|
-
- app/views/spotlight/catalog/_index_compact_default.html.erb
|
|
1163
1135
|
- app/views/spotlight/catalog/_reindex_progress_panel.html.erb
|
|
1164
1136
|
- app/views/spotlight/catalog/admin.html.erb
|
|
1165
1137
|
- app/views/spotlight/catalog/edit.html.erb
|
|
@@ -1173,8 +1145,6 @@ files:
|
|
|
1173
1145
|
- app/views/spotlight/contacts/new.html.erb
|
|
1174
1146
|
- app/views/spotlight/custom_fields/_form.html.erb
|
|
1175
1147
|
- app/views/spotlight/custom_fields/edit.html.erb
|
|
1176
|
-
- app/views/spotlight/custom_fields/form_group/_text.html.erb
|
|
1177
|
-
- app/views/spotlight/custom_fields/form_group/_vocab.html.erb
|
|
1178
1148
|
- app/views/spotlight/custom_fields/new.html.erb
|
|
1179
1149
|
- app/views/spotlight/custom_search_fields/_form.html.erb
|
|
1180
1150
|
- app/views/spotlight/custom_search_fields/edit.html.erb
|
|
@@ -1213,7 +1183,6 @@ files:
|
|
|
1213
1183
|
- app/views/spotlight/home_pages/_page_options.html.erb
|
|
1214
1184
|
- app/views/spotlight/home_pages/_sidebar.html.erb
|
|
1215
1185
|
- app/views/spotlight/indexing_complete_mailer/documents_indexed.html.erb
|
|
1216
|
-
- app/views/spotlight/invitation_mailer/exhibit_invitation_notification.html.erb
|
|
1217
1186
|
- app/views/spotlight/job_trackers/show.html.erb
|
|
1218
1187
|
- app/views/spotlight/locks/_lock.html.erb
|
|
1219
1188
|
- app/views/spotlight/metadata_configurations/_metadata_field.html.erb
|
|
@@ -1310,6 +1279,7 @@ files:
|
|
|
1310
1279
|
- config/locales/spotlight.es.yml
|
|
1311
1280
|
- config/locales/spotlight.fr.yml
|
|
1312
1281
|
- config/locales/spotlight.it.yml
|
|
1282
|
+
- config/locales/spotlight.ja.yml
|
|
1313
1283
|
- config/locales/spotlight.pt-BR.yml
|
|
1314
1284
|
- config/locales/spotlight.zh.yml
|
|
1315
1285
|
- config/routes.rb
|
|
@@ -1388,6 +1358,7 @@ files:
|
|
|
1388
1358
|
- db/migrate/20210305171150_create_bulk_updates.rb
|
|
1389
1359
|
- db/migrate/20210308090000_migrate_caption_values_for_title_key.rb
|
|
1390
1360
|
- db/migrate/20210506070809_add_indexes_for_featured_images.rb
|
|
1361
|
+
- db/migrate/20261007133748_add_discovery_enabled_to_spotlight_exhibits.rb
|
|
1391
1362
|
- lib/blacklight/spotlight.rb
|
|
1392
1363
|
- lib/generators/spotlight/assets/generator_common_utilities.rb
|
|
1393
1364
|
- lib/generators/spotlight/assets/importmap_generator.rb
|
|
@@ -1402,7 +1373,6 @@ files:
|
|
|
1402
1373
|
- lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb
|
|
1403
1374
|
- lib/generators/spotlight/templates/config/initializers/translation.rb
|
|
1404
1375
|
- lib/generators/spotlight/templates/config/sitemap.rb
|
|
1405
|
-
- lib/generators/spotlight/templates/javascript/jquery-shim.js
|
|
1406
1376
|
- lib/generators/spotlight/templates/solr/conf/_rest_managed.json
|
|
1407
1377
|
- lib/generators/spotlight/templates/solr/conf/admin-extra.html
|
|
1408
1378
|
- lib/generators/spotlight/templates/solr/conf/elevate.xml
|
|
@@ -1465,6 +1435,8 @@ files:
|
|
|
1465
1435
|
- spec/support/features/capybara_wait_metadata_helper.rb
|
|
1466
1436
|
- spec/support/features/test_features_helpers.rb
|
|
1467
1437
|
- spec/support/helpers/controller_level_helpers.rb
|
|
1438
|
+
- spec/support/iiif_manifest_fixtures.rb
|
|
1439
|
+
- spec/support/stub_dns_resolution.rb
|
|
1468
1440
|
- spec/support/stub_iiif_response.rb
|
|
1469
1441
|
- spec/support/views/test_view_helpers.rb
|
|
1470
1442
|
- spec/support/with_queue_adapter.rb
|
|
@@ -1473,7 +1445,6 @@ files:
|
|
|
1473
1445
|
- vendor/assets/javascripts/Path.Drag.js
|
|
1474
1446
|
- vendor/assets/javascripts/leaflet-iiif.js
|
|
1475
1447
|
- vendor/assets/javascripts/parameterize.js
|
|
1476
|
-
- vendor/assets/javascripts/tiny-slider.js
|
|
1477
1448
|
- vendor/assets/stylesheets/sir-trevor/_icons.scss
|
|
1478
1449
|
- vendor/assets/stylesheets/sir-trevor/_variables.scss
|
|
1479
1450
|
- vendor/assets/stylesheets/sir-trevor/base.scss
|
|
@@ -1490,7 +1461,6 @@ files:
|
|
|
1490
1461
|
- vendor/assets/stylesheets/sir-trevor/main.scss
|
|
1491
1462
|
- vendor/assets/stylesheets/sir-trevor/patterns/ui-popup.scss
|
|
1492
1463
|
- vendor/assets/stylesheets/sir-trevor/utils.scss
|
|
1493
|
-
- vendor/assets/stylesheets/tiny-slider.css
|
|
1494
1464
|
homepage: https://github.com/projectblacklight/spotlight
|
|
1495
1465
|
licenses: []
|
|
1496
1466
|
metadata:
|
|
@@ -1502,14 +1472,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
1502
1472
|
requirements:
|
|
1503
1473
|
- - ">="
|
|
1504
1474
|
- !ruby/object:Gem::Version
|
|
1505
|
-
version: '3.
|
|
1475
|
+
version: '3.3'
|
|
1506
1476
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1507
1477
|
requirements:
|
|
1508
1478
|
- - ">="
|
|
1509
1479
|
- !ruby/object:Gem::Version
|
|
1510
1480
|
version: '0'
|
|
1511
1481
|
requirements: []
|
|
1512
|
-
rubygems_version: 3.6.
|
|
1482
|
+
rubygems_version: 3.6.9
|
|
1513
1483
|
specification_version: 4
|
|
1514
1484
|
summary: Enable librarians, curators, and others who are responsible for digital collections
|
|
1515
1485
|
to create attractive, feature-rich websites that feature these collections.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
$footer-top-margin: 3rem !default;
|
|
2
|
-
$footer-height: 7.5rem !default;
|
|
3
|
-
|
|
4
|
-
$masthead-bg: $card-bg !default;
|
|
5
|
-
$masthead-height: 11.25rem !default;
|
|
6
|
-
$masthead-image-blur: 1px !default;
|
|
7
|
-
$navbar-transparent-border: $gray-500 !default;
|
|
8
|
-
$navbar-transparent-page-bg: rgba(0, 0, 0, 0.5) !default;
|
|
9
|
-
|
|
10
|
-
// Translations
|
|
11
|
-
$translation-available-color: #80bf77;
|
|
12
|
-
$translation-panel-bg: #f5f5f5;
|
|
13
|
-
$translation-help-color: #555;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Blacklight
|
|
4
|
-
module Icons
|
|
5
|
-
# Icon for ArrowAltCircleLeft
|
|
6
|
-
class ArrowAltCircleLeftComponent < Blacklight::Icons::IconComponent
|
|
7
|
-
self.svg = <<~SVG
|
|
8
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
9
|
-
<!-- Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->
|
|
10
|
-
<path d="M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"/>
|
|
11
|
-
</svg>
|
|
12
|
-
SVG
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Blacklight
|
|
4
|
-
module Icons
|
|
5
|
-
# Icon for ArrowAltCircleRight
|
|
6
|
-
class ArrowAltCircleRightComponent < Blacklight::Icons::IconComponent
|
|
7
|
-
self.svg = <<~SVG
|
|
8
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
9
|
-
<!-- Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) -->
|
|
10
|
-
<path d="M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"/>
|
|
11
|
-
</svg>
|
|
12
|
-
SVG
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Blacklight
|
|
4
|
-
module Icons
|
|
5
|
-
# Icon for Info
|
|
6
|
-
class InfoComponent < Blacklight::Icons::IconComponent
|
|
7
|
-
self.svg = <<~SVG
|
|
8
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
9
|
-
<path fill="none" d="M0 0h24v24H0V0z"/>
|
|
10
|
-
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
|
|
11
|
-
</svg>
|
|
12
|
-
SVG
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Blacklight
|
|
4
|
-
module Icons
|
|
5
|
-
# Icon for ZoomIn
|
|
6
|
-
class ZoomInComponent < Blacklight::Icons::IconComponent
|
|
7
|
-
self.svg = <<~SVG
|
|
8
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
|
|
9
|
-
<path d="M0 0h24v24H0V0z" fill="none"/>
|
|
10
|
-
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm.5-7H9v2H7v1h2v2h1v-2h2V9h-2z"/>
|
|
11
|
-
</svg>
|
|
12
|
-
SVG
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Blacklight
|
|
4
|
-
module Icons
|
|
5
|
-
# Icon for ZoomOut
|
|
6
|
-
class ZoomOutComponent < Blacklight::Icons::IconComponent
|
|
7
|
-
self.svg = <<~SVG
|
|
8
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
|
|
9
|
-
<path d="M0 0h24v24H0V0z" fill="none"/>
|
|
10
|
-
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7V9z"/>
|
|
11
|
-
</svg>
|
|
12
|
-
SVG
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Spotlight
|
|
4
|
-
# Displays the document
|
|
5
|
-
class IconComponent < Blacklight::Icons::IconComponent
|
|
6
|
-
def initialize(*args, **kwargs)
|
|
7
|
-
Spotlight.deprecator.warn(
|
|
8
|
-
'Spotlight::IconComponent is deprecated and will be removed in a future version. Use Blacklight::Icons::IconComponent instead.'
|
|
9
|
-
)
|
|
10
|
-
super
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import tns from "tiny-slider"
|
|
2
|
-
|
|
3
|
-
export default class {
|
|
4
|
-
connect() {
|
|
5
|
-
var $container, slider
|
|
6
|
-
|
|
7
|
-
function init() {
|
|
8
|
-
var data = $container.data()
|
|
9
|
-
var sidebar = $container.data().sidebar
|
|
10
|
-
var items = data.browseGroupCategoriesCount
|
|
11
|
-
var dir = $("html").attr("dir")
|
|
12
|
-
var controls = $container
|
|
13
|
-
.parent()
|
|
14
|
-
.find(".browse-group-categories-controls")[0]
|
|
15
|
-
|
|
16
|
-
slider = tns({
|
|
17
|
-
container: $container[0],
|
|
18
|
-
controlsContainer: controls,
|
|
19
|
-
loop: false,
|
|
20
|
-
nav: false,
|
|
21
|
-
items: 1,
|
|
22
|
-
slideBy: "page",
|
|
23
|
-
textDirection: dir,
|
|
24
|
-
responsive: {
|
|
25
|
-
576: {
|
|
26
|
-
items: itemCount(items, sidebar),
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
})
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Destroy the slider instance, as tns will change the dom elements, causing some issues with turbolinks
|
|
33
|
-
function setupDestroy() {
|
|
34
|
-
document.addEventListener("turbolinks:before-cache", function () {
|
|
35
|
-
if (slider && slider.destroy) {
|
|
36
|
-
slider.destroy()
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function itemCount(items, sidebar) {
|
|
42
|
-
if (items < 3) {
|
|
43
|
-
return items
|
|
44
|
-
}
|
|
45
|
-
return sidebar ? 3 : 4
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return $("[data-browse-group-categories-carousel]").each(function () {
|
|
49
|
-
$container = $(this)
|
|
50
|
-
init()
|
|
51
|
-
setupDestroy()
|
|
52
|
-
})
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Spotlight
|
|
4
|
-
# Mailer for contacting new exhibit curators or administrators
|
|
5
|
-
class InvitationMailer < ActionMailer::Base
|
|
6
|
-
include Devise::Mailers::Helpers
|
|
7
|
-
|
|
8
|
-
def exhibit_invitation_notification(role)
|
|
9
|
-
initialize_from_record(role.user)
|
|
10
|
-
@role = role
|
|
11
|
-
@key = if @role.resource.is_a?(Spotlight::Site)
|
|
12
|
-
'exhibits_admin_invitation_mailer'
|
|
13
|
-
else
|
|
14
|
-
'invitation_mailer'
|
|
15
|
-
end
|
|
16
|
-
mail(to: role.user.email,
|
|
17
|
-
from: mailer_sender(devise_mapping),
|
|
18
|
-
subject: I18n.t("spotlight.#{@key}.invitation_instructions.subject", exhibit_name: @role.resource.title))
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'nokogiri'
|
|
4
|
-
|
|
5
|
-
module Spotlight
|
|
6
|
-
module Resources
|
|
7
|
-
##
|
|
8
|
-
# Generic web resource harvester base module
|
|
9
|
-
module Web
|
|
10
|
-
extend ActiveSupport::Concern
|
|
11
|
-
|
|
12
|
-
included do
|
|
13
|
-
before_create do
|
|
14
|
-
harvest!
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def harvest!
|
|
19
|
-
response = Spotlight::Resources::Web.fetch url
|
|
20
|
-
data[:headers] = response.headers
|
|
21
|
-
data[:body] = response.body
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
def body
|
|
25
|
-
harvest! if data[:body].blank?
|
|
26
|
-
|
|
27
|
-
@body ||= Nokogiri::HTML.parse data[:body]
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
def self.fetch(url)
|
|
31
|
-
Faraday.new(url) do |b|
|
|
32
|
-
b.response :follow_redirects
|
|
33
|
-
b.adapter Faraday.default_adapter
|
|
34
|
-
end.get
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|