blacklight-spotlight 3.0.0.rc1 → 3.0.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/images/blacklight/arrow-alt-circle-left.svg +1 -0
- data/app/assets/images/blacklight/arrow-alt-circle-right.svg +1 -0
- data/app/assets/images/blacklight/close.svg +1 -0
- data/app/assets/images/blacklight/zoom_in.svg +1 -0
- data/app/assets/images/blacklight/zoom_out.svg +1 -0
- data/app/assets/javascripts/spotlight/admin/{add_new_page_button.js → add_new_button.js} +7 -0
- data/app/assets/javascripts/spotlight/admin/block_mixins/autocompleteable.js +4 -4
- data/app/assets/javascripts/spotlight/admin/blocks/browse_group_categories_block.js +88 -0
- data/app/assets/javascripts/spotlight/admin/blocks/pages_block.js +1 -1
- data/app/assets/javascripts/spotlight/admin/blocks/solr_documents_base_block.js +1 -1
- data/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +8 -1
- data/app/assets/javascripts/spotlight/admin/catalog_edit.js +13 -47
- data/app/assets/javascripts/spotlight/admin/croppable.js +1 -1
- data/app/assets/javascripts/spotlight/admin/exhibit_tag_autocomplete.js +37 -0
- data/app/assets/javascripts/spotlight/admin/index.js +0 -2
- data/app/assets/javascripts/spotlight/admin/{reindex_monitor.js → progress_monitor.js} +26 -4
- data/app/assets/javascripts/spotlight/admin/search_typeahead.js +2 -2
- data/app/assets/javascripts/spotlight/admin/sir-trevor/locales.js +9 -2
- data/app/assets/javascripts/spotlight/user/browse_group_categories.js +59 -0
- data/app/assets/javascripts/spotlight/user/index.js +1 -0
- data/app/assets/javascripts/spotlight/user/zpr_links.js.erb +29 -14
- data/app/assets/stylesheets/spotlight/_breadcrumbs.scss +8 -0
- data/app/assets/stylesheets/spotlight/_browse.scss +8 -0
- data/app/assets/stylesheets/spotlight/_catalog.scss +34 -8
- data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +9 -0
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +212 -84
- data/app/assets/stylesheets/spotlight/_item_text_block.scss +1 -1
- data/app/assets/stylesheets/spotlight/_modals.scss +3 -0
- data/app/assets/stylesheets/spotlight/_nestable.scss +8 -0
- data/app/assets/stylesheets/spotlight/_pages.scss +9 -4
- data/app/assets/stylesheets/spotlight/_spotlight.scss +4 -0
- data/app/assets/stylesheets/spotlight/_translations.scss +6 -0
- data/app/assets/stylesheets/spotlight/_view_larger.scss +22 -0
- data/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +92 -0
- data/app/assets/stylesheets/spotlight/typeahead.css +23 -23
- data/app/builders/spotlight/bootstrap_breadcrumbs_builder.rb +5 -4
- data/app/controllers/concerns/spotlight/base.rb +1 -1
- data/app/controllers/concerns/spotlight/catalog.rb +7 -1
- data/app/controllers/concerns/spotlight/search_helper.rb +2 -8
- data/app/controllers/spotlight/appearances_controller.rb +0 -13
- data/app/controllers/spotlight/browse_controller.rb +15 -17
- data/app/controllers/spotlight/bulk_actions_controller.rb +62 -0
- data/app/controllers/spotlight/bulk_updates_controller.rb +67 -0
- data/app/controllers/spotlight/catalog_controller.rb +17 -14
- data/app/controllers/spotlight/concerns/application_controller.rb +13 -2
- data/app/controllers/spotlight/dashboards_controller.rb +5 -4
- data/app/controllers/spotlight/exhibits_controller.rb +1 -1
- data/app/controllers/spotlight/featured_images_controller.rb +1 -1
- data/app/controllers/spotlight/groups_controller.rb +80 -0
- data/app/controllers/spotlight/job_trackers_controller.rb +17 -0
- data/app/controllers/spotlight/pages_controller.rb +8 -13
- data/app/controllers/spotlight/searches_controller.rb +4 -17
- data/app/controllers/spotlight/tags_controller.rb +39 -5
- data/app/helpers/spotlight/application_helper.rb +21 -2
- data/app/helpers/spotlight/crud_link_helpers.rb +1 -1
- data/app/helpers/spotlight/job_trackers_helper.rb +31 -0
- data/app/helpers/spotlight/main_app_helpers.rb +4 -5
- data/app/helpers/spotlight/meta_helper.rb +2 -2
- data/app/helpers/spotlight/pages_helper.rb +1 -8
- data/app/helpers/spotlight/roles_helper.rb +1 -1
- data/app/helpers/spotlight/searches_helper.rb +1 -1
- data/app/jobs/concerns/spotlight/gather_documents.rb +35 -0
- data/app/jobs/concerns/spotlight/job_tracking.rb +64 -0
- data/app/jobs/concerns/spotlight/limit_concurrency.rb +33 -0
- data/app/jobs/spotlight/add_tags_job.rb +31 -0
- data/app/jobs/spotlight/add_uploads_from_csv.rb +4 -3
- data/app/jobs/spotlight/application_job.rb +8 -0
- data/app/jobs/spotlight/change_visibility_job.rb +33 -0
- data/app/jobs/spotlight/cleanup_job_trackers_job.rb +13 -0
- data/app/jobs/spotlight/default_thumbnail_job.rb +1 -3
- data/app/jobs/spotlight/process_bulk_updates_csv_job.rb +82 -0
- data/app/jobs/spotlight/reindex_exhibit_job.rb +39 -0
- data/app/jobs/spotlight/reindex_job.rb +64 -44
- data/app/jobs/spotlight/remove_tags_job.rb +31 -0
- data/app/jobs/spotlight/rename_sidecar_field_job.rb +3 -2
- data/app/jobs/spotlight/rename_tags_job.rb +33 -0
- data/app/jobs/spotlight/update_job_trackers_job.rb +20 -0
- data/app/models/concerns/spotlight/browse_category_search_builder.rb +59 -0
- data/app/models/concerns/spotlight/exhibit_analytics.rb +2 -6
- data/app/models/concerns/spotlight/exhibit_defaults.rb +1 -1
- data/app/models/concerns/spotlight/exhibit_documents.rb +2 -2
- data/app/models/concerns/spotlight/resources/web.rb +1 -1
- data/app/models/concerns/spotlight/search_builder.rb +11 -0
- data/app/models/concerns/spotlight/solr_document.rb +1 -1
- data/app/models/concerns/spotlight/solr_document/atomic_updates.rb +2 -2
- data/app/models/concerns/spotlight/user.rb +7 -2
- data/app/models/sir_trevor_rails/blocks/browse_group_categories_block.rb +25 -0
- data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +9 -0
- data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +4 -0
- data/app/models/spotlight/ability.rb +8 -2
- data/app/models/spotlight/about_page.rb +1 -1
- data/app/models/spotlight/attachment.rb +1 -1
- data/app/models/spotlight/background_job_progress.rb +96 -0
- data/app/models/spotlight/blacklight_configuration.rb +28 -7
- data/app/models/spotlight/bulk_update.rb +8 -0
- data/app/models/spotlight/event.rb +13 -0
- data/app/models/spotlight/exhibit.rb +15 -12
- data/app/models/spotlight/feature_page.rb +1 -3
- data/app/models/spotlight/featured_image.rb +8 -2
- data/app/models/spotlight/field_metadata.rb +4 -8
- data/app/models/spotlight/group.rb +22 -0
- data/app/models/spotlight/group_member.rb +11 -0
- data/app/models/spotlight/home_page.rb +1 -1
- data/app/models/spotlight/job_tracker.rb +114 -0
- data/app/models/spotlight/page.rb +3 -5
- data/app/models/spotlight/page_configurations.rb +15 -9
- data/app/models/spotlight/resource.rb +28 -62
- data/app/models/spotlight/resources/iiif_harvester.rb +12 -3
- data/app/models/spotlight/resources/iiif_manifest.rb +9 -7
- data/app/models/spotlight/resources/iiif_service.rb +9 -2
- data/app/models/spotlight/resources/json_upload.rb +12 -0
- data/app/models/spotlight/resources/upload.rb +25 -2
- data/app/models/spotlight/role.rb +1 -2
- data/app/models/spotlight/search.rb +5 -0
- data/app/models/spotlight/solr_document_sidecar.rb +2 -1
- data/app/presenters/spotlight/iiif_manifest_presenter.rb +2 -2
- data/app/services/spotlight/bulk_updates_csv_template_service.rb +93 -0
- data/app/services/spotlight/etl.rb +7 -0
- data/app/services/spotlight/etl/context.rb +52 -0
- data/app/services/spotlight/etl/executor.rb +192 -0
- data/app/services/spotlight/etl/loaders.rb +12 -0
- data/app/services/spotlight/etl/pipeline.rb +81 -0
- data/app/services/spotlight/etl/solr_loader.rb +96 -0
- data/app/services/spotlight/etl/sources.rb +25 -0
- data/app/services/spotlight/etl/step.rb +82 -0
- data/app/services/spotlight/etl/transforms.rb +64 -0
- data/app/services/spotlight/exhibit_import_export_service.rb +50 -22
- data/app/services/spotlight/iiif_resource_resolver.rb +1 -1
- data/app/services/spotlight/validity_checker.rb +5 -5
- data/app/uploaders/spotlight/bulk_updates_uploader.rb +7 -0
- data/app/uploaders/spotlight/featured_image_uploader.rb +1 -1
- data/app/views/catalog/_add_tags.html.erb +28 -0
- data/app/views/catalog/_bulk_actions.html.erb +12 -0
- data/app/views/catalog/_change_visibility.html.erb +35 -0
- data/app/views/catalog/_curator_actions.html.erb +3 -0
- data/app/views/catalog/_remove_tags.html.erb +37 -0
- data/app/views/catalog/_save_search.html.erb +1 -1
- data/app/views/spotlight/about_pages/_empty.html.erb +5 -5
- data/app/views/spotlight/browse/_search.html.erb +2 -1
- data/app/views/spotlight/browse/_search_box.html.erb +9 -9
- data/app/views/spotlight/browse/index.html.erb +13 -0
- data/app/views/spotlight/bulk_updates/_download.html.erb +23 -0
- data/app/views/spotlight/bulk_updates/_overview.html.erb +1 -0
- data/app/views/spotlight/bulk_updates/_progress_panel.html.erb +19 -0
- data/app/views/spotlight/bulk_updates/_upload.html.erb +12 -0
- data/app/views/spotlight/bulk_updates/edit.html.erb +37 -0
- 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/_admin_thumbnail_default.html.erb +3 -2
- data/app/views/spotlight/catalog/_document.html.erb +2 -4
- data/app/views/spotlight/catalog/_edit_default.html.erb +2 -2
- data/app/views/spotlight/catalog/_reindex_progress_panel.html.erb +1 -1
- data/app/views/spotlight/catalog/index.iiif_json.jbuilder +22 -0
- data/app/views/spotlight/contacts/_form.html.erb +1 -1
- data/app/views/spotlight/custom_fields/_form.html.erb +1 -1
- data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
- data/app/views/spotlight/dashboards/_reindexing_activity.html.erb +6 -6
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
- data/app/views/spotlight/feature_pages/_empty.html.erb +5 -5
- data/app/views/spotlight/featured_images/_form.html.erb +2 -2
- data/app/views/spotlight/featured_images/_upload_form.html.erb +1 -1
- data/app/views/spotlight/home_pages/_empty.html.erb +3 -3
- data/app/views/spotlight/job_trackers/show.html.erb +79 -0
- data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +2 -2
- data/app/views/spotlight/pages/_form.html.erb +2 -2
- data/app/views/spotlight/pages/_view_type_group.html.erb +3 -3
- 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/iiif/_form.html.erb +1 -1
- data/app/views/spotlight/resources/json_upload/_form.html.erb +2 -2
- data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
- data/app/views/spotlight/search_configurations/_document_index_view_types.html.erb +2 -2
- data/app/views/spotlight/searches/_form.html.erb +14 -2
- data/app/views/spotlight/searches/_group.html.erb +27 -0
- data/app/views/spotlight/searches/index.html.erb +58 -17
- data/app/views/spotlight/shared/_curation_sidebar.html.erb +3 -0
- data/app/views/spotlight/shared/_locale_picker.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +45 -0
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +8 -8
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +7 -7
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +9 -7
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +5 -5
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +4 -0
- data/app/views/spotlight/tags/_tag.html.erb +24 -0
- data/app/views/spotlight/tags/index.html.erb +12 -16
- data/app/views/spotlight/translations/_groups.html.erb +34 -0
- data/app/views/spotlight/translations/_import.html.erb +5 -5
- data/app/views/spotlight/translations/edit.html.erb +6 -0
- data/app/views/spotlight/translations/show.yaml.yamlbuilder +6 -0
- data/config/i18n-tasks.yml +6 -0
- data/config/locales/spotlight.ar.yml +11 -1
- data/config/locales/spotlight.en.yml +283 -87
- data/config/routes.rb +39 -1
- data/db/migrate/20210113092223_create_spotlight_groups.rb +23 -0
- data/db/migrate/20210122082032_create_job_trackers.rb +22 -0
- data/db/migrate/20210126123041_create_events.rb +15 -0
- data/db/migrate/20210305070001_remove_class_from_sirtrevor_image_blocks.rb +20 -0
- data/db/migrate/20210305171150_create_bulk_updates.rb +9 -0
- data/db/migrate/20210308090000_migrate_caption_values_for_title_key.rb +29 -0
- data/lib/generators/spotlight/install_generator.rb +5 -5
- data/lib/generators/spotlight/scaffold_resource_generator.rb +5 -13
- data/lib/generators/spotlight/templates/config/initializers/riiif.rb +7 -5
- data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +1 -1
- data/lib/generators/spotlight/templates/solr/config/schema.xml +1 -1
- data/lib/migration/iiif.rb +3 -3
- data/lib/spotlight/engine.rb +26 -4
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/spotlight/about_pages_controller_spec.rb +3 -3
- data/spec/controllers/spotlight/browse_controller_spec.rb +23 -6
- data/spec/controllers/spotlight/bulk_actions_controller_spec.rb +124 -0
- data/spec/controllers/spotlight/bulk_updates_controller_spec.rb +77 -0
- data/spec/controllers/spotlight/catalog_controller_spec.rb +15 -13
- data/spec/controllers/spotlight/contacts_controller_spec.rb +2 -2
- data/spec/controllers/spotlight/feature_pages_controller_spec.rb +11 -0
- data/spec/controllers/spotlight/featured_images_controller_spec.rb +3 -3
- data/spec/controllers/spotlight/groups_controller_spec.rb +103 -0
- data/spec/controllers/spotlight/home_pages_controller_spec.rb +1 -1
- data/spec/controllers/spotlight/job_trackers_controller_spec.rb +37 -0
- data/spec/controllers/spotlight/searches_controller_spec.rb +10 -3
- data/spec/controllers/spotlight/tags_controller_spec.rb +5 -1
- data/spec/controllers/spotlight/view_configurations_controller_spec.rb +1 -1
- data/spec/examples.txt +1501 -1410
- data/spec/factories/bulk_updates.rb +15 -0
- data/spec/factories/exhibits.rb +4 -0
- data/spec/factories/group.rb +17 -0
- data/spec/factories/job_trackers.rb +11 -0
- data/spec/factories/searches.rb +11 -1
- data/spec/factories/users.rb +27 -8
- data/spec/features/add_items_spec.rb +10 -5
- data/spec/features/browse_category_admin_spec.rb +37 -5
- data/spec/features/browse_category_navigation_spec.rb +44 -0
- data/spec/features/browse_category_spec.rb +2 -2
- data/spec/features/bulk_actions_spec.rb +72 -0
- data/spec/features/catalog_spec.rb +3 -2
- data/spec/features/dashboard_spec.rb +2 -2
- data/spec/features/edit_search_fields_spec.rb +2 -2
- data/spec/features/exhibits/edit_metadata_fields_spec.rb +1 -1
- data/spec/features/exhibits/translation_editing_spec.rb +55 -6
- data/spec/features/home_page_spec.rb +5 -5
- data/spec/features/import_exhibit_spec.rb +5 -1
- data/spec/features/item_admin_spec.rb +4 -4
- data/spec/features/javascript/about_page_admin_spec.rb +1 -1
- data/spec/features/javascript/block_controls_spec.rb +1 -1
- data/spec/features/javascript/blocks/browse_group_categories_block_spec.rb +64 -0
- data/spec/features/javascript/blocks/solr_documents_block_spec.rb +4 -4
- data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +27 -1
- data/spec/features/javascript/browse_group_admin_spec.rb +45 -0
- data/spec/features/javascript/edit_in_place_spec.rb +3 -3
- data/spec/features/javascript/feature_page_admin_spec.rb +1 -1
- data/spec/features/javascript/reindex_monitor_spec.rb +1 -1
- data/spec/features/javascript/search_config_admin_spec.rb +1 -1
- data/spec/features/report_a_problem_spec.rb +1 -1
- data/spec/features/site_users_management_spec.rb +5 -5
- data/spec/fixtures/bulk-update-template.csv +57 -0
- data/spec/fixtures/updated-bulk-update-template-w-tags.csv +4 -0
- data/spec/fixtures/updated-bulk-update-template.csv +4 -0
- data/spec/helpers/spotlight/application_helper_spec.rb +5 -6
- data/spec/helpers/spotlight/crud_link_helpers_spec.rb +3 -3
- data/spec/helpers/spotlight/pages_helper_spec.rb +8 -15
- data/spec/helpers/spotlight/roles_helper_spec.rb +1 -1
- data/spec/i18n_spec.rb +1 -0
- data/spec/jobs/spotlight/add_tags_job_spec.rb +34 -0
- data/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +4 -1
- data/spec/jobs/spotlight/change_visibility_job_spec.rb +30 -0
- data/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb +78 -0
- data/spec/jobs/spotlight/reindex_exhibit_job_spec.rb +43 -0
- data/spec/jobs/spotlight/reindex_job_spec.rb +34 -60
- data/spec/jobs/spotlight/remove_tags_job_spec.rb +39 -0
- data/spec/lib/migration/iiif_spec.rb +1 -1
- data/spec/models/sir_trevor_rails/blocks/browse_group_categories_block_spec.rb +41 -0
- data/spec/models/spotlight/ability_spec.rb +27 -0
- data/spec/models/spotlight/background_job_progress_spec.rb +137 -0
- data/spec/models/spotlight/blacklight_configuration_spec.rb +22 -17
- data/spec/models/spotlight/browse_category_search_builder_spec.rb +49 -0
- data/spec/models/spotlight/exhibit_spec.rb +13 -59
- data/spec/models/spotlight/featured_image_spec.rb +1 -1
- data/spec/models/spotlight/group_spec.rb +19 -0
- data/spec/models/spotlight/main_navigation_spec.rb +1 -1
- data/spec/models/spotlight/resource_spec.rb +89 -87
- data/spec/models/spotlight/resources/iiif_harvester_spec.rb +9 -10
- data/spec/models/spotlight/role_spec.rb +1 -1
- data/spec/models/spotlight/search_spec.rb +30 -3
- data/spec/models/spotlight/solr_document/atomic_updates_spec.rb +10 -0
- data/spec/models/spotlight/solr_document_sidecar_spec.rb +1 -0
- data/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +1 -1
- data/spec/services/spotlight/bulk_updates_csv_template_service_spec.rb +26 -0
- data/spec/services/spotlight/etl/context_spec.rb +66 -0
- data/spec/services/spotlight/etl/executor_spec.rb +149 -0
- data/spec/services/spotlight/etl/pipeline_spec.rb +22 -0
- data/spec/services/spotlight/etl/solr_loader_spec.rb +76 -0
- data/spec/services/spotlight/etl/step_spec.rb +70 -0
- data/spec/services/spotlight/exhibit_import_export_service_spec.rb +48 -1
- data/spec/spec_helper.rb +3 -6
- data/spec/support/features/test_features_helpers.rb +15 -0
- data/spec/test_app_templates/Gemfile.extra +2 -0
- data/spec/test_app_templates/catalog_controller.rb +6 -3
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -2
- data/spec/uploaders/spotlight/featured_image_uploader_spec.rb +2 -2
- data/spec/views/shared/_exhibit_navbar.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/browse/index.html.erb_spec.rb +2 -0
- data/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/dashboards/_analytics.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +30 -25
- data/spec/views/spotlight/job_trackers/show.html.erb_spec.rb +65 -0
- data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +3 -4
- data/spec/views/spotlight/pages/show.html.erb_spec.rb +1 -0
- data/spec/views/spotlight/search_configurations/_facets.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb +8 -4
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb +7 -2
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb +8 -5
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb +3 -2
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb +9 -4
- data/spec/views/spotlight/tags/index.html.erb_spec.rb +5 -2
- data/vendor/assets/javascripts/tiny-slider.js +3218 -0
- data/vendor/assets/stylesheets/tiny-slider.css +1 -0
- metadata +471 -281
- data/app/assets/images/blacklight/add_circle.svg +0 -1
- data/app/assets/images/blacklight/custom_fullscreen.svg +0 -1
- data/app/assets/images/blacklight/remove_circle.svg +0 -1
- data/app/assets/images/blacklight/resize_small.svg +0 -1
- data/app/models/concerns/spotlight/resources/open_graph.rb +0 -36
- data/app/models/spotlight/reindex_progress.rb +0 -78
- data/app/models/spotlight/reindexing_log_entry.rb +0 -42
- data/app/services/spotlight/resources/iiif_builder.rb +0 -19
- data/app/services/spotlight/solr_document_builder.rb +0 -77
- data/app/services/spotlight/upload_solr_document_builder.rb +0 -57
- data/spec/factories/reindexing_log_entries.rb +0 -54
- data/spec/models/spotlight/reindex_progress_spec.rb +0 -122
- data/spec/models/spotlight/reindexing_log_entry_spec.rb +0 -129
- data/spec/models/spotlight/resources/open_graph_spec.rb +0 -65
- data/spec/services/spotlight/solr_document_builder_spec.rb +0 -66
- data/vendor/assets/javascripts/handlebars-v1.3.0.js +0 -2746
@@ -9,7 +9,7 @@ describe 'Editing metadata fields', type: :feature do
|
|
9
9
|
it 'works' do
|
10
10
|
visit spotlight.edit_exhibit_metadata_configuration_path exhibit
|
11
11
|
|
12
|
-
expect(page).to have_content 'Display and
|
12
|
+
expect(page).to have_content 'Display and order metadata fields'
|
13
13
|
|
14
14
|
check :blacklight_configuration_index_fields_language_ssm_show
|
15
15
|
check :blacklight_configuration_index_fields_abstract_tesim_show
|
@@ -148,7 +148,7 @@ describe 'Translation editing', type: :feature do
|
|
148
148
|
before do
|
149
149
|
within '.translation-edit-form #general' do
|
150
150
|
fill_in 'Home', with: 'Maison'
|
151
|
-
fill_in 'Search
|
151
|
+
fill_in 'Search results', with: 'Résultats de la recherche'
|
152
152
|
click_button 'Save changes'
|
153
153
|
end
|
154
154
|
end
|
@@ -310,7 +310,7 @@ describe 'Translation editing', type: :feature do
|
|
310
310
|
click_link 'Search field labels'
|
311
311
|
|
312
312
|
within('#search_fields', visible: true) do
|
313
|
-
fill_in '
|
313
|
+
fill_in 'relevance', with: 'French Relevance'
|
314
314
|
click_button 'Save changes'
|
315
315
|
end
|
316
316
|
|
@@ -333,7 +333,7 @@ describe 'Translation editing', type: :feature do
|
|
333
333
|
expect(page).to have_css('input[type="text"]', count: 4)
|
334
334
|
expect(page).to have_css('textarea', count: 2)
|
335
335
|
|
336
|
-
expect(page).to have_field 'All
|
336
|
+
expect(page).to have_field 'All exhibit items'
|
337
337
|
expect(page).to have_field 'Browse Category 1'
|
338
338
|
expect(page).to have_css('.form-text', text: 'All items in this exhibit.')
|
339
339
|
end
|
@@ -342,7 +342,7 @@ describe 'Translation editing', type: :feature do
|
|
342
342
|
it 'redirects to the same form tab' do
|
343
343
|
click_link 'Browse categories'
|
344
344
|
within('#browse', visible: true) do
|
345
|
-
fill_in 'All
|
345
|
+
fill_in 'All exhibit items', with: "Tous les objets d'exposition"
|
346
346
|
click_button 'Save changes'
|
347
347
|
end
|
348
348
|
|
@@ -354,7 +354,7 @@ describe 'Translation editing', type: :feature do
|
|
354
354
|
click_link 'Browse categories'
|
355
355
|
|
356
356
|
within('#browse', visible: true) do
|
357
|
-
fill_in 'All
|
357
|
+
fill_in 'All exhibit items', with: "Tous les objets d'exposition"
|
358
358
|
|
359
359
|
first('.translation-description-toggle').click
|
360
360
|
|
@@ -366,7 +366,7 @@ describe 'Translation editing', type: :feature do
|
|
366
366
|
|
367
367
|
expect(page).to have_css('.flash_messages', text: 'The exhibit was successfully updated.')
|
368
368
|
|
369
|
-
expect(exhibit.searches.first.title).to eq 'All
|
369
|
+
expect(exhibit.searches.first.title).to eq 'All exhibit items'
|
370
370
|
expect(exhibit.searches.first.long_description).to eq 'All items in this exhibit.'
|
371
371
|
|
372
372
|
I18n.locale = :fr
|
@@ -378,6 +378,55 @@ describe 'Translation editing', type: :feature do
|
|
378
378
|
end
|
379
379
|
end
|
380
380
|
|
381
|
+
describe 'Browse groups' do
|
382
|
+
before do
|
383
|
+
FactoryBot.create(:group, exhibit: exhibit, title: 'Browse Group 1')
|
384
|
+
FactoryBot.create(:group, exhibit: exhibit, title: 'Browse Group 2')
|
385
|
+
|
386
|
+
visit spotlight.edit_exhibit_translations_path(exhibit, language: 'fr')
|
387
|
+
end
|
388
|
+
|
389
|
+
it 'has a title browse group' do
|
390
|
+
within '#groups' do
|
391
|
+
expect(page).to have_css('input[type="text"]', count: 2)
|
392
|
+
|
393
|
+
expect(page).to have_field 'Browse Group 1'
|
394
|
+
expect(page).to have_field 'Browse Group 2'
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
it 'redirects to the same form tab' do
|
399
|
+
click_link 'Browse categories'
|
400
|
+
within('#groups', visible: true) do
|
401
|
+
fill_in 'Browse Group 1', with: 'parcourir le groupe 1'
|
402
|
+
click_button 'Save changes'
|
403
|
+
end
|
404
|
+
|
405
|
+
expect(page).to have_css '.nav-pills .nav-link.active', text: 'French'
|
406
|
+
expect(page).to have_css '.nav-tabs .nav-link.active', text: 'Browse groups'
|
407
|
+
end
|
408
|
+
|
409
|
+
it 'persists changes', js: true do
|
410
|
+
click_link 'Browse groups'
|
411
|
+
|
412
|
+
within('#groups', visible: true) do
|
413
|
+
fill_in 'Browse Group 1', with: 'parcourir le groupe 1'
|
414
|
+
|
415
|
+
click_button 'Save changes'
|
416
|
+
end
|
417
|
+
|
418
|
+
expect(page).to have_css('.flash_messages', text: 'The exhibit was successfully updated.')
|
419
|
+
|
420
|
+
expect(exhibit.groups.first.title).to eq 'Browse Group 1'
|
421
|
+
|
422
|
+
I18n.locale = :fr
|
423
|
+
Translation.current_exhibit = exhibit
|
424
|
+
expect(exhibit.groups.first.title).to eq 'parcourir le groupe 1'
|
425
|
+
I18n.locale = I18n.default_locale
|
426
|
+
Translation.current_exhibit = nil
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
381
430
|
describe 'home page translation table entry' do
|
382
431
|
let(:feature_page) { FactoryBot.create(:feature_page, exhibit: exhibit) }
|
383
432
|
let(:about_page) { FactoryBot.create(:about_page, exhibit: exhibit) }
|
@@ -10,7 +10,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
10
10
|
visit spotlight.exhibit_dashboard_path(exhibit)
|
11
11
|
click_link 'Feature pages'
|
12
12
|
expect(page).to have_selector 'h2', text: 'Homepage'
|
13
|
-
expect(page).to have_selector 'h3.card-title', text: 'Exhibit
|
13
|
+
expect(page).to have_selector 'h3.card-title', text: 'Exhibit home'
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'allows users to edit the home page title' do
|
@@ -32,7 +32,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'redirects back to the correct home page URL after updating (no format param to interfere w/ faceting)' do
|
35
|
-
visit spotlight.exhibit_home_page_path(exhibit
|
35
|
+
visit spotlight.exhibit_home_page_path(exhibit)
|
36
36
|
|
37
37
|
click_link 'Edit'
|
38
38
|
click_button 'Save changes'
|
@@ -41,7 +41,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
it 'has working facet links' do
|
44
|
-
visit spotlight.exhibit_home_page_path(exhibit
|
44
|
+
visit spotlight.exhibit_home_page_path(exhibit)
|
45
45
|
click_button 'Genre'
|
46
46
|
click_link 'map'
|
47
47
|
expect(page).to have_content exhibit.title
|
@@ -49,7 +49,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it 'has a search box' do
|
52
|
-
visit spotlight.exhibit_home_page_path(exhibit
|
52
|
+
visit spotlight.exhibit_home_page_path(exhibit)
|
53
53
|
fill_in 'q', with: 'query'
|
54
54
|
click_button 'Search'
|
55
55
|
|
@@ -62,7 +62,7 @@ describe 'Home page', type: :feature, versioning: true do
|
|
62
62
|
TopHat.current['opengraph'] = nil
|
63
63
|
Spotlight::Site.instance.update(title: 'some title')
|
64
64
|
|
65
|
-
visit spotlight.exhibit_home_page_path(exhibit
|
65
|
+
visit spotlight.exhibit_home_page_path(exhibit)
|
66
66
|
|
67
67
|
expect(page).to have_css "meta[name='twitter:card'][value='summary']", visible: false
|
68
68
|
expect(page).to have_css "meta[name='twitter:url'][value='#{spotlight.exhibit_root_url(exhibit)}']", visible: false
|
@@ -6,7 +6,11 @@ describe 'Allow exhibit admins to import and export content from an exhibit', ty
|
|
6
6
|
let(:exhibit) { FactoryBot.create(:exhibit) }
|
7
7
|
let(:user) { FactoryBot.create(:exhibit_admin, exhibit: exhibit) }
|
8
8
|
|
9
|
-
before
|
9
|
+
before do
|
10
|
+
allow(Spotlight::ReindexExhibitJob).to receive(:perform_later).and_return(true) if Rails.version < '6'
|
11
|
+
|
12
|
+
login_as user
|
13
|
+
end
|
10
14
|
|
11
15
|
pending 'should allow admins to export content from an exhibit' do
|
12
16
|
pending(%(There's not really any good way to test the contents of a
|
@@ -30,12 +30,12 @@ describe 'Item Administration', type: :feature do
|
|
30
30
|
it 'has a public/private toggle' do
|
31
31
|
visit spotlight.admin_exhibit_catalog_path(exhibit)
|
32
32
|
item = first('tr[itemscope]')
|
33
|
-
expect(item).to have_button 'Make
|
34
|
-
item.click_button 'Make
|
33
|
+
expect(item).to have_button 'Make private'
|
34
|
+
item.click_button 'Make private'
|
35
35
|
|
36
36
|
item = first('tr[itemscope]')
|
37
|
-
expect(item).to have_button 'Make
|
38
|
-
item.click_button 'Make
|
37
|
+
expect(item).to have_button 'Make public'
|
38
|
+
item.click_button 'Make public'
|
39
39
|
end
|
40
40
|
|
41
41
|
it "toggles the 'blacklight-private' label", js: true, default_max_wait_time: 5 do
|
@@ -12,7 +12,7 @@ describe 'About Pages Adminstration', js: true do
|
|
12
12
|
|
13
13
|
click_link 'About pages'
|
14
14
|
|
15
|
-
|
15
|
+
add_new_via_button('My New Page')
|
16
16
|
|
17
17
|
expect(page).to have_content 'The about page was created.'
|
18
18
|
expect(page).to have_css('li.dd-item')
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe 'Browse Group Categories', type: :feature, js: true do
|
4
|
+
let(:exhibit) { FactoryBot.create(:exhibit) }
|
5
|
+
let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) }
|
6
|
+
|
7
|
+
let(:feature_page) { FactoryBot.create(:feature_page, exhibit: exhibit) }
|
8
|
+
let(:search1) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good dogs') }
|
9
|
+
let(:search2) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good cats') }
|
10
|
+
let(:search3) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good birds') }
|
11
|
+
let(:search4) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good pigs') }
|
12
|
+
let(:search5) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good tigers') }
|
13
|
+
let(:search6) { FactoryBot.create(:published_search, exhibit: exhibit, title: 'All of the good ferrets') }
|
14
|
+
let(:search7) { FactoryBot.create(:search, exhibit: exhibit, title: 'All of the good turtles') }
|
15
|
+
let!(:group) { FactoryBot.create(:group, exhibit: exhibit, searches: [search1, search2, search3, search4, search5, search6], title: 'Pets', published: true) }
|
16
|
+
let!(:group2) { FactoryBot.create(:group, exhibit: exhibit, searches: [search1, search2], title: 'Good animals', published: true) }
|
17
|
+
|
18
|
+
before do
|
19
|
+
login_as exhibit_curator
|
20
|
+
|
21
|
+
visit spotlight.edit_exhibit_feature_page_path(exhibit, feature_page)
|
22
|
+
add_widget 'browse_group_categories'
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'allows a curator to select a caption to display' do
|
26
|
+
fill_in_prefetched_typeahead_field with: 'Pets', wait_for: '[data-type="browse_group_categories"] [data-browse-groups-fetched]'
|
27
|
+
within '.dd-list' do
|
28
|
+
expect(page).to have_css '.title', text: 'Pets'
|
29
|
+
end
|
30
|
+
|
31
|
+
save_page
|
32
|
+
|
33
|
+
expect(page).to have_css 'h2', text: 'Pets'
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'can navigate using arrows' do
|
37
|
+
fill_in_prefetched_typeahead_field with: 'Pets', wait_for: '[data-type="browse_group_categories"] [data-browse-groups-fetched]'
|
38
|
+
within '.dd-list' do
|
39
|
+
expect(page).to have_css '.title', text: 'Pets'
|
40
|
+
end
|
41
|
+
|
42
|
+
save_page
|
43
|
+
|
44
|
+
expect(page).to have_css 'h2', text: 'Pets'
|
45
|
+
|
46
|
+
expect(page).to have_css '.category-title', text: 'All of the good dogs'
|
47
|
+
expect(page).not_to have_css '.category-title', text: 'All of the good tigers'
|
48
|
+
find('[data-controls="next"]').click
|
49
|
+
expect(page).not_to have_css '.category-title', text: 'All of the good dogs'
|
50
|
+
expect(page).to have_css '.category-title', text: 'All of the good tigers'
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'only published searches are displayed' do
|
54
|
+
fill_in_prefetched_typeahead_field with: 'Pets', wait_for: '[data-type="browse_group_categories"] [data-browse-groups-fetched]'
|
55
|
+
within '.dd-list' do
|
56
|
+
expect(page).to have_css '.title', text: 'Pets'
|
57
|
+
end
|
58
|
+
|
59
|
+
save_page
|
60
|
+
|
61
|
+
expect(page).to have_css 'h2', text: 'Pets'
|
62
|
+
expect(page).to have_css '.box.category-1', count: 6, visible: false
|
63
|
+
end
|
64
|
+
end
|
@@ -142,14 +142,14 @@ describe 'Solr Document Block', feature: true, versioning: true, default_max_wai
|
|
142
142
|
it 'allows you to optionally display a ZPR link with the image', js: true do
|
143
143
|
fill_in_solr_document_block_typeahead_field with: 'gk446cj2442'
|
144
144
|
|
145
|
-
check '
|
145
|
+
check 'Offer "View larger" option'
|
146
146
|
# this seems silly, but also seems to help with the flappy-ness of this spec
|
147
|
-
expect(find_field('
|
147
|
+
expect(find_field('Offer "View larger" option', checked: true)).to be_checked
|
148
148
|
|
149
149
|
save_page
|
150
150
|
|
151
151
|
within '.contents' do
|
152
|
-
click_button '
|
152
|
+
click_button 'View [World map] larger'
|
153
153
|
end
|
154
154
|
|
155
155
|
within '.modal-content' do
|
@@ -225,6 +225,6 @@ describe 'Solr Document Block', feature: true, versioning: true, default_max_wai
|
|
225
225
|
|
226
226
|
# for some reason, the text area above isn't getting filled in
|
227
227
|
# expect(page).to have_selector ".st-text-block", text: "zzz"
|
228
|
-
expect(find_field('primary-caption-field').value).to eq
|
228
|
+
expect(find_field('primary-caption-field').value).to eq Spotlight::PageConfigurations::DOCUMENT_TITLE_KEY
|
229
229
|
end
|
230
230
|
end
|
@@ -54,7 +54,7 @@ describe 'Uploaded Items Block', feature: true, js: true, versioning: true do
|
|
54
54
|
attach_file('uploaded_item_url', fixture_file2)
|
55
55
|
|
56
56
|
# This line blocks until the javascript has added the file to the page:
|
57
|
-
expect(find('
|
57
|
+
expect(find('input[name="item[file_0][display]"]')).to be_present
|
58
58
|
|
59
59
|
# Uncheck the first checkbox
|
60
60
|
all('input[type="checkbox"]').first.click
|
@@ -65,4 +65,30 @@ describe 'Uploaded Items Block', feature: true, js: true, versioning: true do
|
|
65
65
|
expect(page).to have_css('img[alt=""]', count: 1)
|
66
66
|
end
|
67
67
|
end
|
68
|
+
|
69
|
+
it 'may have ZPR links' do
|
70
|
+
attach_file('uploaded_item_url', fixture_file1)
|
71
|
+
attach_file('uploaded_item_url', fixture_file2)
|
72
|
+
|
73
|
+
check 'Offer "View larger" option'
|
74
|
+
# this seems silly, but also seems to help with the flappy-ness of this spec
|
75
|
+
expect(find_field('Offer "View larger" option', checked: true)).to be_checked
|
76
|
+
|
77
|
+
save_page
|
78
|
+
|
79
|
+
within('.uploaded-items-block') do
|
80
|
+
expect(page).to have_button('View larger', count: 2)
|
81
|
+
end
|
82
|
+
|
83
|
+
within first('.contents') do
|
84
|
+
data = find('button')['data-iiif-tilesource']
|
85
|
+
expect(data).to be_present
|
86
|
+
expect(JSON.parse(data).with_indifferent_access).to include type: 'image', url: end_with('800x600.png')
|
87
|
+
click_button 'View larger'
|
88
|
+
end
|
89
|
+
|
90
|
+
within '.modal-content' do
|
91
|
+
expect(page).to have_css('#osd-modal-container')
|
92
|
+
end
|
93
|
+
end
|
68
94
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe 'Browse Group Adminstration', js: true do
|
4
|
+
let(:exhibit) { FactoryBot.create(:exhibit) }
|
5
|
+
let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) }
|
6
|
+
let!(:group1) do
|
7
|
+
FactoryBot.create(
|
8
|
+
:group,
|
9
|
+
title: 'Good group 1',
|
10
|
+
exhibit: exhibit
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
before { login_as exhibit_curator }
|
15
|
+
|
16
|
+
it 'is able to create new groups' do
|
17
|
+
visit spotlight.exhibit_searches_path(exhibit, anchor: 'browse-groups')
|
18
|
+
|
19
|
+
add_new_via_button('My New Group')
|
20
|
+
|
21
|
+
expect(page).to have_content 'The browse group was created.'
|
22
|
+
expect(page).to have_css('li.dd-item')
|
23
|
+
expect(page).to have_css('h4', text: 'My New Group')
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'updates the page titles' do
|
27
|
+
visit spotlight.exhibit_searches_path(exhibit, anchor: 'browse-groups')
|
28
|
+
|
29
|
+
within("[data-id='#{group1.id}']") do
|
30
|
+
within('h4') do
|
31
|
+
expect(page).to have_content('Good group 1')
|
32
|
+
expect(page).to have_css('.title-field', visible: false)
|
33
|
+
click_link('Good group 1')
|
34
|
+
expect(page).to have_css('.title-field', visible: true)
|
35
|
+
find('.title-field').set('New good group 1')
|
36
|
+
end
|
37
|
+
end
|
38
|
+
click_button('Save changes')
|
39
|
+
within("[data-id='#{group1.id}']") do
|
40
|
+
within('h4') do
|
41
|
+
expect(page).to have_content('New good group 1')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -12,7 +12,7 @@ describe 'Edit in place', type: :feature, js: true do
|
|
12
12
|
|
13
13
|
click_link 'Feature pages'
|
14
14
|
|
15
|
-
|
15
|
+
add_new_via_button('My New Feature Page')
|
16
16
|
|
17
17
|
expect(page).to have_css('h3', text: 'My New Feature Page')
|
18
18
|
|
@@ -38,7 +38,7 @@ describe 'Edit in place', type: :feature, js: true do
|
|
38
38
|
|
39
39
|
click_link 'Feature pages'
|
40
40
|
|
41
|
-
|
41
|
+
add_new_via_button('My New Feature Page')
|
42
42
|
|
43
43
|
expect(page).to have_css('h3', text: 'My New Feature Page')
|
44
44
|
|
@@ -73,7 +73,7 @@ describe 'Edit in place', type: :feature, js: true do
|
|
73
73
|
within('#nested-navigation') do
|
74
74
|
expect(page).to have_css("#exhibit_main_navigations_attributes_0_label[type='hidden']", visible: false)
|
75
75
|
expect(page).not_to have_css("#exhibit_main_navigations_attributes_0_label[type='text']")
|
76
|
-
click_link('Curated
|
76
|
+
click_link('Curated features')
|
77
77
|
expect(page).not_to have_css("#exhibit_main_navigations_attributes_0_label[type='hidden']")
|
78
78
|
expect(page).to have_css("#exhibit_main_navigations_attributes_0_label[type='text']")
|
79
79
|
fill_in 'exhibit_main_navigations_attributes_0_label', with: 'My Page Label'
|
@@ -26,7 +26,7 @@ describe 'Feature Pages Adminstration', js: true do
|
|
26
26
|
|
27
27
|
click_link 'Feature pages'
|
28
28
|
|
29
|
-
|
29
|
+
add_new_via_button('My New Page')
|
30
30
|
|
31
31
|
expect(page).to have_content 'The feature page was created.'
|
32
32
|
expect(page).to have_css('li.dd-item')
|
@@ -8,7 +8,7 @@ describe 'Reindex Monitor', js: true, default_max_wait_time: 10 do
|
|
8
8
|
let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) }
|
9
9
|
|
10
10
|
before do
|
11
|
-
|
11
|
+
exhibit.job_trackers.create(resource: exhibit, status: 'completed', job_class: 'Spotlight::ReindexExhibitJob')
|
12
12
|
login_as exhibit_curator
|
13
13
|
visit spotlight.admin_exhibit_catalog_path(exhibit)
|
14
14
|
end
|
@@ -120,7 +120,7 @@ describe 'Search Configuration Administration', js: true do
|
|
120
120
|
within('#nested-sort-fields') do
|
121
121
|
expect(page).to have_css("#blacklight_configuration_sort_fields_title_label[type='hidden']", visible: false)
|
122
122
|
expect(page).not_to have_css("#blacklight_configuration_sort_fields_title_label[type='text']")
|
123
|
-
click_link('
|
123
|
+
click_link('title')
|
124
124
|
expect(page).not_to have_css("#blacklight_configuration_sort_fields_title_label[type='hidden']")
|
125
125
|
expect(page).to have_css("#blacklight_configuration_sort_fields_title_label[type='text']")
|
126
126
|
fill_in 'blacklight_configuration_sort_fields_title_label', with: 'My Title Label'
|