hyrax 3.1.0 → 3.4.0
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 +8 -11
- data/.dassie/.env +1 -2
- data/.dassie/Gemfile +8 -4
- data/.dassie/app/controllers/catalog_controller.rb +6 -0
- data/.dassie/app/models/user.rb +0 -2
- data/.dassie/config/analytics.yml +12 -5
- data/.dassie/config/environments/development.rb +2 -0
- data/.dassie/config/initializers/hyrax.rb +13 -1
- data/.dassie/db/migrate/20210921150120_enable_uuid_extension.valkyrie_engine.rb +7 -0
- data/.dassie/db/migrate/20210921150121_create_orm_resources.valkyrie_engine.rb +19 -0
- data/.dassie/db/migrate/20210921150122_add_model_type_to_orm_resources.valkyrie_engine.rb +7 -0
- data/.dassie/db/migrate/20210921150123_change_model_type_to_internal_model.valkyrie_engine.rb +7 -0
- data/.dassie/db/migrate/20210921150124_create_path_gin_index.valkyrie_engine.rb +7 -0
- data/.dassie/db/migrate/20210921150125_create_internal_resource_index.valkyrie_engine.rb +7 -0
- data/.dassie/db/migrate/20210921150126_create_updated_at_index.valkyrie_engine.rb +7 -0
- data/.dassie/db/migrate/20210921150127_add_optimistic_locking_to_orm_resources.valkyrie_engine.rb +7 -0
- data/.dassie/db/migrate/20211130181150_create_default_administrative_set.rb +8 -0
- data/.dassie/db/schema.rb +20 -1
- data/.env +7 -4
- data/.github/workflows/main.yml +17 -0
- data/.github/workflows/release.yml +17 -0
- data/.gitignore +4 -0
- data/.regen +1 -1
- data/.rubocop_fixme.yml +3 -1
- data/CONTAINERS.md +13 -10
- data/Dockerfile +4 -4
- data/README.md +37 -0
- data/app/actors/hyrax/actors/base_actor.rb +1 -1
- data/app/actors/hyrax/actors/collections_membership_actor.rb +3 -3
- data/app/actors/hyrax/actors/file_actor.rb +6 -4
- data/app/actors/hyrax/actors/file_set_actor.rb +2 -0
- data/app/actors/hyrax/actors/transfer_request_actor.rb +3 -7
- data/app/assets/javascripts/hyrax/admin/graphs.es6 +34 -37
- data/app/assets/javascripts/hyrax/analytics_events.js +75 -0
- data/app/assets/javascripts/hyrax/autocomplete/linked_data.es6 +1 -3
- data/app/assets/javascripts/hyrax/collapse.js +24 -0
- data/app/assets/javascripts/hyrax/collections.js +1 -2
- data/app/assets/javascripts/hyrax/ga_events.js +2 -8
- data/app/assets/javascripts/hyrax/reports-buttons.js +33 -0
- data/app/assets/javascripts/hyrax.js +2 -1
- data/app/assets/stylesheets/_bootstrap-default-overrides.scss +9 -0
- data/app/assets/stylesheets/hyrax/_styles.scss +5 -0
- data/app/authorities/qa/authorities/collections.rb +4 -5
- data/app/authorities/qa/authorities/find_works.rb +1 -1
- data/app/controllers/concerns/hyrax/breadcrumbs_for_collection_analytics.rb +26 -0
- data/app/controllers/concerns/hyrax/breadcrumbs_for_works_analytics.rb +26 -0
- data/app/controllers/concerns/hyrax/collections_controller_behavior.rb +13 -5
- data/app/controllers/concerns/hyrax/controller.rb +56 -2
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +83 -59
- data/app/controllers/hyrax/admin/admin_sets_controller.rb +105 -36
- data/app/controllers/hyrax/admin/analytics/analytics_controller.rb +40 -0
- data/app/controllers/hyrax/admin/analytics/collection_reports_controller.rb +61 -0
- data/app/controllers/hyrax/admin/analytics/work_reports_controller.rb +122 -0
- data/app/controllers/hyrax/admin/permission_template_accesses_controller.rb +17 -21
- data/app/controllers/hyrax/batch_edits_controller.rb +12 -3
- data/app/controllers/hyrax/batch_uploads_controller.rb +4 -0
- data/app/controllers/hyrax/citations_controller.rb +1 -1
- data/app/controllers/hyrax/collections_controller.rb +6 -1
- data/app/controllers/hyrax/dashboard/collection_members_controller.rb +12 -9
- data/app/controllers/hyrax/dashboard/collections_controller.rb +119 -37
- data/app/controllers/hyrax/dashboard/nest_collections_controller.rb +75 -39
- data/app/controllers/hyrax/dashboard_controller.rb +8 -0
- data/app/controllers/hyrax/my_controller.rb +4 -4
- data/app/controllers/hyrax/stats_controller.rb +3 -1
- data/app/controllers/hyrax/workflow_actions_controller.rb +8 -5
- data/app/forms/hyrax/forms/administrative_set_form.rb +80 -0
- data/app/forms/hyrax/forms/batch_edit_form.rb +1 -1
- data/app/forms/hyrax/forms/collection_form.rb +2 -2
- data/app/forms/hyrax/forms/dashboard/nest_collection_form.rb +33 -8
- data/app/forms/hyrax/forms/pcdm_collection_form.rb +68 -0
- data/app/forms/hyrax/forms/permission_template_form.rb +17 -9
- data/app/forms/hyrax/forms/resource_form.rb +24 -15
- data/app/forms/hyrax/forms/workflow_action_form.rb +4 -0
- data/app/helpers/hyrax/collections_helper.rb +14 -0
- data/app/helpers/hyrax/hyrax_helper_behavior.rb +9 -0
- data/app/helpers/hyrax/membership_helper.rb +1 -1
- data/app/helpers/hyrax/trophy_helper.rb +1 -1
- data/app/helpers/hyrax/url_helper.rb +1 -1
- data/app/indexers/hyrax/administrative_set_indexer.rb +12 -6
- data/app/indexers/hyrax/deep_indexing_service.rb +1 -1
- data/app/indexers/hyrax/file_set_indexer.rb +1 -0
- data/app/indexers/hyrax/pcdm_collection_indexer.rb +5 -1
- data/app/indexers/hyrax/thumbnail_indexer.rb +31 -0
- data/app/indexers/hyrax/valkyrie_file_set_indexer.rb +7 -7
- data/app/indexers/hyrax/valkyrie_indexer.rb +4 -2
- data/app/indexers/hyrax/valkyrie_work_indexer.rb +13 -0
- data/app/inputs/controlled_vocabulary_input.rb +2 -0
- data/app/jobs/change_depositor_event_job.rb +47 -0
- data/app/jobs/characterize_job.rb +66 -3
- data/app/jobs/concerns/hyrax/members_permission_job_behavior.rb +1 -1
- data/app/jobs/content_depositor_change_event_job.rb +2 -1
- data/app/jobs/hyrax/propagate_change_depositor_job.rb +32 -0
- data/app/jobs/inherit_permissions_job.rb +1 -1
- data/app/jobs/valkyrie_create_derivatives_job.rb +25 -0
- data/app/jobs/valkyrie_ingest_job.rb +124 -0
- data/app/models/admin_set.rb +18 -7
- data/app/models/collection_branding_info.rb +8 -6
- data/app/models/concerns/hyrax/ability/admin_set_ability.rb +31 -7
- data/app/models/concerns/hyrax/ability/collection_ability.rb +35 -20
- data/app/models/concerns/hyrax/ability/collection_type_ability.rb +1 -1
- data/app/models/concerns/hyrax/ability.rb +28 -7
- data/app/models/concerns/hyrax/collection_behavior.rb +2 -2
- data/app/models/concerns/hyrax/file_set/characterization.rb +7 -1
- data/app/models/concerns/hyrax/solr_document/metadata.rb +2 -0
- data/app/models/concerns/hyrax/solr_document_behavior.rb +11 -5
- data/app/models/file_download_stat.rb +4 -4
- data/app/models/hyrax/administrative_set.rb +43 -2
- data/app/models/hyrax/collection_type.rb +2 -2
- data/app/models/hyrax/default_administrative_set.rb +42 -0
- data/app/models/hyrax/file_metadata.rb +5 -1
- data/app/models/hyrax/file_set.rb +42 -1
- data/app/models/hyrax/pcdm_collection.rb +56 -0
- data/app/models/hyrax/permission.rb +1 -1
- data/app/models/hyrax/permission_template.rb +30 -10
- data/app/models/hyrax/statistic.rb +31 -4
- data/app/models/hyrax/work.rb +92 -0
- data/app/models/hyrax/workflow_action_info.rb +16 -0
- data/app/models/proxy_deposit_request.rb +1 -1
- data/app/models/sipity/comment.rb +17 -0
- data/app/models/sipity.rb +11 -2
- data/app/presenters/hyrax/admin/dashboard_presenter.rb +8 -6
- data/app/presenters/hyrax/admin/repository_growth_presenter.rb +10 -5
- data/app/presenters/hyrax/admin/user_activity_presenter.rb +8 -12
- data/app/presenters/hyrax/admin_set_presenter.rb +10 -5
- data/app/presenters/hyrax/collection_presenter.rb +3 -3
- data/app/presenters/hyrax/file_set_presenter.rb +2 -0
- data/app/presenters/hyrax/menu_presenter.rb +4 -0
- data/app/presenters/hyrax/pcdm_member_presenter_factory.rb +3 -3
- data/app/presenters/hyrax/work_show_presenter.rb +11 -3
- data/app/presenters/hyrax/work_usage.rb +1 -0
- data/app/search_builders/hyrax/README.md +1 -1
- data/app/search_builders/hyrax/abstract_type_relation.rb +4 -2
- data/app/search_builders/hyrax/dashboard/collections_search_builder.rb +2 -2
- data/app/search_builders/hyrax/dashboard/managed_search_filters.rb +44 -4
- data/app/search_builders/hyrax/dashboard/nested_collections_search_builder.rb +2 -2
- data/app/search_builders/hyrax/exposed_models_relation.rb +1 -1
- data/app/search_builders/hyrax/filter_by_type.rb +1 -2
- data/app/search_builders/hyrax/my/collections_search_builder.rb +12 -5
- data/app/services/hyrax/access_control_list.rb +13 -0
- data/app/services/hyrax/admin_set_create_service.rb +179 -51
- data/app/services/hyrax/analytics/google/events.rb +37 -0
- data/app/services/hyrax/analytics/google/events_daily.rb +72 -0
- data/app/services/hyrax/analytics/google/visits.rb +44 -0
- data/app/services/hyrax/analytics/google/visits_daily.rb +49 -0
- data/app/services/hyrax/analytics/google.rb +204 -0
- data/app/services/hyrax/analytics/matomo.rb +193 -0
- data/app/services/hyrax/analytics/results.rb +79 -0
- data/app/services/hyrax/analytics.rb +12 -82
- data/app/services/hyrax/change_content_depositor_service.rb +2 -2
- data/app/services/hyrax/change_depositor_service.rb +70 -0
- data/app/services/hyrax/characterization/valkyrie_characterization_service.rb +134 -0
- data/app/services/hyrax/collection_types/permissions_service.rb +1 -1
- data/app/services/hyrax/collections/collection_member_service.rb +12 -2
- data/app/services/hyrax/collections/nested_collection_query_service.rb +31 -14
- data/app/services/hyrax/collections/permissions_create_service.rb +81 -79
- data/app/services/hyrax/collections/permissions_service.rb +1 -1
- data/app/services/hyrax/curation_concern.rb +24 -2
- data/app/services/hyrax/custom_queries/navigators/child_file_sets_navigator.rb +45 -0
- data/app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb +7 -2
- data/app/services/hyrax/custom_queries/navigators/parent_work_navigator.rb +54 -0
- data/app/services/hyrax/default_middleware_stack.rb +14 -0
- data/app/services/hyrax/ensure_well_formed_admin_set_service.rb +3 -3
- data/app/services/hyrax/file_set_derivatives_service.rb +21 -2
- data/app/services/hyrax/file_set_type_service.rb +2 -5
- data/app/services/hyrax/listeners/acl_index_listener.rb +3 -1
- data/app/services/hyrax/listeners/active_fedora_acl_index_listener.rb +4 -1
- data/app/services/hyrax/listeners/batch_notification_listener.rb +3 -1
- data/app/services/hyrax/listeners/file_metadata_listener.rb +38 -0
- data/app/services/hyrax/listeners/file_set_lifecycle_listener.rb +6 -2
- data/app/services/hyrax/listeners/file_set_lifecycle_notification_listener.rb +6 -2
- data/app/services/hyrax/listeners/member_cleanup_listener.rb +26 -3
- data/app/services/hyrax/listeners/metadata_index_listener.rb +72 -11
- data/app/services/hyrax/listeners/object_lifecycle_listener.rb +9 -3
- data/app/services/hyrax/listeners/proxy_deposit_listener.rb +16 -8
- data/app/services/hyrax/listeners/trophy_cleanup_listener.rb +3 -0
- data/app/services/hyrax/listeners/workflow_listener.rb +3 -1
- data/app/services/hyrax/listeners.rb +8 -0
- data/app/services/hyrax/location_service.rb +33 -0
- data/app/services/hyrax/multiple_membership_checker.rb +44 -1
- data/app/services/hyrax/permission_manager.rb +4 -4
- data/app/services/hyrax/resource_visibility_propagator.rb +1 -1
- data/app/services/hyrax/restriction_service.rb +4 -0
- data/app/services/hyrax/simple_schema_loader.rb +5 -1
- data/app/services/hyrax/solr_query_service.rb +12 -7
- data/app/services/hyrax/solr_service.rb +1 -1
- data/app/services/hyrax/statistics/collections/over_time.rb +2 -1
- data/app/services/hyrax/statistics/users/over_time.rb +8 -5
- data/app/services/hyrax/statistics/works/over_time.rb +10 -0
- data/app/services/hyrax/thumbnail_path_service.rb +1 -1
- data/app/services/hyrax/work_uploads_handler.rb +2 -9
- data/app/services/hyrax/workflow/abstract_notification.rb +2 -2
- data/app/services/hyrax/workflow/action_taken_service.rb +16 -4
- data/app/services/hyrax/workflow/activate_object.rb +5 -4
- data/app/services/hyrax/workflow/changes_required_notification.rb +5 -4
- data/app/services/hyrax/workflow/deactivate_object.rb +7 -5
- data/app/services/hyrax/workflow/deposited_notification.rb +8 -4
- data/app/services/hyrax/workflow/grant_edit_to_depositor.rb +7 -3
- data/app/services/hyrax/workflow/grant_read_to_depositor.rb +10 -3
- data/app/services/hyrax/workflow/revoke_edit_from_depositor.rb +8 -2
- data/app/services/hyrax/workflow/workflow_action_service.rb +4 -1
- data/app/validators/hyrax/collection_membership_validator.rb +38 -0
- data/app/views/catalog/_index_header_list_hyrax_pcdm_collection.html.erb +4 -0
- data/app/views/hyrax/admin/admin_sets/_form.html.erb +1 -1
- data/app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb +2 -2
- data/app/views/hyrax/admin/admin_sets/_form_participants.html.erb +2 -2
- data/app/views/hyrax/admin/admin_sets/_form_visibility.html.erb +2 -2
- data/app/views/hyrax/admin/admin_sets/_form_workflow.erb +1 -1
- data/app/views/hyrax/admin/analytics/_date_range_form.html.erb +11 -0
- data/app/views/hyrax/admin/analytics/collection_reports/_custom_range.html.erb +39 -0
- data/app/views/hyrax/admin/analytics/collection_reports/_monthly_summary.html.erb +48 -0
- data/app/views/hyrax/admin/analytics/collection_reports/_summary.html.erb +55 -0
- data/app/views/hyrax/admin/analytics/collection_reports/_top_collections.html.erb +55 -0
- data/app/views/hyrax/admin/analytics/collection_reports/index.html.erb +70 -0
- data/app/views/hyrax/admin/analytics/collection_reports/show.html.erb +94 -0
- data/app/views/hyrax/admin/analytics/work_reports/_custom_range.html.erb +43 -0
- data/app/views/hyrax/admin/analytics/work_reports/_monthly_summary.html.erb +35 -0
- data/app/views/hyrax/admin/analytics/work_reports/_summary.html.erb +60 -0
- data/app/views/hyrax/admin/analytics/work_reports/_top_file_set_downloads.html.erb +33 -0
- data/app/views/hyrax/admin/analytics/work_reports/_top_works.html.erb +40 -0
- data/app/views/hyrax/admin/analytics/work_reports/_work_counts.html.erb +18 -0
- data/app/views/hyrax/admin/analytics/work_reports/_work_files.html.erb +41 -0
- data/app/views/hyrax/admin/analytics/work_reports/index.html.erb +77 -0
- data/app/views/hyrax/admin/analytics/work_reports/show.html.erb +90 -0
- data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
- data/app/views/hyrax/admin/stats/show.html.erb +1 -1
- data/app/views/hyrax/base/_form.html.erb +1 -1
- data/app/views/hyrax/base/_form_child_work_relationships.html.erb +1 -1
- data/app/views/hyrax/base/_relationships_parent_row.html.erb +0 -1
- data/app/views/hyrax/base/show.html.erb +6 -0
- data/app/views/hyrax/collections/show.html.erb +4 -0
- data/app/views/hyrax/dashboard/_repository_growth.html.erb +5 -5
- data/app/views/hyrax/dashboard/_resource_type_graph.html.erb +41 -0
- data/app/views/hyrax/dashboard/_sidebar.html.erb +4 -1
- data/app/views/hyrax/dashboard/_tabs.html.erb +11 -0
- data/app/views/hyrax/dashboard/_user_activity.html.erb +17 -23
- data/app/views/hyrax/dashboard/_user_activity_graph.html.erb +55 -0
- data/app/views/hyrax/dashboard/_visibility_graph.html.erb +31 -0
- data/app/views/hyrax/dashboard/_work_type_graph.html.erb +41 -0
- data/app/views/hyrax/dashboard/collections/_collection_title.html.erb +1 -1
- data/app/views/hyrax/dashboard/collections/_default_group.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_form.html.erb +24 -17
- data/app/views/hyrax/dashboard/collections/_form_discovery.html.erb +6 -3
- data/app/views/hyrax/dashboard/collections/_form_share.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_form_share_table.html.erb +3 -3
- data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb +1 -1
- data/app/views/hyrax/dashboard/show_admin.html.erb +24 -45
- data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +22 -0
- data/app/views/hyrax/dashboard/works/_default_group.html.erb +1 -1
- data/app/views/hyrax/dashboard/works/_list_works.html.erb +1 -1
- data/app/views/hyrax/file_sets/_actions.html.erb +4 -3
- data/app/views/hyrax/file_sets/show.html.erb +6 -0
- data/app/views/hyrax/homepage/index.html.erb +1 -1
- data/app/views/hyrax/my/_work_action_menu.html.erb +8 -9
- data/app/views/hyrax/my/collections/_default_group.html.erb +2 -2
- data/app/views/hyrax/my/collections/_list_collections.html.erb +2 -2
- data/app/views/hyrax/my/collections/_modal_collection_types_to_create.html.erb +1 -1
- data/app/views/hyrax/my/collections/index.html.erb +4 -3
- data/app/views/hyrax/my/works/_default_group.html.erb +1 -1
- data/app/views/hyrax/my/works/_list_works.html.erb +1 -2
- data/app/views/hyrax/my/works/index.html.erb +4 -2
- data/app/views/hyrax/stats/_downloads.html.erb +18 -0
- data/app/views/hyrax/stats/_pageviews.html.erb +18 -0
- data/app/views/hyrax/stats/work.html.erb +17 -9
- data/app/views/layouts/_head_tag_content.html.erb +7 -2
- data/app/views/layouts/hyrax/dashboard.html.erb +1 -0
- data/app/views/layouts/hyrax.html.erb +1 -0
- data/app/views/{_ga.html.erb → shared/_ga.html.erb} +3 -7
- data/app/views/shared/_matomo.html.erb +15 -0
- data/app/views/shared/_read_only.html.erb +5 -0
- data/chart/hyrax/Chart.yaml +2 -2
- data/chart/hyrax/README.md +22 -1
- data/chart/hyrax/templates/deployment.yaml +6 -0
- data/chart/hyrax/values.yaml +1 -1
- data/config/features.rb +3 -0
- data/config/i18n-tasks.yml +2 -2
- data/config/initializers/1_healthz.rb +1 -0
- data/config/initializers/listeners.rb +5 -5
- data/config/locales/hyrax.de.yml +200 -5
- data/config/locales/hyrax.en.yml +202 -21
- data/config/locales/hyrax.es.yml +204 -9
- data/config/locales/hyrax.fr.yml +196 -1
- data/config/locales/hyrax.it.yml +197 -2
- data/config/locales/hyrax.pt-BR.yml +196 -1
- data/config/locales/hyrax.zh.yml +196 -1
- data/config/metadata/basic_metadata.yaml +2 -0
- data/config/metadata/core_metadata.yaml +1 -1
- data/config/routes.rb +4 -0
- data/db/seeds.rb +1 -1
- data/docker-compose.yml +48 -42
- data/documentation/developing-your-hyrax-based-app.md +2 -2
- data/documentation/legacyREADME.md +1 -1
- data/hyrax.gemspec +4 -2
- data/lib/generators/hyrax/templates/catalog_controller.rb +3 -1
- data/lib/generators/hyrax/templates/config/analytics.yml +13 -7
- data/lib/generators/hyrax/templates/config/initializers/hyrax.rb +10 -13
- data/lib/generators/hyrax/templates/db/migrate/20211130181150_create_default_administrative_set.rb.erb +8 -0
- data/lib/generators/hyrax/work/templates/feature_spec.rb.erb +4 -2
- data/lib/generators/hyrax/work_resource/templates/indexer_spec.rb.erb +1 -0
- data/lib/hyrax/administrative_set_name.rb +18 -0
- data/lib/hyrax/collection_name.rb +8 -2
- data/lib/hyrax/configuration.rb +104 -4
- data/lib/hyrax/controlled_vocabularies/location.rb +9 -2
- data/lib/hyrax/controlled_vocabularies/resource_label_caching.rb +42 -0
- data/lib/hyrax/controlled_vocabularies.rb +1 -0
- data/lib/hyrax/engine.rb +7 -6
- data/lib/hyrax/form_fields.rb +1 -0
- data/lib/hyrax/publisher.rb +61 -0
- data/lib/hyrax/resource_sync/change_list_writer.rb +2 -2
- data/lib/hyrax/resource_sync/resource_list_writer.rb +2 -2
- data/lib/hyrax/specs/capybara.rb +1 -1
- data/lib/hyrax/specs/shared_specs/hydra_works.rb +13 -4
- data/lib/hyrax/specs/shared_specs/indexers.rb +120 -0
- data/lib/hyrax/transactions/admin_set_create.rb +23 -0
- data/lib/hyrax/transactions/admin_set_destroy.rb +22 -0
- data/lib/hyrax/transactions/admin_set_update.rb +21 -0
- data/lib/hyrax/transactions/collection_create.rb +25 -0
- data/lib/hyrax/transactions/collection_destroy.rb +22 -0
- data/lib/hyrax/transactions/collection_update.rb +21 -0
- data/lib/hyrax/transactions/container.rb +118 -17
- data/lib/hyrax/transactions/create_work.rb +3 -0
- data/lib/hyrax/transactions/destroy_work.rb +3 -0
- data/lib/hyrax/transactions/steps/add_to_collections.rb +13 -1
- data/lib/hyrax/transactions/steps/apply_collection_permission_template.rb +2 -0
- data/lib/hyrax/transactions/steps/apply_collection_type_permissions.rb +29 -0
- data/lib/hyrax/transactions/steps/apply_permission_template.rb +2 -0
- data/lib/hyrax/transactions/steps/apply_visibility.rb +2 -0
- data/lib/hyrax/transactions/steps/change_depositor.rb +46 -0
- data/lib/hyrax/transactions/steps/check_for_empty_admin_set.rb +36 -0
- data/lib/hyrax/transactions/steps/delete_access_control.rb +32 -0
- data/lib/hyrax/transactions/steps/delete_resource.rb +19 -3
- data/lib/hyrax/transactions/steps/destroy_work.rb +3 -1
- data/lib/hyrax/transactions/steps/ensure_permission_template.rb +2 -0
- data/lib/hyrax/transactions/steps/save.rb +37 -7
- data/lib/hyrax/transactions/steps/save_access_control.rb +2 -2
- data/lib/hyrax/transactions/steps/save_work.rb +3 -0
- data/lib/hyrax/transactions/steps/set_collection_type_gid.rb +35 -0
- data/lib/hyrax/transactions/steps/set_user_as_creator.rb +41 -0
- data/lib/hyrax/transactions/steps/update_work_members.rb +51 -0
- data/lib/hyrax/transactions/update_work.rb +4 -3
- data/lib/hyrax/transactions/work_create.rb +1 -1
- data/lib/hyrax/transactions/work_destroy.rb +2 -1
- data/lib/hyrax/transactions/work_update.rb +19 -0
- data/lib/hyrax/version.rb +1 -1
- data/lib/tasks/default_admin_set.rake +12 -11
- data/lib/tasks/regenerate_derivatives.rake +1 -1
- data/lib/wings/attribute_transformer.rb +5 -1
- data/lib/wings/setup.rb +18 -1
- data/lib/wings/valkyrie/persister.rb +16 -0
- data/lib/wings/valkyrie/query_service.rb +2 -1
- data/lib/wings/valkyrie/storage.rb +7 -1
- data/template.rb +1 -1
- data/vendor/assets/javascripts/morris/morris.min.js +1 -7
- data/vendor/assets/stylesheets/morris.js/0.5.1/morris.css +1 -1
- metadata +121 -17
- data/app/views/hyrax/dashboard/_repository_objects.html.erb +0 -28
data/config/locales/hyrax.en.yml
CHANGED
@@ -49,7 +49,7 @@ en:
|
|
49
49
|
cancel: Cancel
|
50
50
|
close: Close
|
51
51
|
collection:
|
52
|
-
new: New Collection
|
52
|
+
new: Add New Collection
|
53
53
|
delete: Delete
|
54
54
|
edit: Edit
|
55
55
|
less: Less
|
@@ -57,7 +57,7 @@ en:
|
|
57
57
|
refresh: Refresh
|
58
58
|
remove: Remove
|
59
59
|
work:
|
60
|
-
new: Add
|
60
|
+
new: Add New Work
|
61
61
|
submit:
|
62
62
|
admin_set:
|
63
63
|
create: Save
|
@@ -91,6 +91,7 @@ en:
|
|
91
91
|
note: Users granted a new role will only gain the role on works that are deposited after that role has been granted.
|
92
92
|
permission_destroy_errors:
|
93
93
|
admin_group: The repository administrators group cannot be removed
|
94
|
+
participants: The administrative set's participant rights failed to delete.
|
94
95
|
permission_update_errors:
|
95
96
|
error: Invalid update option for permission template.
|
96
97
|
no_date: A date is required for the selected release option.
|
@@ -178,6 +179,133 @@ en:
|
|
178
179
|
item_list_header: Works in This Set
|
179
180
|
show_actions:
|
180
181
|
confirm_delete: Are you sure you wish to delete this Administrative Set? This action cannot be undone.
|
182
|
+
analytics:
|
183
|
+
collection_reports:
|
184
|
+
index:
|
185
|
+
title: Collections Report
|
186
|
+
repo_summary: The repository contains
|
187
|
+
repo_summary_2: which collectively have had
|
188
|
+
views: page views
|
189
|
+
and: and
|
190
|
+
summary: Summary
|
191
|
+
monthly: Monthly
|
192
|
+
custom_range: Custom Range
|
193
|
+
downloads: downloads
|
194
|
+
report_header: Custom Collections Report
|
195
|
+
report_generated_on: This report was generated on
|
196
|
+
enable_analytics: Enable Analytics To View Reports
|
197
|
+
show:
|
198
|
+
title: Collection Report
|
199
|
+
summary: Summary
|
200
|
+
monthly: Monthly
|
201
|
+
custom_range: Custom Range
|
202
|
+
return_to_btn: Return to Collections Report
|
203
|
+
view_collection_btn: View Collection
|
204
|
+
created_by: Created by
|
205
|
+
last_updated: Last updated on
|
206
|
+
collection_type: Collection type
|
207
|
+
visibility: Visibility
|
208
|
+
summary:
|
209
|
+
subtitle: Summary of user activity
|
210
|
+
collection_home_page_views: Collection home page views
|
211
|
+
work_views: Views of works
|
212
|
+
work_downloads: Downloads of works
|
213
|
+
date_range: Date range
|
214
|
+
today: Today
|
215
|
+
this_week: This week
|
216
|
+
this_month: This month
|
217
|
+
this_year: This year
|
218
|
+
all_time: All time
|
219
|
+
monthly_summary:
|
220
|
+
monthly_subtitle: Month-by-month status for last 12 months through
|
221
|
+
collection_views: Collection home page views
|
222
|
+
work_views: Views of works
|
223
|
+
work_downloads: Downloads of works
|
224
|
+
custom_range:
|
225
|
+
date_range_heading: Customize Date Range
|
226
|
+
summary_heading: Summary of user activity
|
227
|
+
collection_home_page_views: Collection home page views
|
228
|
+
work_views: Views of works
|
229
|
+
work_downloads: Downloads of works
|
230
|
+
top_collections:
|
231
|
+
top_collections: Top Collections
|
232
|
+
collection_title: Collection Title
|
233
|
+
works_in_collection_views: Works In This Collection Views
|
234
|
+
file_downloads_in_collection: File Set Downloads In This Collection
|
235
|
+
collection_page_views: Collection Page Views
|
236
|
+
deleted: Collection deleted
|
237
|
+
export: Export
|
238
|
+
work_reports:
|
239
|
+
index:
|
240
|
+
title: Works Report
|
241
|
+
subtitle: Summary of user activity
|
242
|
+
repo_summary: in this repository which collectively have had
|
243
|
+
works: works
|
244
|
+
views: views
|
245
|
+
and: and
|
246
|
+
access_to: You have access to
|
247
|
+
summary: Summary
|
248
|
+
monthly: Monthly
|
249
|
+
custom_range: Custom Range
|
250
|
+
downloads: downloads
|
251
|
+
enable_analytics: Enable Analytics To View Reports
|
252
|
+
report_generated_on: This report was generated on
|
253
|
+
show:
|
254
|
+
title: Work Report
|
255
|
+
summary: Summary
|
256
|
+
monthly: Monthly
|
257
|
+
custom_range: Custom Range
|
258
|
+
return_to_btn: Return to Works Report
|
259
|
+
view_work_btn: View Work
|
260
|
+
deposited_by: Deposited by
|
261
|
+
work_type: Work type
|
262
|
+
resource_type: Resource type
|
263
|
+
status: Status
|
264
|
+
visibility: Visibility
|
265
|
+
work_files:
|
266
|
+
title: Files
|
267
|
+
total_downloads: Total Downloads
|
268
|
+
work_counts:
|
269
|
+
total_size: total size
|
270
|
+
child_works: child works
|
271
|
+
files: files
|
272
|
+
summary:
|
273
|
+
subtitle: Summary of user activity
|
274
|
+
unique_visitors: Unique Visitors
|
275
|
+
page_views: Page Views
|
276
|
+
file_downloads: File Downloads
|
277
|
+
date_range: Date range
|
278
|
+
today: Today
|
279
|
+
this_week: This week
|
280
|
+
this_month: This month
|
281
|
+
this_year: This year
|
282
|
+
all_time: All time
|
283
|
+
monthly_summary:
|
284
|
+
monthly_subtitle: Month-by-month status for the last 12 months through
|
285
|
+
page_views: Page Views
|
286
|
+
file_downloads: File Downloads
|
287
|
+
top_works:
|
288
|
+
top_works: Top Works
|
289
|
+
work_title: Work Title
|
290
|
+
work_views: Work Page Views
|
291
|
+
file_downloads: File Downloads
|
292
|
+
export: Export
|
293
|
+
top_file_set_downloads:
|
294
|
+
top_downloads: Top File Downloads
|
295
|
+
file_name: File Name
|
296
|
+
file: File
|
297
|
+
file_downloads: File Downloads
|
298
|
+
custom_range:
|
299
|
+
summary_heading: Summary of user activity
|
300
|
+
unique_visitors: Unique Visitors
|
301
|
+
page_views: Page Views
|
302
|
+
file_downloads: File Downloads
|
303
|
+
date_range_form:
|
304
|
+
date_range_heading: Customize Date Range
|
305
|
+
start_date: Start Date
|
306
|
+
end_date: End Date
|
307
|
+
set_date_range: Set Report Date Range
|
308
|
+
reset_date_range: Reset Date Range
|
181
309
|
appearances:
|
182
310
|
show:
|
183
311
|
header: Appearance
|
@@ -268,13 +396,17 @@ en:
|
|
268
396
|
collections: Collections
|
269
397
|
configuration: Configuration
|
270
398
|
content_blocks: Content Blocks
|
399
|
+
dashboard: Dashboard
|
271
400
|
delete_all: Delete All
|
272
401
|
notifications: Notifications
|
273
402
|
pages: Pages
|
274
403
|
profile: Profile
|
275
404
|
repository_objects: Repository Contents
|
276
405
|
settings: Settings
|
277
|
-
statistics:
|
406
|
+
statistics: Statistics
|
407
|
+
analytics: Analytics
|
408
|
+
works_report: Works Report
|
409
|
+
collections_report: Collections Report
|
278
410
|
tasks: Tasks
|
279
411
|
technical: Features
|
280
412
|
transfers: Transfers
|
@@ -561,6 +693,7 @@ en:
|
|
561
693
|
instructions: Each file will be uploaded to a separate new work resulting in one work per uploaded file.
|
562
694
|
upload_type_instructions: To create a single work for all the files, go to
|
563
695
|
new:
|
696
|
+
breadcrumb: Create Batch of Works
|
564
697
|
header: Batch Create New Works
|
565
698
|
in_collections: These Works in Collections
|
566
699
|
in_other_works: This Work in Other Works
|
@@ -622,13 +755,6 @@ en:
|
|
622
755
|
select_heading: 'Select the collection to add your files to:'
|
623
756
|
title: Add to collection
|
624
757
|
update: Save changes
|
625
|
-
collection_type:
|
626
|
-
admin_set_title: Admin Set
|
627
|
-
default_title: User Collection
|
628
|
-
collection_types:
|
629
|
-
create_service:
|
630
|
-
admin_set_description: An aggregation of works that is intended to help with administrative control. Admin Sets provide a way of defining behaviors and policies around a set of works.
|
631
|
-
default_description: A User Collection can be created by any user to organize their works.
|
632
758
|
collections:
|
633
759
|
search_form:
|
634
760
|
button_label: Go
|
@@ -650,6 +776,13 @@ en:
|
|
650
776
|
number_of_results_to_display_per_page: Number of results to display per page
|
651
777
|
results_per_page: 'Results per page:'
|
652
778
|
sort_by_html: "<span>Sort by:</span>"
|
779
|
+
collection_type:
|
780
|
+
admin_set_title: Admin Set
|
781
|
+
default_title: User Collection
|
782
|
+
collection_types:
|
783
|
+
create_service:
|
784
|
+
admin_set_description: An aggregation of works that is intended to help with administrative control. Admin Sets provide a way of defining behaviors and policies around a set of works.
|
785
|
+
default_description: A User Collection can be created by any user to organize their works.
|
653
786
|
contact_form:
|
654
787
|
button_label: Send
|
655
788
|
email_label: Your Email
|
@@ -693,16 +826,23 @@ en:
|
|
693
826
|
authorize_proxies: Authorize Proxies
|
694
827
|
breadcrumbs:
|
695
828
|
admin: Dashboard
|
829
|
+
collections_report: Collections Report
|
830
|
+
works_report: Works Report
|
696
831
|
collection_type_actions:
|
697
832
|
close: Close
|
698
833
|
create_collection: Create collection
|
699
834
|
select_type_of_collection: Select type of collection
|
700
835
|
collections:
|
836
|
+
collection_title: Collection Title
|
837
|
+
last_updated: Last updated
|
838
|
+
works: Works
|
839
|
+
files: Files
|
701
840
|
edit:
|
702
841
|
header: 'Edit %{type_title}: %{title}'
|
703
842
|
form:
|
704
843
|
permission_update_errors:
|
705
844
|
error: Invalid update option for permission template.
|
845
|
+
sharing: The collection's sharing options failed to update.
|
706
846
|
permission_update_notices:
|
707
847
|
participants: The collection's sharing options have been updated.
|
708
848
|
sharing: The collection's sharing options have been updated.
|
@@ -817,17 +957,19 @@ en:
|
|
817
957
|
creator: 'Creator:'
|
818
958
|
depositor: 'Depositor:'
|
819
959
|
edit_access: 'Edit Access:'
|
960
|
+
title: 'Collections'
|
961
|
+
recent_activity: Recent activity
|
820
962
|
sort_and_per_page:
|
821
963
|
show_par_page_html: Show %{select} per page
|
822
964
|
sort_by: 'Sort By:'
|
823
965
|
work_action_menu:
|
824
|
-
delete_work: Delete
|
966
|
+
delete_work: Delete work
|
825
967
|
deleting_from_work: Deleting a work from %{application_name} is permanent. Click OK to delete this work from %{application_name}, or Cancel to cancel this operation
|
826
|
-
edit_work: Edit
|
968
|
+
edit_work: Edit work
|
827
969
|
press_to: Press to
|
828
970
|
remove_from_collection: Remove from collection
|
829
971
|
select_an_action: Select an action
|
830
|
-
transfer_ownership_of_work: Transfer
|
972
|
+
transfer_ownership_of_work: Transfer ownership of work
|
831
973
|
create_work: Create Work
|
832
974
|
current_proxies: Current Proxies
|
833
975
|
delete_notification: Delete Notification
|
@@ -859,24 +1001,25 @@ en:
|
|
859
1001
|
delete_collection_deny: You do not have sufficient privileges to delete this collection.
|
860
1002
|
delete_collections: Delete collections
|
861
1003
|
delete_collections_deny: You do not have sufficient privileges to delete one or more collections.
|
862
|
-
delete_work: Delete
|
1004
|
+
delete_work: Delete work
|
863
1005
|
edit_admin_set: Edit collection
|
864
1006
|
edit_collection: Edit collection
|
865
1007
|
edit_collection_deny: You do not have sufficient privileges to edit this collection.
|
866
1008
|
edit_selected: Edit Selected
|
867
|
-
edit_work: Edit
|
868
|
-
highlight: Highlight
|
1009
|
+
edit_work: Edit work
|
1010
|
+
highlight: Highlight work on profile
|
869
1011
|
members_no_access: You do not have sufficient privileges to any of the selected members
|
870
1012
|
nesting_not_allowed: Collections of this type do not support nesting.
|
871
1013
|
nesting_permission_denied: You do not have sufficient privileges to add this collection to another collection.
|
872
1014
|
select: Select
|
873
1015
|
select_all: Select Current Page
|
874
1016
|
select_none: Select None
|
875
|
-
transfer: Transfer
|
876
|
-
unhighlight: Unhighlight
|
1017
|
+
transfer: Transfer ownership of work
|
1018
|
+
unhighlight: Unhighlight work
|
877
1019
|
view_admin_set: View collection
|
878
1020
|
view_collection: View collection
|
879
1021
|
work_confirmation: Deleting a work from %{application_name} is permanent. Click OK to delete this work from %{application_name}, or Cancel to cancel this operation
|
1022
|
+
collections: Collections
|
880
1023
|
collection_list:
|
881
1024
|
description: 'Description:'
|
882
1025
|
edit_access: 'Edit Access:'
|
@@ -886,7 +1029,6 @@ en:
|
|
886
1029
|
manage: Manage
|
887
1030
|
view: View
|
888
1031
|
users: 'Users:'
|
889
|
-
collections: Collections
|
890
1032
|
facet_label:
|
891
1033
|
collections: 'Filter collections:'
|
892
1034
|
highlighted: 'Filter highlights:'
|
@@ -952,13 +1094,20 @@ en:
|
|
952
1094
|
repository_growth:
|
953
1095
|
collections: Collections
|
954
1096
|
date: Date
|
955
|
-
|
956
|
-
subtitle: Past 90 days
|
1097
|
+
works: Works
|
957
1098
|
title: Repository Growth
|
958
1099
|
repository_objects:
|
959
1100
|
status: Current Status
|
960
1101
|
subtitle: Current Status
|
961
1102
|
title: Repository Objects
|
1103
|
+
resource_type_graph:
|
1104
|
+
resource_type: Resource Type
|
1105
|
+
title: Resource Types
|
1106
|
+
count: Count
|
1107
|
+
work_type_graph:
|
1108
|
+
work_type: Work Type
|
1109
|
+
title: Work Types
|
1110
|
+
count: Count
|
962
1111
|
show_admin:
|
963
1112
|
current_registered_users: Current
|
964
1113
|
new_visitors: New Visitors
|
@@ -966,6 +1115,7 @@ en:
|
|
966
1115
|
registered_users: Registered Users
|
967
1116
|
returning_visitors: Returning Visitors
|
968
1117
|
total_visitors: Total Visitors
|
1118
|
+
graph_reports: Customized Graph Reports
|
969
1119
|
stats:
|
970
1120
|
collections: Collections created
|
971
1121
|
file_downloads: Download
|
@@ -974,6 +1124,8 @@ en:
|
|
974
1124
|
heading: Your Statistics
|
975
1125
|
joined_on: Joined on
|
976
1126
|
works: Works created
|
1127
|
+
tabs:
|
1128
|
+
admin_sets: Admin Sets
|
977
1129
|
title: Dashboard
|
978
1130
|
transfer_of_ownership: Transfers of Ownership
|
979
1131
|
transfer_works_link: Select works to transfer
|
@@ -982,10 +1134,23 @@ en:
|
|
982
1134
|
user_activity:
|
983
1135
|
date: Date
|
984
1136
|
new_users: New Users
|
1137
|
+
registered_users: Registered Users
|
1138
|
+
returning_visitors: Returning Visitors
|
1139
|
+
new_visitors: New Visitors
|
985
1140
|
subtitle: New user signups
|
986
1141
|
title: User Activity
|
1142
|
+
total_visitors: Total Visitors
|
1143
|
+
user_summary: User Summary
|
1144
|
+
user_activity_graph:
|
1145
|
+
date: Date
|
1146
|
+
new_users: New Users
|
1147
|
+
new_visits: New Visits
|
1148
|
+
return_visits: Return Visits
|
1149
|
+
total_visits: Total Visits
|
987
1150
|
user_notifications: User Notifications
|
988
1151
|
view_files: View Files
|
1152
|
+
visibility_graph:
|
1153
|
+
visibility: Visibility
|
989
1154
|
document_language: en
|
990
1155
|
edit_profile: Edit Profile
|
991
1156
|
embargoes:
|
@@ -1305,6 +1470,7 @@ en:
|
|
1305
1470
|
owner:
|
1306
1471
|
edit: Edit access
|
1307
1472
|
read: View/Download
|
1473
|
+
read_only: The repository is in read-only mode for maintenance. No submissions or edits can be made at this time.
|
1308
1474
|
search:
|
1309
1475
|
button:
|
1310
1476
|
html: <span class="glyphicon glyphicon-search" aria-hidden="true"></span> Go
|
@@ -1357,6 +1523,15 @@ en:
|
|
1357
1523
|
link_expired_not_found: Single Use Link Expired or Not Found
|
1358
1524
|
link_not_found: Single use link Not Found
|
1359
1525
|
sort_label: Sort the listing of items
|
1526
|
+
stats:
|
1527
|
+
work:
|
1528
|
+
header: Work Analytics
|
1529
|
+
pageviews: Pageviews
|
1530
|
+
downloads: Downloads
|
1531
|
+
pageviews:
|
1532
|
+
pageviews: Page Views
|
1533
|
+
downloads:
|
1534
|
+
downloads: Downloads
|
1360
1535
|
static:
|
1361
1536
|
mendeley:
|
1362
1537
|
contact_form: Contact Form
|
@@ -1644,3 +1819,9 @@ en:
|
|
1644
1819
|
member_of_collection_ids: Select a collection…
|
1645
1820
|
required:
|
1646
1821
|
html: <span class="label label-info required-tag">required</span>
|
1822
|
+
total_view:
|
1823
|
+
one: This work has 1 total view
|
1824
|
+
other: This work has %{count} total views
|
1825
|
+
download:
|
1826
|
+
one: and 1 download
|
1827
|
+
other: and %{count} downloads
|