hyrax 5.0.0 → 5.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +7 -176
- data/.dassie/.env +8 -3
- data/.dassie/Gemfile +13 -2
- data/.dassie/app/controllers/hyrax/generic_work_resources_controller.rb +17 -0
- data/.dassie/app/controllers/hyrax/generic_works_controller.rb +7 -1
- data/.dassie/app/forms/generic_work_resource_form.rb +20 -0
- data/.dassie/app/indexers/generic_work_resource_indexer.rb +16 -0
- data/.dassie/app/models/admin_set_resource.rb +9 -0
- data/.dassie/app/models/collection_resource.rb +2 -0
- data/.dassie/app/models/file_set.rb +2 -0
- data/.dassie/app/models/generic_work_resource.rb +10 -0
- data/.dassie/app/views/hyrax/generic_work_resources/_generic_work_resource.html.erb +2 -0
- data/.dassie/config/analytics.yml +6 -1
- data/.dassie/config/application.rb +24 -0
- data/.dassie/config/initializers/hyrax.rb +13 -3
- data/.dassie/config/initializers/wings.rb +109 -0
- data/.dassie/config/metadata/generic_work_resource.yaml +22 -0
- data/.dassie/config/valkyrie_index.yml +4 -10
- data/.dassie/db/migrate/20240506070809_valkyrie_id_to_string.rb +5 -0
- data/.dassie/db/schema.rb +2 -2
- data/.dassie/spec/indexers/generic_work_resource_indexer_spec.rb +13 -0
- data/.dassie/spec/models/generic_work_resource_spec.rb +12 -0
- data/.dassie/spec/views/generic_work_resources/_generic_work_resource.html.erb_spec.rb +7 -0
- data/.dockerignore +6 -4
- data/.github/release.yml +3 -0
- data/.github/workflows/lint-build-test.yml +130 -0
- data/.github/workflows/test-results.yml +40 -0
- data/.koppie/.env +7 -5
- data/.koppie/Gemfile +12 -1
- data/.koppie/config/analytics.yml +6 -1
- data/.koppie/config/environments/test.rb +2 -0
- data/.koppie/config/initializers/1_valkyrie.rb +6 -2
- data/.koppie/config/solr.yml +1 -1
- data/.regen +1 -1
- data/.rubocop.yml +5 -0
- data/Dockerfile +16 -36
- data/Gemfile +2 -0
- data/app/assets/javascripts/hydra-editor/field_manager.es6 +187 -0
- data/app/assets/javascripts/hyrax/analytics_events.js +48 -24
- data/app/assets/javascripts/hyrax/autocomplete/linked_data.es6 +3 -0
- data/app/assets/javascripts/hyrax/collapse.js +4 -4
- data/app/assets/javascripts/hyrax/editor/controlled_vocabulary.es6 +38 -5
- data/app/assets/javascripts/hyrax/file_manager/save_manager.es6 +2 -0
- data/app/assets/javascripts/hyrax/search.js +2 -3
- data/app/assets/javascripts/hyrax/select_work_type.es6 +3 -1
- data/app/assets/javascripts/hyrax/uploader.js +20 -18
- data/app/assets/javascripts/hyrax.js +1 -0
- data/app/assets/stylesheets/_bootstrap-default-overrides.scss +4 -0
- data/app/assets/stylesheets/hyrax/_card.scss +4 -0
- data/app/assets/stylesheets/hyrax/_catalog.scss +21 -0
- data/app/assets/stylesheets/hyrax/_collections.scss +1 -1
- data/app/assets/stylesheets/hyrax/_facets.scss +15 -3
- data/app/assets/stylesheets/hyrax/_featured.scss +4 -0
- data/app/assets/stylesheets/hyrax/_file_upload.scss +6 -0
- data/app/assets/stylesheets/hyrax/_form.scss +4 -0
- data/app/assets/stylesheets/hyrax/_forms.scss +2 -1
- data/app/assets/stylesheets/hyrax/_nestable.scss +9 -8
- data/app/assets/stylesheets/hyrax/_select_work_type.scss +12 -0
- data/app/assets/stylesheets/hyrax/_styles.scss +4 -0
- data/app/assets/stylesheets/hyrax/_work-show.scss +3 -0
- data/app/assets/stylesheets/hyrax/controlled_vocabulary.scss +2 -2
- data/app/controllers/concerns/hyrax/singular_subresource_controller.rb +7 -2
- data/app/controllers/concerns/hyrax/valkyrie_downloads_controller_behavior.rb +11 -2
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +9 -2
- data/app/controllers/hyrax/admin/analytics/collection_reports_controller.rb +2 -2
- data/app/controllers/hyrax/admin/analytics/work_reports_controller.rb +7 -8
- data/app/controllers/hyrax/dashboard/collections_controller.rb +2 -1
- data/app/controllers/hyrax/downloads_controller.rb +24 -3
- data/app/controllers/hyrax/file_sets_controller.rb +33 -7
- data/app/controllers/hyrax/my/works_controller.rb +20 -0
- data/app/controllers/hyrax/single_use_links_viewer_controller.rb +9 -2
- data/app/controllers/hyrax/stats_controller.rb +1 -1
- data/app/controllers/hyrax/uploads_controller.rb +28 -2
- data/app/forms/hyrax/forms/admin/appearance.rb +1 -1
- data/app/forms/hyrax/forms/admin/collection_type_form.rb +1 -7
- data/app/forms/hyrax/forms/pcdm_collection_form.rb +9 -0
- data/app/forms/hyrax/forms/work_embargo_form.rb +6 -0
- data/app/forms/hyrax/forms/work_lease_form.rb +6 -0
- data/app/indexers/concerns/hyrax/location_indexer.rb +2 -2
- data/app/indexers/hyrax/indexers/file_set_indexer.rb +4 -0
- data/app/indexers/hyrax/indexers/resource_indexer.rb +1 -0
- data/app/indexers/hyrax/valkyrie_indexer.rb +3 -5
- data/app/jobs/migrate_files_to_valkyrie_job.rb +109 -0
- data/app/jobs/migrate_resources_job.rb +34 -0
- data/app/jobs/valkyrie_create_derivatives_job.rb +2 -1
- data/app/models/admin_set.rb +1 -0
- data/app/models/collection.rb +13 -1
- data/app/models/concerns/hyrax/ar_resource.rb +104 -0
- data/app/models/concerns/hyrax/solr_document/ordered_members.rb +2 -1
- data/app/models/concerns/hyrax/solr_document_behavior.rb +13 -2
- data/app/models/concerns/hyrax/valkyrie_lazy_migration.rb +82 -0
- data/app/models/file_download_stat.rb +1 -1
- data/app/models/file_view_stat.rb +1 -1
- data/app/models/hyrax/collection_type.rb +12 -4
- data/app/models/hyrax/file_metadata.rb +19 -0
- data/app/models/hyrax/file_set.rb +25 -0
- data/app/models/hyrax/model_registry.rb +3 -4
- data/app/models/hyrax/resource.rb +5 -0
- data/app/models/hyrax/statistic.rb +12 -37
- data/app/presenters/hyrax/file_set_presenter.rb +2 -1
- data/app/presenters/hyrax/file_usage.rb +3 -3
- data/app/presenters/hyrax/iiif_manifest_presenter.rb +2 -1
- data/app/presenters/hyrax/member_presenter_factory.rb +7 -1
- data/app/presenters/hyrax/menu_presenter.rb +1 -1
- data/app/presenters/hyrax/pcdm_member_presenter_factory.rb +2 -2
- data/app/presenters/hyrax/stats_usage_presenter.rb +2 -1
- data/app/presenters/hyrax/work_show_presenter.rb +15 -19
- data/app/presenters/hyrax/work_usage.rb +5 -2
- data/app/search_builders/hyrax/expired_embargo_search_builder.rb +7 -1
- data/app/search_builders/hyrax/expired_lease_search_builder.rb +7 -1
- data/app/search_builders/hyrax/filter_by_type.rb +1 -3
- data/app/search_builders/hyrax/valkyrie_abstract_type_relation.rb +7 -2
- data/app/services/hyrax/access_control_list.rb +1 -1
- data/app/services/hyrax/admin_set_create_service.rb +16 -5
- data/app/services/hyrax/admin_set_service.rb +2 -1
- data/app/services/hyrax/analytics/ga4/base.rb +96 -0
- data/app/services/hyrax/analytics/ga4/events.rb +25 -0
- data/app/services/hyrax/analytics/ga4/events_daily.rb +36 -0
- data/app/services/hyrax/analytics/ga4/visits.rb +33 -0
- data/app/services/hyrax/analytics/ga4/visits_daily.rb +24 -0
- data/app/services/hyrax/analytics/ga4.rb +204 -0
- data/app/services/hyrax/analytics/google.rb +16 -2
- data/app/services/hyrax/analytics/matomo.rb +16 -3
- data/app/services/hyrax/analytics/results.rb +6 -0
- data/app/services/hyrax/custom_queries/find_access_control.rb +1 -1
- data/app/services/hyrax/custom_queries/find_by_date_range.rb +6 -23
- data/app/services/hyrax/custom_queries/find_collections_by_type.rb +2 -2
- data/app/services/hyrax/custom_queries/find_count_by.rb +3 -31
- data/app/services/hyrax/custom_queries/find_file_metadata.rb +2 -2
- data/app/services/hyrax/custom_queries/find_models_by_access.rb +5 -27
- data/app/services/hyrax/embargo_manager.rb +2 -1
- data/app/services/hyrax/file_set_file_service.rb +10 -1
- data/app/services/hyrax/listeners/file_listener.rb +39 -0
- data/app/services/hyrax/listeners/file_metadata_listener.rb +0 -30
- data/app/services/hyrax/lock_manager.rb +7 -7
- data/app/services/hyrax/lockable.rb +4 -3
- data/app/services/hyrax/simple_schema_loader.rb +1 -1
- data/app/services/hyrax/solr_service.rb +22 -8
- data/app/services/hyrax/statistics/query_service.rb +1 -1
- data/app/services/hyrax/statistics/works/over_time.rb +1 -1
- data/app/services/hyrax/thumbnail_path_service.rb +2 -0
- data/app/services/hyrax/user_stat_importer.rb +5 -5
- data/app/services/hyrax/valkyrie_upload.rb +14 -9
- data/app/services/hyrax/versioning_service.rb +10 -2
- data/app/services/hyrax/work_query_service.rb +2 -2
- data/app/services/migrate_resource_service.rb +55 -0
- data/app/views/_controls.html.erb +5 -5
- data/app/views/_masthead.html.erb +1 -1
- data/app/views/catalog/_search_form.html.erb +9 -16
- data/app/views/catalog/_thumbnail_list_collection.html.erb +1 -1
- data/app/views/catalog/_thumbnail_list_default.html.erb +2 -2
- data/app/views/hyrax/admin/analytics/collection_reports/index.html.erb +4 -4
- data/app/views/hyrax/admin/analytics/work_reports/index.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/_form.html.erb +4 -4
- data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
- data/app/views/hyrax/admin/features/index.html.erb +1 -1
- data/app/views/hyrax/base/_file_manager_actions.html.erb +1 -1
- data/app/views/hyrax/base/_file_manager_member.html.erb +7 -4
- data/app/views/hyrax/base/_file_manager_thumbnail.html.erb +1 -1
- data/app/views/hyrax/base/_form_files.html.erb +1 -1
- data/app/views/hyrax/base/_form_member_of_collections.html.erb +4 -0
- data/app/views/hyrax/base/_show_actions.html.erb +7 -8
- data/app/views/hyrax/base/_work_button_row.html.erb +1 -1
- data/app/views/hyrax/batch_select/_add_button.html.erb +1 -1
- data/app/views/hyrax/content_blocks/_form.html.erb +3 -3
- data/app/views/hyrax/dashboard/_sidebar.html.erb +1 -1
- data/app/views/hyrax/dashboard/_user_activity.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_form.html.erb +4 -4
- data/app/views/hyrax/dashboard/collections/_form_share.html.erb +6 -4
- data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +1 -1
- data/app/views/hyrax/dashboard/collections/_show_document_list_row.html.erb +1 -1
- data/app/views/hyrax/dashboard/show_admin.html.erb +18 -19
- data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +1 -1
- data/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb +7 -7
- data/app/views/hyrax/file_sets/_actions.html.erb +9 -1
- data/app/views/hyrax/file_sets/_permission_form.html.erb +4 -2
- data/app/views/hyrax/file_sets/_show_actions.html.erb +1 -1
- data/app/views/hyrax/homepage/_featured.html.erb +1 -1
- data/app/views/hyrax/homepage/_recent_document.html.erb +2 -2
- data/app/views/hyrax/leases/_list_expired_active_leases.html.erb +6 -6
- data/app/views/hyrax/my/collections/_list_collections.html.erb +1 -1
- data/app/views/hyrax/my/collections/_tabs.html.erb +1 -1
- data/app/views/hyrax/pages/_form.html.erb +8 -8
- data/app/views/hyrax/transfers/_received.html.erb +1 -1
- data/app/views/hyrax/uploads/_js_templates.html.erb +9 -9
- data/app/views/hyrax/uploads/_js_templates_branding.html.erb +3 -3
- data/app/views/hyrax/uploads/_js_templates_versioning.html.erb +1 -1
- data/app/views/hyrax/uploads/create.json.jbuilder +2 -2
- data/app/views/hyrax/users/_activity_log.html.erb +15 -9
- data/app/views/hyrax/users/_user_row.html.erb +6 -3
- data/app/views/hyrax/users/_vitals.html.erb +3 -2
- data/app/views/layouts/_head_tag_content.html.erb +2 -0
- data/app/views/shared/_appearance_styles.html.erb +5 -1
- data/app/views/shared/_ga4.html.erb +11 -0
- data/app/views/shared/_select_work_type_modal.html.erb +10 -1
- data/bin/db-migrate-seed.sh +3 -3
- data/bin/dev-entrypoint.sh +7 -2
- data/bin/{db-wait.sh → service-wait.sh} +1 -1
- data/bin/worker-entrypoint.sh +8 -0
- data/chart/hyrax/Chart.yaml +1 -1
- data/chart/hyrax/templates/deployment-worker.yaml +2 -2
- data/chart/hyrax/templates/deployment.yaml +12 -0
- data/chart/hyrax/values.yaml +10 -0
- data/config/locales/hyrax.en.yml +4 -2
- data/config/metadata/basic_metadata.yaml +20 -0
- data/config/metadata/hyrax_internal_metadata.yaml +1 -1
- data/docker-compose-dassie.yml +167 -0
- data/docker-compose-koppie.yml +21 -36
- data/docker-compose-sirenia.yml +50 -44
- data/docker-compose.yml +2 -183
- data/documentation/developing-your-hyrax-based-app.md +4 -4
- data/hyrax.gemspec +7 -12
- data/lib/freyja/custom_query_container.rb +5 -0
- data/lib/freyja/metadata_adapter.rb +32 -0
- data/lib/freyja/persister.rb +42 -0
- data/lib/freyja/query_service.rb +20 -0
- data/lib/freyja/resource_factory.rb +8 -0
- data/lib/freyja.rb +14 -0
- data/lib/frigg/custom_query_container.rb +5 -0
- data/lib/frigg/metadata_adapter.rb +22 -0
- data/lib/frigg/persister.rb +33 -0
- data/lib/frigg/query_service.rb +15 -0
- data/lib/frigg.rb +13 -0
- data/lib/generators/hyrax/install_generator.rb +5 -0
- data/lib/generators/hyrax/templates/config/analytics.yml +6 -1
- data/lib/generators/hyrax/templates/config/initializers/1_valkyrie.rb +6 -2
- data/lib/generators/hyrax/templates/config/valkyrie_index.yml +1 -1
- data/lib/goddess/custom_query_container.rb +71 -0
- data/lib/goddess/metadata.rb +13 -0
- data/lib/goddess/query.rb +176 -0
- data/lib/hyrax/configuration.rb +83 -0
- data/lib/hyrax/engine.rb +2 -0
- data/lib/hyrax/form_fields.rb +1 -3
- data/lib/hyrax/name.rb +5 -0
- data/lib/hyrax/publisher.rb +11 -0
- data/lib/hyrax/rubocop/custom_cops.rb +30 -0
- data/lib/hyrax/specs/capybara.rb +10 -6
- data/{spec → lib/hyrax/specs/shared_specs}/factories/admin_sets.rb +2 -0
- data/{spec → lib/hyrax/specs/shared_specs}/factories/hyrax_embargo.rb +4 -0
- data/{spec → lib/hyrax/specs/shared_specs}/factories/hyrax_lease.rb +4 -0
- data/{spec → lib/hyrax/specs/shared_specs}/factories/hyrax_work.rb +26 -1
- data/lib/hyrax/specs/shared_specs/hydra_works.rb +1 -1
- data/lib/hyrax/transactions/admin_set_destroy.rb +2 -1
- data/lib/hyrax/transactions/collection_destroy.rb +2 -1
- data/lib/hyrax/transactions/container.rb +9 -0
- data/lib/hyrax/transactions/steps/add_file_sets.rb +2 -1
- data/lib/hyrax/transactions/steps/delete_all_file_metadata.rb +4 -5
- data/lib/hyrax/transactions/steps/delete_permission_template.rb +30 -0
- data/lib/hyrax/transactions/steps/delete_resource.rb +1 -1
- data/lib/hyrax/transactions/steps/save_collection_logo.rb +2 -1
- data/lib/hyrax/valkyrie_can_can_adapter.rb +8 -1
- data/lib/hyrax/version.rb +1 -1
- data/lib/wings/active_fedora_converter.rb +13 -5
- data/lib/wings/converter_value_mapper.rb +1 -0
- data/lib/wings/services/custom_queries/find_collections_by_type.rb +2 -1
- data/lib/wings/services/custom_queries/find_file_metadata.rb +2 -2
- data/lib/wings/setup.rb +12 -3
- data/lib/wings/transformer_value_mapper.rb +5 -1
- data/lib/wings/valkyrie/persister.rb +3 -1
- data/template.rb +1 -1
- metadata +118 -94
- data/.koppie/scripts/db-migrate-seed.sh +0 -9
- data/.koppie/scripts/entrypoint.sh +0 -10
- data/spec/support/book_resource.rb +0 -36
- data/spec/support/can_can_overrides.rb +0 -43
- data/spec/support/clean_solr.rb +0 -7
- data/spec/support/controller_level_helpers.rb +0 -27
- data/spec/support/factory_helpers.rb +0 -94
- data/spec/support/fakes/fake_actor.rb +0 -22
- data/spec/support/fakes/fake_authority.rb +0 -14
- data/spec/support/fakes/fake_search_builder_scope.rb +0 -44
- data/spec/support/fakes/indexing_adapter.rb +0 -17
- data/spec/support/fakes/test_hydra_group_service.rb +0 -55
- data/spec/support/features/batch_edit_actions.rb +0 -37
- data/spec/support/features/session_helpers.rb +0 -15
- data/spec/support/features/workflow.rb +0 -10
- data/spec/support/features.rb +0 -11
- data/spec/support/form_with_validations.rb +0 -15
- data/spec/support/input_support.rb +0 -12
- data/spec/support/logging_formatter.rb +0 -67
- data/spec/support/matchers/api_responses.rb +0 -27
- data/spec/support/matchers/collection_type_property_matchers.rb +0 -30
- data/spec/support/matchers/embargo.rb +0 -9
- data/spec/support/matchers/lease.rb +0 -9
- data/spec/support/matchers/match_valkyrie_ids_with_af_ids.rb +0 -12
- data/spec/support/matchers/pcdm_matchers.rb +0 -34
- data/spec/support/matchers/permission.rb +0 -31
- data/spec/support/matchers/response_matchers.rb +0 -8
- data/spec/support/optional_example.rb +0 -17
- data/spec/support/rake.rb +0 -42
- data/spec/support/selectors.rb +0 -112
- data/spec/support/shared_examples_for_collection_presenter.rb +0 -44
- data/spec/support/simple_work.rb +0 -28
- data/spec/support/spec_statistic.rb +0 -24
- data/spec/support/speedup.rb +0 -7
- data/spec/support/statistic_helper.rb +0 -10
- data/spec/support/valkyrie_indexing.rb +0 -2
- data/spec/support/wings_models.rb +0 -9
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/access_control.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/admin_sets_lw.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/administrative_sets.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/api_items.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/collection_branding_infos.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/collection_type_participants.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/collection_types.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/collections.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/collections_factory.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/content_blocks.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/counter_metrics.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/featured_works.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/file_sets.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/generic_works.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/hyrax_collection.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/hyrax_default_admin_set.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/hyrax_file_metadata.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/hyrax_file_set.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/hyrax_resource.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/object_id.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/operations.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/permission.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/permission_template_accesses.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/permission_templates.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/proxy_deposit_requests.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/single_use_links.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/sipity_entities.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/uploaded_files.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/users.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/workflow_actions.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/workflow_states.rb +0 -0
- /data/{spec → lib/hyrax/specs/shared_specs}/factories/workflows.rb +0 -0
@@ -20,24 +20,17 @@
|
|
20
20
|
<span class="sr-only" data-search-element="label"><%= t("hyrax.search.form.option.all.label_long", application_name: application_name) %></span>
|
21
21
|
<span aria-hidden="true"><%= t("hyrax.search.form.option.all.label_short") %></span>
|
22
22
|
</button>
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
data: { "search-option" => hyrax.my_works_path, "search-label" => t("hyrax.search.form.option.my_works.label_short") } %>
|
32
|
-
</li>
|
33
|
-
<li class="dropdown-item">
|
34
|
-
<%= link_to t("hyrax.search.form.option.my_collections.label_long"), "#",
|
35
|
-
data: { "search-option" => hyrax.my_collections_path, "search-label" => t("hyrax.search.form.option.my_collections.label_short") } %>
|
36
|
-
</li>
|
37
|
-
</ul>
|
23
|
+
<div class="dropdown-menu dropdown-menu-right">
|
24
|
+
<%= link_to t("hyrax.search.form.option.all.label_long", application_name: application_name), "#", class: "dropdown-item",
|
25
|
+
data: { "search-option" => main_app.search_catalog_path, "search-label" => t("hyrax.search.form.option.all.label_short") } %>
|
26
|
+
<%= link_to t("hyrax.search.form.option.my_works.label_long"), "#", class: "dropdown-item",
|
27
|
+
data: { "search-option" => hyrax.my_works_path, "search-label" => t("hyrax.search.form.option.my_works.label_short") } %>
|
28
|
+
<%= link_to t("hyrax.search.form.option.my_collections.label_long"), "#", class: "dropdown-item",
|
29
|
+
data: { "search-option" => hyrax.my_collections_path, "search-label" => t("hyrax.search.form.option.my_collections.label_short") } %>
|
30
|
+
</div>
|
38
31
|
<% end %>
|
39
32
|
</div><!-- /.input-group-btn -->
|
40
33
|
</div><!-- /.input-group -->
|
41
|
-
|
34
|
+
|
42
35
|
</div><!-- /.form-group -->
|
43
36
|
<% end %>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<% model = document.hydra_model %>
|
2
2
|
<div class="col-md-3">
|
3
3
|
<% if model == Hyrax::PcdmCollection || model < Hyrax::PcdmCollection %>
|
4
|
-
<%= document_presenter(document)&.thumbnail&.thumbnail_tag({}, suppress_link: true) %>
|
4
|
+
<%= document_presenter(document)&.thumbnail&.thumbnail_tag({ alt: document.title_or_label }, { suppress_link: true }) %>
|
5
5
|
<% else %>
|
6
6
|
<div class="list-thumbnail">
|
7
|
-
<%= document_presenter(document)&.thumbnail&.thumbnail_tag %>
|
7
|
+
<%= document_presenter(document)&.thumbnail&.thumbnail_tag(alt: document.title_or_label) %>
|
8
8
|
</div>
|
9
9
|
<% end %>
|
10
10
|
</div>
|
@@ -8,11 +8,11 @@
|
|
8
8
|
<div class="col-sm-12">
|
9
9
|
<div class="collection-reports">
|
10
10
|
|
11
|
-
<% if Hyrax.config.
|
11
|
+
<% if Hyrax.config.analytics_reporting? %>
|
12
12
|
<div class="card">
|
13
13
|
<div class="card-header"><%= t('.repo_summary') %> <b><%= pluralize(Collection.count, "collection") %></b>, <%= t('.repo_summary_2') %> <b><%= @pageviews.all %> <%= t('.views') %></b> <%= t('.and') %> <b><%= @downloads.all %> <%= t('.downloads') %></b>.</div>
|
14
14
|
<div class="card-body">
|
15
|
-
|
15
|
+
|
16
16
|
<div class="row text-center">
|
17
17
|
<div class="nav nav-pills btn-group" role="group">
|
18
18
|
<% if params[:start_date] %>
|
@@ -54,7 +54,7 @@
|
|
54
54
|
<%= render "hyrax/admin/analytics/date_range_form", redirect_path: hyrax.admin_analytics_collection_reports_path %>
|
55
55
|
<%= render "custom_range" %></div>
|
56
56
|
</div>
|
57
|
-
|
57
|
+
|
58
58
|
</div>
|
59
59
|
</div>
|
60
60
|
<p class="text-center"><%= t('.report_generated_on') %> <b><%= Time.current %></b>.</p>
|
@@ -67,4 +67,4 @@
|
|
67
67
|
<% end %>
|
68
68
|
</div>
|
69
69
|
</div>
|
70
|
-
</div>
|
70
|
+
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<div class="work-reports">
|
10
10
|
|
11
11
|
<div class="card">
|
12
|
-
<% if Hyrax.config.
|
12
|
+
<% if Hyrax.config.analytics_reporting? %>
|
13
13
|
<% if current_user.ability.admin? %>
|
14
14
|
<div class="card-header"><b><%= @works_count %> <%= t('.works') %></b> <%= t('.repo_summary') %> <b><%= @pageviews.all if @pageviews %> <%= t('.views') %></b> <%= t('.and') %> <b><%= @downloads.all if @downloads %> <%= t('.downloads') %></b>.</div>
|
15
15
|
<% else %>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<%= render "shared/nav_safety_modal" %>
|
2
2
|
<div class="card tabs" id="collection-types-controls">
|
3
3
|
<ul class="nav nav-tabs" role="tablist">
|
4
|
-
<li class="nav-item">
|
4
|
+
<li class="nav-item" role="presentation">
|
5
5
|
<a href="#metadata" role="tab" data-toggle="tab" class="nav-link active nav-safety-confirm"><%= t('hyrax.admin.collection_types.form.tab.metadata') %></a>
|
6
6
|
</li>
|
7
7
|
<% if @form.persisted? %>
|
8
|
-
<li class="nav-item">
|
8
|
+
<li class="nav-item" role="presentation">
|
9
9
|
<a href="#settings" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm"><%= t('hyrax.admin.collection_types.form.tab.settings') %></a>
|
10
10
|
</li>
|
11
|
-
<li class="nav-item">
|
11
|
+
<li class="nav-item" role="presentation">
|
12
12
|
<a href="#participants" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm"><%= t('hyrax.admin.collection_types.form.tab.participants') %></a>
|
13
13
|
</li>
|
14
|
-
<li class="nav-item">
|
14
|
+
<li class="nav-item" role="presentation">
|
15
15
|
<a href="#appearance" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm"><%= t('hyrax.admin.collection_types.form.tab.appearance') %></a>
|
16
16
|
</li>
|
17
17
|
<% end %>
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<button class="btn btn-danger btn-sm delete-collection-type"
|
42
42
|
data-collection-type="<%= collection_type.to_json %>"
|
43
43
|
data-collection-type-index="<%= hyrax.dashboard_collections_path({ 'f[collection_type_gid_ssim][]' => collection_type.to_global_id.to_s }) %>"
|
44
|
-
data-has-collections="<%= collection_type.collections
|
44
|
+
data-has-collections="<%= collection_type.collections? %>">
|
45
45
|
<%= t('helpers.action.delete') %>
|
46
46
|
</button>
|
47
47
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="actions card">
|
2
2
|
<div class="d-flex">
|
3
|
-
<%= button_tag t('.save'), class: "btn btn-primary disabled mr-2", data: { action: "save-actions" } %>
|
3
|
+
<%= button_tag t('.save'), class: "btn btn-primary disabled mr-2", data: { action: "save-actions" }, 'aria-disabled': true %>
|
4
4
|
<%= button_tag t('.sort_alphabetically'), class: "btn btn-primary ", data: { action: "alpha-sort-action" } %>
|
5
5
|
</div>
|
6
6
|
</div>
|
@@ -3,7 +3,8 @@
|
|
3
3
|
<%= simple_form_for [main_app, node], remote: true, html: {'data-type': 'json'} do |f| %>
|
4
4
|
<div class="card-header">
|
5
5
|
<div class="order-title">
|
6
|
-
|
6
|
+
<label class="sr-only" id='<%= "edit_#{f.object.model_name.singular}_title" %>'>Edit title</label>
|
7
|
+
<%= f.input :title, as: :string, input_html: { name: "#{f.object.model_name.singular}[title][]", class: "title", 'aria-labelledby': "edit_#{f.object.model_name.singular}_title" }, value: node.to_s, label: false, hint: false %>
|
7
8
|
</div>
|
8
9
|
<div class="file-set-link float-right">
|
9
10
|
<%= link_to contextual_path(node, @presenter), title: "Edit file" do %>
|
@@ -11,9 +12,11 @@
|
|
11
12
|
<% end %>
|
12
13
|
</div>
|
13
14
|
<% if node.respond_to?(:label) %>
|
14
|
-
|
15
|
-
<
|
16
|
-
|
15
|
+
<% unless node.label.nil? %>
|
16
|
+
<div class="order-filename" >
|
17
|
+
<em title="<%= node.page_title %>">(<%= truncate(node.label, length: 29) %>)</em>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
17
20
|
<% end %>
|
18
21
|
</div>
|
19
22
|
<div class="card-body">
|
@@ -1 +1 @@
|
|
1
|
-
<%= document_presenter(node)&.thumbnail&.thumbnail_tag({ class: 'thumbnail-inner mw-100' }, {}) %>
|
1
|
+
<%= document_presenter(node)&.thumbnail&.thumbnail_tag({ class: 'thumbnail-inner mw-100', 'alt': "Thumbnail image for #{node.title[0]}" }, {}) %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= render "base_form_files_prepend", locals: { f: f } %>
|
1
|
+
<%= render partial: "base_form_files_prepend", locals: { f: f } %>
|
2
2
|
<div id="fileupload">
|
3
3
|
<!-- Redirect browsers with JavaScript disabled to the origin page -->
|
4
4
|
<noscript><input type="hidden" name="redirect" value="<%= main_app.root_path %>" /></noscript>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
class: presenter.display_unfeature_link? ? 'btn btn-secondary' : 'btn btn-secondary collapse' %>
|
18
18
|
<% end %>
|
19
19
|
<% end %>
|
20
|
-
<% if Hyrax.config.
|
20
|
+
<% if Hyrax.config.analytics_reporting? %>
|
21
21
|
<% # turbolinks needs to be turned off or the page will use the cache and the %>
|
22
22
|
<% # analytics graph will not show unless the page is refreshed. %>
|
23
23
|
<%= link_to t('.analytics'), presenter.stats_path, id: 'stats', class: 'btn btn-secondary', data: { turbolinks: false } %>
|
@@ -34,13 +34,12 @@
|
|
34
34
|
<div class="btn-group">
|
35
35
|
<button type="button" class="btn btn-secondary dropdown-toggle" type="button" id="dropdown-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
36
36
|
<%= t('.attach_child') %>
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
</ul>
|
37
|
+
</button>
|
38
|
+
<div class="dropdown-menu">
|
39
|
+
<% presenter.valid_child_concerns.each do |concern| %>
|
40
|
+
<%= link_to "Attach #{concern.human_readable_type}", polymorphic_path([main_app, :new, :hyrax, :parent, concern.model_name.singular.to_sym], parent_id: presenter.id), class: "dropdown-item" %>
|
41
|
+
<% end %>
|
42
|
+
</div>
|
44
43
|
</div>
|
45
44
|
<% end %>
|
46
45
|
<%= link_to t('.delete'), [main_app, presenter], class: 'btn btn-danger', data: { confirm: t('.confirm_delete', work_type: presenter.human_readable_type) }, method: :delete %>
|
@@ -38,7 +38,7 @@
|
|
38
38
|
data: { behavior: 'unfeature' },
|
39
39
|
class: presenter.display_feature_link? ? 'btn btn-secondary collapse' : 'btn btn-secondary' %>
|
40
40
|
<% end %>
|
41
|
-
<% if Hyrax.config.
|
41
|
+
<% if Hyrax.config.analytics_reporting? %>
|
42
42
|
<%= link_to t(".analytics"), presenter.stats_path, id: 'stats', class: 'btn btn-secondary' %>
|
43
43
|
<% end %>
|
44
44
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<div data-behavior="batch-add-button">
|
2
|
-
<%= check_box_tag "batch_document_ids[]", document.id, false, class:"batch_document_selector", id: "batch_document_#{document.id}", checks: "active" %>
|
2
|
+
<%= check_box_tag "batch_document_ids[]", document.id, false, class:"batch_document_selector", id: "batch_document_#{document.id}", checks: "active", 'aria-labelledby': "batch_document_#{document.id}" %>
|
3
3
|
</div>
|
@@ -29,7 +29,7 @@
|
|
29
29
|
</div>
|
30
30
|
<div class="card-footer d-flex justify-content-end">
|
31
31
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
32
|
-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.
|
32
|
+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
|
33
33
|
</div>
|
34
34
|
<% end %>
|
35
35
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
</div>
|
46
46
|
<div class="card-footer d-flex justify-content-end">
|
47
47
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
48
|
-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.
|
48
|
+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
|
49
49
|
</div>
|
50
50
|
<% end %>
|
51
51
|
</div>
|
@@ -61,7 +61,7 @@
|
|
61
61
|
</div>
|
62
62
|
<div class="card-footer d-flex justify-content-end">
|
63
63
|
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
|
64
|
-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.
|
64
|
+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
|
65
65
|
</div>
|
66
66
|
<% end %>
|
67
67
|
</div>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
</li>
|
15
|
-
<li class="nav-item">
|
15
|
+
<li class="nav-item <%= 'active' if current_page?(hyrax.dashboard_path) %>">
|
16
16
|
<%= link_to hyrax.dashboard_path, class: "nav-link", title: t('hyrax.admin.sidebar.dashboard') do %>
|
17
17
|
<span class="fa fa-home" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.dashboard') %></span>
|
18
18
|
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<%= t('.title') %>
|
4
4
|
</div>
|
5
5
|
<div class="card-body d-flex justify-content-center">
|
6
|
-
|
6
|
+
<% if Hyrax.config.analytics_reporting? %>
|
7
7
|
<%= render 'user_activity_graph' %>
|
8
8
|
|
9
9
|
<!-- FIXME: This is like embedded a card in a card...seems odd -->
|
@@ -22,4 +22,4 @@
|
|
22
22
|
</div>
|
23
23
|
<% end %>
|
24
24
|
</div>
|
25
|
-
</div>
|
25
|
+
</div>
|
@@ -1,28 +1,28 @@
|
|
1
1
|
<%= render "shared/nav_safety_modal" %>
|
2
2
|
<div class="tabs mt-4" id="collection-edit-controls">
|
3
3
|
<ul class="nav nav-tabs" id="dashboard-collection-tab" role="tablist">
|
4
|
-
<li class="nav-item">
|
4
|
+
<li class="nav-item" role="presentation">
|
5
5
|
<a href="#description" role="tab" data-toggle="tab" class="nav-link active nav-safety-confirm">
|
6
6
|
<%= t('.tabs.description') %>
|
7
7
|
</a>
|
8
8
|
</li>
|
9
9
|
<% if @form.persisted? %>
|
10
10
|
<% if collection_brandable?(collection: @collection) %>
|
11
|
-
<li class="nav-item">
|
11
|
+
<li class="nav-item" role="presentation">
|
12
12
|
<a href="#branding" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
13
13
|
<%= t('.tabs.branding') %>
|
14
14
|
</a>
|
15
15
|
</li>
|
16
16
|
<% end %>
|
17
17
|
<% if collection_discoverable?(collection: @collection) %>
|
18
|
-
<li class="nav-item">
|
18
|
+
<li class="nav-item" role="presentation">
|
19
19
|
<a href="#discovery" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
20
20
|
<%= t('.tabs.discovery') %>
|
21
21
|
</a>
|
22
22
|
</li>
|
23
23
|
<% end %>
|
24
24
|
<% if collection_sharable?(collection: @collection) %>
|
25
|
-
<li class="nav-item">
|
25
|
+
<li class="nav-item" role="presentation">
|
26
26
|
<a href="#sharing" role="tab" data-toggle="tab" class="nav-link nav-safety-confirm">
|
27
27
|
<%= t('.tabs.sharing') %>
|
28
28
|
</a>
|
@@ -25,10 +25,11 @@
|
|
25
25
|
class: 'form-control search-input' %>
|
26
26
|
</div>
|
27
27
|
<div class="form-group">
|
28
|
-
<label class="mr-2">as</label>
|
28
|
+
<label id="add_group_as" class="mr-2">as</label>
|
29
29
|
<%= builder.select :access,
|
30
30
|
access_options,
|
31
31
|
{ prompt: t('.select_a_role') },
|
32
|
+
'aria-labelledby': "add_group_as",
|
32
33
|
class: 'form-control' %>
|
33
34
|
</div>
|
34
35
|
<% end %>
|
@@ -56,10 +57,11 @@
|
|
56
57
|
placeholder: t('.search_for_a_user') %>
|
57
58
|
</div>
|
58
59
|
<div class="form-group">
|
59
|
-
<label class="mx-2">as</label>
|
60
|
+
<label id="add_user_as" class="mx-2">as</label>
|
60
61
|
<%= builder.select :access,
|
61
62
|
access_options,
|
62
63
|
{ prompt: t('.select_a_role') },
|
64
|
+
'aria-labelledby': "add_user_as",
|
63
65
|
class: 'form-control' %>
|
64
66
|
</div>
|
65
67
|
<% end %>
|
@@ -75,8 +77,8 @@
|
|
75
77
|
|
76
78
|
<h2 class="h3"><%= t(".current_shared") %></h2>
|
77
79
|
<section class="section-collection-sharing">
|
78
|
-
|
79
|
-
|
80
|
+
|
81
|
+
|
80
82
|
<%= render 'form_share_table', access: 'managers', filter: :manage? %>
|
81
83
|
<%= render 'form_share_table', access: 'depositors', filter: :deposit? %>
|
82
84
|
<%= render 'form_share_table', access: 'viewers', filter: :view? %>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<input type="checkbox" name="batch_document_ids[]" id="batch_document_<%= id %>" value="<%= id %>" class="batch_document_selector"
|
13
13
|
data-hasaccess="<%= (can?(:edit, collection_presenter.solr_document)) %>" />
|
14
14
|
<% else %>
|
15
|
-
<input type="checkbox" class="disabled batch_document_selector" disabled=true />
|
15
|
+
<input type="checkbox" id="batch_document_<%= id %>" class="disabled batch_document_selector" disabled=true />
|
16
16
|
<% end %>
|
17
17
|
</td>
|
18
18
|
<td>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
</td>
|
8
8
|
<td>
|
9
9
|
<div class="media">
|
10
|
-
<%= link_to [main_app, document], "class" => "media-left mr-3"
|
10
|
+
<%= link_to [main_app, document], "class" => "media-left mr-3" do %>
|
11
11
|
<%= document_presenter(document)&.thumbnail&.thumbnail_tag(
|
12
12
|
{ class: "d-none d-md-block file_listing_thumbnail", alt: document.title_or_label }, { suppress_link: true }
|
13
13
|
) %>
|
@@ -3,34 +3,34 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<div class="spaced-rows">
|
6
|
-
<% if Hyrax.config.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
6
|
+
<% if Hyrax.config.analytics_reporting? %>
|
7
|
+
<div class="row">
|
8
|
+
<div class="col">
|
9
|
+
<div class="card">
|
10
|
+
<div class="card-header">
|
11
|
+
<h2 class="card-title"><%= t(".graph_reports") %>:</h2>
|
12
|
+
<%= params[:start_date].present? ? params[:start_date].to_date : 1.month.ago.beginning_of_day.to_date %> -
|
13
|
+
<%= params[:end_date].present? ? params[:end_date].to_date : Time.zone.now.end_of_day.to_date %>
|
14
|
+
</div>
|
15
|
+
<div class="card-body">
|
16
|
+
<%= render "hyrax/admin/analytics/date_range_form", redirect_path: hyrax.dashboard_path %>
|
17
|
+
</div>
|
17
18
|
</div>
|
18
19
|
</div>
|
19
20
|
</div>
|
20
|
-
</div>
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
<div class="row">
|
23
|
+
<div class="col">
|
24
|
+
<div class="card">
|
25
|
+
<%= render 'user_activity' %>
|
26
|
+
</div>
|
26
27
|
</div>
|
27
28
|
</div>
|
28
|
-
</div>
|
29
29
|
<% end %>
|
30
30
|
|
31
31
|
<div class="row">
|
32
32
|
<div class="col">
|
33
|
-
|
33
|
+
<%= render 'repository_growth' %>
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
|
@@ -50,4 +50,3 @@
|
|
50
50
|
<div class="clearfix mt-5">
|
51
51
|
<%= render 'tabs' %>
|
52
52
|
</div>
|
53
|
-
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<% end %>
|
34
34
|
<% end %>
|
35
35
|
|
36
|
-
<% if current_ability.can_create_any_work? && Hyrax.config.
|
36
|
+
<% if current_ability.can_create_any_work? && Hyrax.config.analytics_reporting? %>
|
37
37
|
<li class="nav-item">
|
38
38
|
<%= menu.collapsable_section t('hyrax.admin.sidebar.analytics'),
|
39
39
|
icon_class: "fa fa-pie-chart",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<table class="embargoes table">
|
23
23
|
<thead>
|
24
24
|
<tr>
|
25
|
-
<th><input type="checkbox" id="checkAllBox" class="batch_document_selector"/>
|
25
|
+
<th><input type="checkbox" id="checkAllBox" class="batch_document_selector" aria-labelledby="checkAllBox"/> <label for="checkAllBox"><%= t('.select_all') %></label></th>
|
26
26
|
<%= render partial: 'table_headers' %>
|
27
27
|
</tr>
|
28
28
|
</thead>
|
@@ -31,19 +31,19 @@
|
|
31
31
|
<tr>
|
32
32
|
<td><%= render 'hyrax/batch_select/add_button', document: curation_concern %></td>
|
33
33
|
<td class="human-readable-type"><%= curation_concern.human_readable_type %></td>
|
34
|
-
<td class="title"><%= link_to curation_concern, edit_embargo_path(curation_concern) %></td>
|
34
|
+
<td class="title"><label for="batch_document_<%= curation_concern.id %>"><%= link_to curation_concern, edit_embargo_path(curation_concern) %></label></td>
|
35
35
|
<td class="current-visibility"><%= visibility_badge(curation_concern.visibility) %></td>
|
36
36
|
<td class="embargo-release-date"><%= curation_concern.embargo_release_date %></td>
|
37
37
|
<td class="visibility-after-embargo"><%= visibility_badge(curation_concern.visibility_after_embargo) %></td>
|
38
|
-
<td class="actions"><%= link_to t('.deactivate'), embargo_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td>
|
39
38
|
</tr>
|
40
39
|
<tr data-behavior="extra" data-id="<%= curation_concern.id %>" class="extra-embargo-info">
|
41
40
|
<td></td>
|
42
|
-
<td colspan=
|
43
|
-
<%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true %>
|
44
|
-
<%= t('.change_all', cc: curation_concern) %>
|
45
|
-
<%= visibility_badge(curation_concern.visibility_after_embargo)
|
41
|
+
<td colspan=4>
|
42
|
+
<%= check_box_tag "embargoes[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "embargoes_#{i}_copy_visibility" %>
|
43
|
+
<label for="embargoes_<%= i %>_copy_visibility"><%= t('.change_all', cc: curation_concern) %>
|
44
|
+
<%= visibility_badge(curation_concern.visibility_after_embargo) %>?</label>
|
46
45
|
</td>
|
46
|
+
<td class="actions"><%= link_to t('.deactivate'), embargo_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td>
|
47
47
|
</tr>
|
48
48
|
<% end %>
|
49
49
|
</tbody>
|
@@ -45,8 +45,16 @@
|
|
45
45
|
class: "download",
|
46
46
|
data: { label: file_set.id, work_id: @presenter.id, collection_ids: @presenter.member_of_collection_ids } %>
|
47
47
|
</li>
|
48
|
-
<% end %>
|
49
48
|
|
49
|
+
<% file_set.extensions_and_mime_types&.each do |hash| %>
|
50
|
+
<% next unless hash[:name] %>
|
51
|
+
<li class ="dropdown-item" role="menuitem" tabindex="-1">
|
52
|
+
<a href="<%= download_url(id: file_set.id, locale: 'en', file: hash[:name], mime_type: hash[:mime_type]) %>" download>
|
53
|
+
Download <em>(as <%= hash[:name] %>)</em>
|
54
|
+
</a>
|
55
|
+
</li>
|
56
|
+
<% end %>
|
57
|
+
<% end %>
|
50
58
|
</ul>
|
51
59
|
</div>
|
52
60
|
<% end %>
|
@@ -56,8 +56,10 @@
|
|
56
56
|
<%= select_tag 'new_group_permission_skel', options_for_select(configured_permission_options), class: 'form-control' %>
|
57
57
|
</div>
|
58
58
|
<div class="col-sm-3">
|
59
|
-
<
|
60
|
-
|
59
|
+
<button class="btn btn-secondary" id="add_new_group_skel">
|
60
|
+
<span class="sr-only"><%= t('.add_new_group_skel') %></span>
|
61
|
+
<i class="fa fa-plus"></i>
|
62
|
+
</button>
|
61
63
|
<br /><span id="directory_group_result"></span>
|
62
64
|
</div>
|
63
65
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="form-actions">
|
2
|
-
<% if Hyrax.config.
|
2
|
+
<% if Hyrax.config.analytics_reporting? %>
|
3
3
|
<% # turbolinks needs to be turned off or the page will use the cache and the %>
|
4
4
|
<% # analytics graph will not show unless the page is refreshed. %>
|
5
5
|
<%= link_to t('.analytics'), @presenter.stats_path, id: 'stats', class: 'btn btn-secondary', data: { turbolinks: false } %>
|
@@ -11,10 +11,10 @@
|
|
11
11
|
<% end %>
|
12
12
|
</h3>
|
13
13
|
<p class="recent-field">
|
14
|
-
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
|
14
|
+
<span class="recent-label text-dark"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
|
15
15
|
</p>
|
16
16
|
<p class="recent-field">
|
17
|
-
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>
|
17
|
+
<span class="recent-label text-dark"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>
|
18
18
|
</p>
|
19
19
|
</div>
|
20
20
|
</div>
|
@@ -32,19 +32,19 @@
|
|
32
32
|
<tr>
|
33
33
|
<td><%= render 'hyrax/batch_select/add_button', document: curation_concern %></td>
|
34
34
|
<td class="human-readable-type"><%= curation_concern.human_readable_type %></td>
|
35
|
-
<td class="title"><%= link_to curation_concern, edit_lease_path(curation_concern) %></td>
|
35
|
+
<td class="title"><label for="batch_document_<%= curation_concern.id %>"><%= link_to curation_concern, edit_lease_path(curation_concern) %></label></td>
|
36
36
|
<td class="current-visibility"><%= visibility_badge(curation_concern.visibility) %></td>
|
37
37
|
<td class="lease-release-date"><%= curation_concern.lease_expiration_date %></td>
|
38
38
|
<td class="visibility-after-lease"><%= visibility_badge(curation_concern.visibility_after_lease) %></td>
|
39
|
-
<td class="actions"><%= link_to t('.deactivate'), lease_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td>
|
40
39
|
</tr>
|
41
40
|
<tr data-behavior="extra" data-id="<%= curation_concern.id %>" class="extra-lease-info">
|
42
41
|
<td></td>
|
43
|
-
<td colspan=
|
44
|
-
<%= check_box_tag "leases[#{i}][copy_visibility]", curation_concern.id, true %>
|
45
|
-
<%= t('.change_all', cc: curation_concern) %>
|
46
|
-
<%= visibility_badge(curation_concern.visibility_after_lease)
|
42
|
+
<td colspan=4>
|
43
|
+
<%= check_box_tag "leases[#{i}][copy_visibility]", curation_concern.id, true, 'aria-labelledby': "leases_#{i}_copy_visibility" %>
|
44
|
+
<label for="leases_<%= i %>_copy_visibility"><%= t('.change_all', cc: curation_concern) %>
|
45
|
+
<%= visibility_badge(curation_concern.visibility_after_lease) %>?</label>
|
47
46
|
</td>
|
47
|
+
<td class="actions"><%= link_to t('.deactivate'), lease_path(curation_concern), method: :delete, class: 'btn btn-primary' %></td>
|
48
48
|
</tr>
|
49
49
|
<% end %>
|
50
50
|
</tbody>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<input type="checkbox" name="batch_document_ids[]" id="batch_document_<%= id %>" value="<%= id %>" class="batch_document_selector"
|
15
15
|
data-hasaccess="<%= (can?(:edit, collection_presenter.solr_document)) %>" />
|
16
16
|
<% else %>
|
17
|
-
<input type="checkbox" class="disabled" disabled=true />
|
17
|
+
<input type="checkbox" id="batch_document_<%= id %>" class="disabled batch_document_selector" disabled=true />
|
18
18
|
<% end %>
|
19
19
|
</td>
|
20
20
|
<td>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% current_page_dashboard = current_page?(hyrax.dashboard_collections_path(locale: nil)) %>
|
2
|
-
<ul class="nav nav-tabs" id="my_nav"
|
2
|
+
<ul class="nav nav-tabs" id="my_nav">
|
3
3
|
<li<%= ' class="nav-item"'.html_safe if current_page_dashboard %>>
|
4
4
|
<%= link_to(
|
5
5
|
t("hyrax.dashboard.#{current_ability.admin? ? 'all' : 'managed'}.collections"),
|