hyrax 3.2.0 → 3.4.1
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 +3 -6
- data/.dassie/.env +1 -1
- data/.dassie/Gemfile +7 -3
- 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/.dassie/db/seeds.rb +70 -15
- data/.env +7 -4
- data/.github/release.yml +26 -0
- 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 +2 -1
- data/README.md +37 -0
- data/app/actors/hyrax/actors/file_actor.rb +6 -4
- 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/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/controller.rb +43 -0
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +83 -59
- data/app/controllers/hyrax/admin/admin_sets_controller.rb +105 -19
- 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 +12 -19
- 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 +4 -1
- data/app/controllers/hyrax/dashboard/collections_controller.rb +34 -16
- data/app/controllers/hyrax/dashboard_controller.rb +8 -0
- data/app/controllers/hyrax/stats_controller.rb +3 -1
- data/app/forms/hyrax/forms/administrative_set_form.rb +19 -1
- data/app/forms/hyrax/forms/batch_edit_form.rb +1 -1
- data/app/forms/hyrax/forms/dashboard/nest_collection_form.rb +21 -6
- data/app/forms/hyrax/forms/pcdm_collection_form.rb +4 -0
- data/app/forms/hyrax/forms/permission_template_form.rb +17 -9
- data/app/forms/hyrax/forms/resource_form.rb +9 -5
- data/app/helpers/hyrax/collections_helper.rb +14 -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 +8 -2
- 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 +3 -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 +2 -2
- data/app/models/collection_branding_info.rb +8 -6
- data/app/models/concerns/hyrax/ability.rb +26 -5
- 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 +9 -3
- data/app/models/file_download_stat.rb +4 -4
- data/app/models/hyrax/administrative_set.rb +36 -1
- 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_template.rb +11 -5
- data/app/models/hyrax/statistic.rb +31 -4
- data/app/models/hyrax/work.rb +91 -0
- data/app/models/proxy_deposit_request.rb +1 -1
- 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 +2 -2
- 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 +9 -2
- data/app/presenters/hyrax/work_usage.rb +1 -0
- data/app/search_builders/hyrax/README.md +1 -1
- 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/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 +94 -48
- 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/collections/nested_collection_query_service.rb +32 -15
- 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 +3 -0
- 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 +3 -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 +48 -3
- 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/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/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/utils/hyrax/data_destroyers/collection_branding_destroyer.rb +29 -0
- data/app/utils/hyrax/data_destroyers/collection_types_destroyer.rb +26 -0
- data/app/utils/hyrax/data_destroyers/default_admin_set_id_cache_destroyer.rb +26 -0
- data/app/utils/hyrax/data_destroyers/featured_works_destroyer.rb +27 -0
- data/app/utils/hyrax/data_destroyers/permission_templates_destroyer.rb +30 -0
- data/app/utils/hyrax/data_destroyers/repository_metadata_destroyer.rb +42 -0
- data/app/utils/hyrax/data_destroyers/stats_destroyer.rb +33 -0
- data/app/utils/hyrax/data_maintenance.rb +51 -0
- data/app/utils/hyrax/required_data_seeder.rb +21 -0
- data/app/utils/hyrax/required_data_seeders/collection_seeder.rb +26 -0
- data/app/utils/hyrax/required_data_seeders/collection_type_seeder.rb +36 -0
- data/app/utils/hyrax/test_data_seeder.rb +24 -0
- data/app/utils/hyrax/test_data_seeders/collection_seeder.rb +91 -0
- data/app/utils/hyrax/test_data_seeders/collection_type_seeder.rb +72 -0
- data/app/utils/hyrax/test_data_seeders/user_seeder.rb +52 -0
- 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_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/_default_group.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_form.html.erb +23 -16
- 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/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/my/_facet_pagination.html.erb +12 -9
- 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/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/{_ga.html.erb → shared/_ga.html.erb} +3 -7
- data/app/views/shared/_matomo.html.erb +15 -0
- data/chart/hyrax/Chart.yaml +2 -2
- data/chart/hyrax/README.md +22 -1
- data/chart/hyrax/values.yaml +1 -1
- data/config/i18n-tasks.yml +2 -2
- data/config/initializers/listeners.rb +5 -6
- data/config/locales/hyrax.de.yml +200 -5
- data/config/locales/hyrax.en.yml +201 -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/docker-compose.yml +48 -42
- data/documentation/developing-your-hyrax-based-app.md +2 -2
- data/documentation/legacyREADME.md +1 -1
- data/hyrax.gemspec +3 -1
- data/lib/generators/hyrax/templates/config/analytics.yml +13 -7
- data/lib/generators/hyrax/templates/config/initializers/hyrax.rb +0 -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 +3 -1
- data/lib/hyrax/administrative_set_name.rb +18 -0
- data/lib/hyrax/collection_name.rb +2 -0
- data/lib/hyrax/configuration.rb +77 -5
- 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/publisher.rb +49 -0
- data/lib/hyrax/schema.rb +16 -13
- data/lib/hyrax/specs/capybara.rb +1 -1
- data/lib/hyrax/specs/shared_specs/hydra_works.rb +11 -4
- data/lib/hyrax/specs/shared_specs/indexers.rb +117 -3
- 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_destroy.rb +22 -0
- data/lib/hyrax/transactions/collection_update.rb +3 -2
- data/lib/hyrax/transactions/container.rb +97 -22
- data/lib/hyrax/transactions/create_work.rb +3 -0
- data/lib/hyrax/transactions/destroy_work.rb +3 -0
- data/lib/hyrax/transactions/steps/apply_collection_permission_template.rb +2 -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 +24 -6
- 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_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/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 +18 -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 +124 -11
- data/app/views/hyrax/dashboard/_repository_objects.html.erb +0 -28
@@ -1,7 +1,7 @@
|
|
1
1
|
<h3><%= t(".#{access}.title") %></h3>
|
2
2
|
<p><%= t(".#{access}.help") %></p>
|
3
|
-
<p><%= t(".#{access}.help_with_works", type_title: @
|
4
|
-
<% if @form.
|
3
|
+
<p><%= t(".#{access}.help_with_works", type_title: @collection_type.title) if @collection_type.share_applies_to_new_works? && access != 'depositors' %></p>
|
4
|
+
<% if collection_permission_template_form_for(form: @form).access_grants.select(&filter).any? %>
|
5
5
|
<table class="table table-striped share-status">
|
6
6
|
<thead>
|
7
7
|
<tr>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
</tr>
|
12
12
|
</thead>
|
13
13
|
<tbody>
|
14
|
-
<% @form.
|
14
|
+
<% collection_permission_template_form_for(form: @form).access_grants.select(&filter).each do |g| %>
|
15
15
|
<tr>
|
16
16
|
<td data-agent="<%= g.agent_id %>"><%= g.label %></td>
|
17
17
|
<td><%= g.agent_type.titleize %></td>
|
@@ -61,9 +61,9 @@
|
|
61
61
|
<td class="collection_type">
|
62
62
|
<%= collection_presenter.collection_type_badge %>
|
63
63
|
</td>
|
64
|
-
<td><%= collection_presenter.
|
64
|
+
<td class="date"><%= collection_presenter.modified_date %></td>
|
65
65
|
<td><%= collection_presenter.total_viewable_items %></td>
|
66
|
-
<td
|
66
|
+
<td><%= collection_presenter.permission_badge %> </td>
|
67
67
|
<td>
|
68
68
|
<% if collection_presenter.solr_document.admin_set? %>
|
69
69
|
<%= render '/hyrax/my/admin_set_action_menu', admin_set_presenter: collection_presenter %>
|
@@ -2,71 +2,50 @@
|
|
2
2
|
<h1><%= t("hyrax.dashboard.title") %></h1>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
+
<% if Hyrax.config.analytics? %>
|
5
6
|
<div class="row">
|
6
|
-
<div class="col-md-
|
7
|
+
<div class="col-md-12">
|
7
8
|
<div class="panel panel-default">
|
8
9
|
<div class="panel-heading">
|
9
|
-
<h2 class="panel-title
|
10
|
+
<h2 class="panel-title"><%= t(".graph_reports") %>:</h2>
|
11
|
+
<%= params[:start_date].present? ? params[:start_date].to_date : 1.month.ago.beginning_of_day.to_date %> -
|
12
|
+
<%= params[:end_date].present? ? params[:end_date].to_date : Time.zone.now.end_of_day.to_date %>
|
10
13
|
</div>
|
11
|
-
<div class="panel-body
|
12
|
-
<%=
|
13
|
-
<div class="h3"><%= @presenter.user_count %></div>
|
14
|
+
<div class="panel-body">
|
15
|
+
<%= render "hyrax/admin/analytics/date_range_form", redirect_path: hyrax.dashboard_path %>
|
14
16
|
</div>
|
15
17
|
</div>
|
16
18
|
</div>
|
17
|
-
|
18
|
-
<div class="col-md-3">
|
19
|
-
<div class="panel panel-default">
|
20
|
-
<div class="panel-heading">
|
21
|
-
<h2 class="panel-title text-center"><%= t('.total_visitors') %></h2>
|
22
|
-
</div>
|
23
|
-
<div class="panel-body text-center"><%= t('.past_30_days') %>
|
24
|
-
<div class="h3">n/a</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<div class="col-md-3">
|
30
|
-
<div class="panel panel-default">
|
31
|
-
<div class="panel-heading">
|
32
|
-
<h2 class="panel-title text-center"><%= t('.returning_visitors') %></h2>
|
33
|
-
</div>
|
34
|
-
<div class="panel-body text-center"><%= t('.past_30_days') %>
|
35
|
-
<div class="h3">n/a</div>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
|
40
|
-
<div class="col-md-3">
|
41
|
-
<div class="panel panel-default">
|
42
|
-
<div class="panel-heading">
|
43
|
-
<h2 class="panel-title text-center"><%= t('.new_visitors') %></h2>
|
44
|
-
</div>
|
45
|
-
<div class="panel-body text-center"><%= t('.past_30_days') %>
|
46
|
-
<div class="h3">n/a</div>
|
47
|
-
</div>
|
48
|
-
</div>
|
49
|
-
</div>
|
50
19
|
</div>
|
51
20
|
|
52
|
-
<%= render 'admin_sets' %>
|
53
|
-
|
54
21
|
<div class="row">
|
55
|
-
<div class="col-md-
|
22
|
+
<div class="col-md-12">
|
56
23
|
<div class="panel panel-default">
|
57
24
|
<%= render 'user_activity' %>
|
58
25
|
</div>
|
59
26
|
</div>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
60
29
|
|
61
|
-
|
30
|
+
<div class="row">
|
31
|
+
<div class="col-md-12">
|
62
32
|
<div class="panel panel-default">
|
63
33
|
<%= render 'repository_growth' %>
|
64
34
|
</div>
|
65
35
|
</div>
|
36
|
+
</div>
|
66
37
|
|
38
|
+
<div class="row">
|
67
39
|
<div class="col-md-4">
|
68
|
-
|
69
|
-
|
70
|
-
|
40
|
+
<%= render 'visibility_graph' %>
|
41
|
+
</div>
|
42
|
+
<div class="col-md-4">
|
43
|
+
<%= render 'work_type_graph' %>
|
44
|
+
</div>
|
45
|
+
<div class="col-md-4">
|
46
|
+
<%= render "resource_type_graph" %>
|
71
47
|
</div>
|
72
48
|
</div>
|
49
|
+
<br>
|
50
|
+
<br>
|
51
|
+
<%= render 'tabs' %>
|
@@ -32,4 +32,26 @@
|
|
32
32
|
<% end %>
|
33
33
|
<% end %>
|
34
34
|
|
35
|
+
<% if current_ability.can_create_any_work? %>
|
36
|
+
<li>
|
37
|
+
<%= menu.collapsable_section t('hyrax.admin.sidebar.analytics'),
|
38
|
+
icon_class: "fa fa-pie-chart",
|
39
|
+
id: 'collapseAnalytics',
|
40
|
+
open: menu.analytics_reporting_section? do %>
|
41
|
+
<% if can? :read, :admin_dashboard %>
|
42
|
+
<%= menu.nav_link(hyrax.admin_analytics_collection_reports_path,
|
43
|
+
onclick: "dontChangeAccordion(event);") do %>
|
44
|
+
<span class="fa fa-folder-open" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collections_report') %></span>
|
45
|
+
<% end %>
|
46
|
+
<% end %>
|
47
|
+
|
48
|
+
<%= menu.nav_link(hyrax.admin_analytics_work_reports_path,
|
49
|
+
onclick: "dontChangeAccordion(event);") do %>
|
50
|
+
<span class="fa fa-file" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.works_report') %></span>
|
51
|
+
<% end %>
|
52
|
+
|
53
|
+
<% end %>
|
54
|
+
</li>
|
55
|
+
<% end %>
|
56
|
+
|
35
57
|
<%= render 'hyrax/dashboard/sidebar/menu_partials', menu: menu, section: :activity %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<tr>
|
6
6
|
<th class="check-all"><label for="check_all" class="sr-only"><%= t("hyrax.dashboard.my.sr.check_all_label") %></label><%= render_check_all %></th>
|
7
7
|
<th><%= t("hyrax.dashboard.my.heading.title") %></th>
|
8
|
-
<th class="date text-center"><%= t("hyrax.dashboard.my.heading.
|
8
|
+
<th class="date text-center"><%= t("hyrax.dashboard.my.heading.date_modified") %></th>
|
9
9
|
<th class="text-center"><%= t("blacklight.search.fields.facet.suppressed_bsi") %></th>
|
10
10
|
<th class="text-center"><%= t("hyrax.dashboard.my.heading.work.visibility") %></th>
|
11
11
|
<th class="text-center"><%= t("hyrax.dashboard.my.heading.action") %></th>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</div>
|
28
28
|
</td>
|
29
29
|
|
30
|
-
<td class=
|
30
|
+
<td class="date text-center"><%= document.date_modified %></td>
|
31
31
|
<td class='workflow-state text-center'><%= presenter.workflow.state_label %></td>
|
32
32
|
<td class='text-center'><%= render_visibility_link document %></td>
|
33
33
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% if (can?(:download, file_set.id) || can?(:destroy, file_set.id) || can?(:edit, file_set.id)) && !workflow_restriction?(
|
1
|
+
<% if (can?(:download, file_set.id) || can?(:destroy, file_set.id) || can?(:edit, file_set.id)) && !workflow_restriction?(@parent) %>
|
2
2
|
<% if can?(:download, file_set.id) && !(can?(:edit, file_set.id) || can?(:destroy, file_set.id)) %>
|
3
3
|
<%= link_to t('.download'),
|
4
4
|
hyrax.download_path(file_set),
|
@@ -6,7 +6,7 @@
|
|
6
6
|
title: t('.download_title', file_set: file_set),
|
7
7
|
target: "_blank",
|
8
8
|
id: "file_download",
|
9
|
-
data: { label: file_set.id } %>
|
9
|
+
data: { label: file_set.id, work_id: @presenter.id, collection_ids: @presenter.member_of_collection_ids } %>
|
10
10
|
<% else %>
|
11
11
|
<div class="btn-group">
|
12
12
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= file_set.id %>" aria-haspopup="true" aria-expanded="false">
|
@@ -43,7 +43,8 @@
|
|
43
43
|
title: t('.download_title', file_set: file_set),
|
44
44
|
target: "_blank",
|
45
45
|
id: "file_download",
|
46
|
-
|
46
|
+
class: "download",
|
47
|
+
data: { label: file_set.id, work_id: @presenter.id, collection_ids: @presenter.member_of_collection_ids } %>
|
47
48
|
</li>
|
48
49
|
<% end %>
|
49
50
|
|
@@ -17,3 +17,9 @@
|
|
17
17
|
</div><!-- /columns second -->
|
18
18
|
</div> <!-- /.row -->
|
19
19
|
</div><!-- /.container-fluid -->
|
20
|
+
|
21
|
+
<% @presenter.member_of_collection_ids.each do |collection_id| %>
|
22
|
+
<span class='hide analytics-event' data-category="file-set-in-collection" data-action="file-set-in-collection-view" data-name="<%= collection_id %>" >
|
23
|
+
<% end %>
|
24
|
+
<span class='hide analytics-event' data-category="file-set-in-work" data-action="file-set-in-work-view" data-name="<%= @presenter.parent.id %>" >
|
25
|
+
<span class='hide analytics-event' data-category="file-set" data-action="file-set-view" data-name="<%= @presenter.id %>" >
|
@@ -1,13 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<%=
|
1
|
+
<div class="prev_next_links btn-group pull-left">
|
2
|
+
<% if @pagination.first_page? %>
|
3
|
+
<span class="disabled btn btn-disabled"><%= raw(t('views.pagination.previous')) %></span>
|
4
|
+
<% else %>
|
5
|
+
<%= link_to_previous_page @pagination, raw(t('views.pagination.previous')), route_set: hyrax, params: search_state.to_h, param_name: Blacklight::Solr::FacetPaginator.request_keys[:page], class: 'btn btn-link', data: {ajax_modal: "preserve"} %>
|
6
|
+
<% end %>
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
<% if @pagination.last_page? %>
|
9
|
+
<span class="disabled btn btn-disabled"><%= raw(t('views.pagination.next')) %></span>
|
10
|
+
<% else %>
|
11
|
+
<%= link_to_next_page @pagination, raw(t('views.pagination.next')), route_set: hyrax, params: search_state.to_h, param_name: Blacklight::Solr::FacetPaginator.request_keys[:page], class: 'btn btn-link', data: {ajax_modal: "preserve"} %>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
11
14
|
|
12
15
|
<div class="sort_options btn-group pull-right">
|
13
16
|
<% if @pagination.sort == 'index' -%>
|
@@ -12,34 +12,33 @@
|
|
12
12
|
|
13
13
|
<% if can? :edit, document.id %>
|
14
14
|
<li role="menuitem" tabindex="-1">
|
15
|
-
<%= link_to [main_app, :edit, document]
|
16
|
-
|
17
|
-
|
15
|
+
<%= link_to [main_app, :edit, document],
|
16
|
+
id: 'action-edit-work' do %>
|
17
|
+
<%= t("hyrax.dashboard.my.action.edit_work") %>
|
18
18
|
<% end %>
|
19
19
|
</li>
|
20
20
|
|
21
21
|
<li role="menuitem" tabindex="-1">
|
22
22
|
<%= link_to [main_app, document],
|
23
23
|
method: :delete,
|
24
|
+
id: 'action-delete-work',
|
24
25
|
data: {
|
25
26
|
confirm: t("hyrax.dashboard.my.action.work_confirmation", application_name: application_name) } do %>
|
26
|
-
|
27
|
-
<span> <%= t("hyrax.dashboard.my.action.delete_work") %> </span>
|
27
|
+
<%= t("hyrax.dashboard.my.action.delete_work") %>
|
28
28
|
<% end %>
|
29
29
|
</li>
|
30
30
|
<% end %>
|
31
31
|
|
32
32
|
<li role="menuitem" tabindex="-1">
|
33
33
|
<%= display_trophy_link(current_user, document.id) do |text| %>
|
34
|
-
|
34
|
+
<%= text %>
|
35
35
|
<% end %>
|
36
36
|
</li>
|
37
37
|
|
38
38
|
<% if can? :transfer, document.id %>
|
39
39
|
<li role="menuitem" tabindex="-1">
|
40
|
-
<%= link_to(hyrax.new_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: t("hyrax.dashboard.my.action.transfer")) do %>
|
41
|
-
|
42
|
-
<span> <%= t("hyrax.dashboard.my.action.transfer") %> </span>
|
40
|
+
<%= link_to(hyrax.new_work_transfer_path(document.id), id: 'action-transfer-work', class: 'itemicon itemtransfer', title: t("hyrax.dashboard.my.action.transfer")) do %>
|
41
|
+
<%= t("hyrax.dashboard.my.action.transfer") %>
|
43
42
|
<% end %>
|
44
43
|
</li>
|
45
44
|
<% end %>
|
@@ -5,9 +5,9 @@
|
|
5
5
|
<th class="check-all"><label for="check_all" class="sr-only"><%= t("hyrax.dashboard.my.sr.check_all_label") %></label><%= render_check_all %></th>
|
6
6
|
<th><%= t("hyrax.dashboard.my.heading.title") %></th>
|
7
7
|
<th><%= t("hyrax.dashboard.my.heading.type") %></th>
|
8
|
-
<th><%= t("hyrax.dashboard.my.heading.collection.visibility") %></th>
|
9
|
-
<th><%= t("hyrax.dashboard.my.heading.items") %></th>
|
10
8
|
<th><%= t("hyrax.dashboard.my.heading.last_modified") %></th>
|
9
|
+
<th><%= t("hyrax.dashboard.my.heading.items") %></th>
|
10
|
+
<th><%= t("hyrax.dashboard.my.heading.collection.visibility") %></th>
|
11
11
|
<th><%= t("hyrax.dashboard.my.heading.action") %></th>
|
12
12
|
</tr>
|
13
13
|
</thead>
|
@@ -60,9 +60,9 @@
|
|
60
60
|
<td class="collection_type">
|
61
61
|
<%= collection_presenter.collection_type_badge %>
|
62
62
|
</td>
|
63
|
-
<td><%= collection_presenter.
|
63
|
+
<td class="date"><%= collection_presenter.modified_date %> </td>
|
64
64
|
<td><%= collection_presenter.total_viewable_items %></td>
|
65
|
-
<td
|
65
|
+
<td><%= collection_presenter.permission_badge %></td>
|
66
66
|
<td>
|
67
67
|
<% if collection_presenter.solr_document.admin_set? %>
|
68
68
|
<%= render '/hyrax/my/admin_set_action_menu', admin_set_presenter: collection_presenter %>
|
@@ -21,10 +21,11 @@
|
|
21
21
|
<!-- Page tabs -->
|
22
22
|
<nav><%= render 'tabs' if @managed_collection_count > 0 %></nav>
|
23
23
|
|
24
|
-
<% if can?(:create_any,
|
24
|
+
<% if can?(:create_any, Hyrax.config.collection_class) && @collection_type_list_presenter.any? %>
|
25
25
|
<% if @collection_type_list_presenter.many? %>
|
26
26
|
<% # modal to select type %>
|
27
27
|
<button type="button"
|
28
|
+
id="add-new-collection-button"
|
28
29
|
class="btn btn-primary"
|
29
30
|
data-toggle="modal"
|
30
31
|
data-target="#collectiontypes-to-create"
|
@@ -33,7 +34,7 @@
|
|
33
34
|
</button>
|
34
35
|
<% else @collection_type_list_presenter.any? %>
|
35
36
|
<% # link directly to create collection form with type %>
|
36
|
-
<%= link_to(t('helpers.action.collection.new'), append_collection_type_url(new_dashboard_collection_path, @collection_type_list_presenter.first_collection_type.id), class: 'btn btn-primary') %>
|
37
|
+
<%= link_to(t('helpers.action.collection.new'), append_collection_type_url(new_dashboard_collection_path, @collection_type_list_presenter.first_collection_type.id), id: 'add-new-collection-button', class: 'btn btn-primary') %>
|
37
38
|
<% end %>
|
38
39
|
<% end %>
|
39
40
|
</section>
|
@@ -46,7 +47,7 @@
|
|
46
47
|
<% elsif current_page?(hyrax.dashboard_collections_path(locale: nil)) && !current_ability.admin? %>
|
47
48
|
<span class="count-display"><%= I18n.t('hyrax.my.count.collections.you_manage', total_count: @response.total_count).html_safe %></span>
|
48
49
|
<% else %>
|
49
|
-
<span class="count-display"><%= I18n.t('hyrax.my.count.collections.in_repo', total_count: @response.total_count).html_safe %></span>
|
50
|
+
<span class="count-display"><%= I18n.t('hyrax.my.count.collections.in_repo', total_count: @response.total_count).html_safe %></span>
|
50
51
|
<% end %>
|
51
52
|
</div>
|
52
53
|
<div class="panel-body">
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<tr>
|
6
6
|
<th class="check-all"><label for="check_all" class="sr-only"><%= t("hyrax.dashboard.my.sr.check_all_label") %></label><%= render_check_all %></th>
|
7
7
|
<th><%= t("hyrax.dashboard.my.heading.title") %></th>
|
8
|
-
<th class='text-center'><%= t("hyrax.dashboard.my.heading.
|
8
|
+
<th class='text-center'><%= t("hyrax.dashboard.my.heading.last_modified") %></th>
|
9
9
|
<th class='text-center'><%= t("hyrax.dashboard.my.heading.highlighted") %></th>
|
10
10
|
<th class='text-center'><%= t("hyrax.dashboard.my.heading.work.visibility") %></th>
|
11
11
|
<th class='text-center'><%= t("hyrax.dashboard.my.heading.action") %></th>
|
@@ -28,8 +28,7 @@
|
|
28
28
|
</div>
|
29
29
|
</div>
|
30
30
|
</td>
|
31
|
-
|
32
|
-
<td class="date text-center"><%= document.date_uploaded %></td>
|
31
|
+
<td class="date text-center"><%= document.date_modified %></td>
|
33
32
|
<td class='text-center'>
|
34
33
|
<span class="fa <%= current_user.trophies.where(work_id: document.id).exists? ? 'fa-star highlighted-work' : 'fa-star-o trophy-off' %>" aria-hidden="true"></span></td>
|
35
34
|
<td class='text-center'><%= render_visibility_link document %></td>
|
@@ -30,6 +30,7 @@
|
|
30
30
|
t(:'helpers.action.work.new'),
|
31
31
|
'#',
|
32
32
|
data: { behavior: "select-work", target: "#worktypes-to-create", 'create-type' => 'single' },
|
33
|
+
id: 'add-new-work-button',
|
33
34
|
class: 'btn btn-primary'
|
34
35
|
) %>
|
35
36
|
<% else # simple link to the first work type %>
|
@@ -43,6 +44,7 @@
|
|
43
44
|
<%= link_to(
|
44
45
|
t(:'helpers.action.work.new'),
|
45
46
|
new_polymorphic_path([main_app, @create_work_presenter.first_model]),
|
47
|
+
id: 'add-new-work-button',
|
46
48
|
class: 'btn btn-primary'
|
47
49
|
) %>
|
48
50
|
<% end %>
|
@@ -60,9 +62,9 @@
|
|
60
62
|
<% elsif current_page?(hyrax.dashboard_works_path(locale: nil)) && !current_ability.admin? %>
|
61
63
|
<span class="count-display"><%= I18n.t('hyrax.my.count.works.you_manage', total_count: @response.total_count).html_safe %></span>
|
62
64
|
<% else %>
|
63
|
-
<span class="count-display"><%= I18n.t('hyrax.my.count.works.in_repo', total_count: @response.total_count).html_safe %></span>
|
65
|
+
<span class="count-display"><%= I18n.t('hyrax.my.count.works.in_repo', total_count: @response.total_count).html_safe %></span>
|
64
66
|
<% end %>
|
65
|
-
</div>
|
67
|
+
</div>
|
66
68
|
<div class="panel-body">
|
67
69
|
<%= render 'search_header' %>
|
68
70
|
<h2 class="sr-only"><%= t('hyrax.my.count.works.works_listing') %></h2>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<script>
|
2
|
+
Morris.Bar({
|
3
|
+
element: 'downloads',
|
4
|
+
data: [
|
5
|
+
<% @downloads.list.take(30).reverse.each do |result| %>
|
6
|
+
{ date: "<%= result[0] %>", metric: <%= result[1] %>},
|
7
|
+
<% end %>
|
8
|
+
],
|
9
|
+
xkey: 'date',
|
10
|
+
ykeys: ['metric'],
|
11
|
+
labels: ["<%= t('.downloads') %>"],
|
12
|
+
gridTextSize: '12px',
|
13
|
+
gridLineColor: '#E5E5E5',
|
14
|
+
gridIntegers: true,
|
15
|
+
ymin: 0,
|
16
|
+
resize: true
|
17
|
+
});
|
18
|
+
</script>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<script>
|
2
|
+
Morris.Bar({
|
3
|
+
element: 'pageviews',
|
4
|
+
data: [
|
5
|
+
<% @pageviews.list.take(30).reverse.each do |result| %>
|
6
|
+
{ date: "<%= result[0] %>", metric: <%= result[1] %>},
|
7
|
+
<% end %>
|
8
|
+
],
|
9
|
+
xkey: 'date',
|
10
|
+
ykeys: ['metric'],
|
11
|
+
labels: ["<%= t('.pageviews') %>"],
|
12
|
+
gridTextSize: '12px',
|
13
|
+
gridLineColor: '#E5E5E5',
|
14
|
+
gridIntegers: true,
|
15
|
+
ymin: 0,
|
16
|
+
resize: true
|
17
|
+
});
|
18
|
+
</script>
|
@@ -1,26 +1,34 @@
|
|
1
1
|
<!-- Adapted from jquery-flot examples https://github.com/flot/flot/blob/master/examples/visitors/index.html -->
|
2
2
|
<script>
|
3
3
|
//<![CDATA[
|
4
|
-
|
5
|
-
var hyrax_item_stats = <%= raw json_escape @stats.to_flot.to_json %>;
|
6
|
-
|
4
|
+
var hyrax_item_stats = <%= raw json_escape @pageviews.to_flot.to_json %>;
|
7
5
|
//]]>
|
8
6
|
</script>
|
9
7
|
|
10
|
-
<%= content_tag :h1, @
|
8
|
+
<%= content_tag :h1, @document, class: "lower" %>
|
11
9
|
|
12
10
|
<div class="row">
|
13
11
|
<div class="col-sm-12">
|
14
|
-
<%= content_tag :h2, "
|
12
|
+
<%= content_tag :h2, "#{t('.header')}" %>
|
15
13
|
<div class="alert alert-info">
|
16
14
|
<span class="glyphicon glyphicon-signal large-icon"></span>
|
17
|
-
|
15
|
+
<%= t('total_view', count: @pageviews.range(Hyrax.config.analytics_start_date.to_date, Time.zone.today)) %>
|
16
|
+
<%= t('download', count: @downloads.range(Hyrax.config.analytics_start_date.to_date, Time.zone.today)) %>
|
18
17
|
</div>
|
18
|
+
|
19
19
|
<div class="stats-container">
|
20
|
-
<
|
20
|
+
<h3 class="text-center"><%= t('.pageviews') %></h3>
|
21
|
+
<div id="pageviews">
|
22
|
+
<%= render 'pageviews' %>
|
23
|
+
</div>
|
21
24
|
</div>
|
22
|
-
|
23
|
-
|
25
|
+
|
26
|
+
<div class="stats-container">
|
27
|
+
<h3 class="text-center"><%= t('.downloads') %></h3>
|
28
|
+
<div id="downloads">
|
29
|
+
<%= render 'downloads' %>
|
30
|
+
</div>
|
24
31
|
</div>
|
32
|
+
|
25
33
|
</div>
|
26
34
|
</div>
|
@@ -25,8 +25,13 @@ signed in %>
|
|
25
25
|
|
26
26
|
<%= render 'shared/appearance_styles' %>
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
<% if Hyrax.config.analytics? %>
|
29
|
+
<% if Hyrax.config.analytics_provider == 'google' %>
|
30
|
+
<%= render partial: 'shared/ga', formats: [:html] %>
|
31
|
+
<% elsif Hyrax.config.analytics_provider == 'matomo' %>
|
32
|
+
<%= render partial: 'shared/matomo', formats: [:html] %>
|
33
|
+
<% end %>
|
34
|
+
<% end %>
|
30
35
|
|
31
36
|
<!-- for extras, e.g., a favicon -->
|
32
37
|
<%= render partial: '/head_tag_extras', formats: [:html] %>
|
@@ -1,20 +1,16 @@
|
|
1
|
-
<%
|
2
|
-
if Hyrax.config.google_analytics_id?
|
3
|
-
tracking_id = Hyrax.config.google_analytics_id
|
4
|
-
%>
|
5
1
|
<script type="text/javascript">
|
6
2
|
var _gaq = _gaq || [];
|
7
|
-
_gaq.push(['_setAccount', '<%=
|
3
|
+
_gaq.push(['_setAccount', '<%= Hyrax::Analytics.config.analytics_id %>']);
|
8
4
|
<% if Rails.env.development? %>
|
9
5
|
// This allows us to look at GA data live from locahost
|
10
6
|
_gaq.push(['_setDomainName', 'none']);
|
11
7
|
<% end %>
|
12
|
-
_gaq.push(['_trackPageview']);
|
13
8
|
|
14
9
|
(function() {
|
15
10
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
16
11
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
17
12
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
18
13
|
})();
|
14
|
+
window.analytics = _gaq;
|
19
15
|
</script>
|
20
|
-
|
16
|
+
<meta name="analytics-provider" content="google">
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
var _paq = window._paq || [];
|
3
|
+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
4
|
+
// _paq.push(['trackPageView']);
|
5
|
+
_paq.push(['enableLinkTracking']);
|
6
|
+
(function() {
|
7
|
+
var u="<%= Hyrax::Analytics.config.base_url %>";
|
8
|
+
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
9
|
+
_paq.push(['setSiteId', "<%= Hyrax::Analytics.config.site_id %>"]);
|
10
|
+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
11
|
+
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
12
|
+
})();
|
13
|
+
window.analytics = _paq;
|
14
|
+
</script>
|
15
|
+
<meta name="analytics-provider" content="matomo">
|
data/chart/hyrax/Chart.yaml
CHANGED
data/chart/hyrax/README.md
CHANGED
@@ -116,7 +116,7 @@ Then update the helm charts with the following:
|
|
116
116
|
HELM_EXPERIMENTAL_OCI=1 helm dependency update chart/hyrax
|
117
117
|
```
|
118
118
|
|
119
|
-
|
119
|
+
If your `helm` version is before 3.8, without the `HELM_EXPERIMENTAL_OCI=1` switch you might see the following error:
|
120
120
|
|
121
121
|
```sh
|
122
122
|
repository oci://ghcr.io/samvera is an OCI registry: this feature has been marked as experimental and is not enabled by default. Please set HELM_EXPERIMENTAL_OCI=1 in your environment to use this feature”
|
@@ -142,6 +142,27 @@ Some shell commands of house cleaning and destruction:
|
|
142
142
|
* Remove hanging docker instances: `docker rm $(docker ps -a -q) -f`
|
143
143
|
* Removing dangling docker images: `docker rmi $(docker images -f "dangling=true" -q)`
|
144
144
|
|
145
|
+
## Building and Pushing the Chart Package
|
146
|
+
|
147
|
+
We currently build and push new chart versions manually. This needs to happen
|
148
|
+
any time the chart version in [`Chart.yaml`](./Chart.yaml) is incremented.
|
149
|
+
|
150
|
+
To publish the Hyrax chart, you'll need to be in one of the GitHub groups with
|
151
|
+
push permissions. These groups are:
|
152
|
+
|
153
|
+
- `@samvera/admins`
|
154
|
+
- `@samvera/hyrax` (and all its subgroups)
|
155
|
+
|
156
|
+
To build the package, it's helpful to have a clean checkout of the current
|
157
|
+
`main` branch, then:
|
158
|
+
|
159
|
+
```sh
|
160
|
+
HELM_EXPERIMENTAL_OCI=1 helm dependency update chart/hyrax
|
161
|
+
HELM_EXPERIMENTAL_OCI=1 helm package chart/hyrax
|
162
|
+
HELM_EXPERIMENTAL_OCI=1 helm push hyrax-[VERSION].tgz oci://ghcr.io/samvera/charts
|
163
|
+
```
|
164
|
+
|
165
|
+
|
145
166
|
[containers]: ../../CONTAINERS.md#hyrax-image
|
146
167
|
[dassie]: ../../.dassie/README.md
|
147
168
|
[dassie-image]: https://hub.docker.com/r/samveralabs/dassie
|
data/chart/hyrax/values.yaml
CHANGED
data/config/i18n-tasks.yml
CHANGED
@@ -85,9 +85,9 @@ search:
|
|
85
85
|
## See this example of a custom scanner: https://github.com/glebm/i18n-tasks/wiki/A-custom-scanner-example
|
86
86
|
|
87
87
|
## Google Translate
|
88
|
-
#
|
88
|
+
# translation:
|
89
89
|
# # Get an API key and set billing info at https://code.google.com/apis/console to use Google Translate
|
90
|
-
# api_key: "AbC-dEf5"
|
90
|
+
# api_key: "AbC-dEf5"
|
91
91
|
|
92
92
|
## Do not consider these keys missing:
|
93
93
|
# ignore_missing:
|
@@ -1,15 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
Hyrax.publisher.subscribe(Hyrax::Listeners::AclIndexListener.new)
|
4
|
-
Hyrax.publisher.subscribe(Hyrax::Listeners::ActiveFedoraAclIndexListener.new) unless
|
5
|
-
Hyrax.config.disable_wings
|
6
|
-
Hyrax.publisher.subscribe(Hyrax::Listeners::MemberCleanupListener.new)
|
7
|
-
Hyrax.publisher.subscribe(Hyrax::Listeners::MetadataIndexListener.new)
|
4
|
+
Hyrax.publisher.subscribe(Hyrax::Listeners::ActiveFedoraAclIndexListener.new) unless Hyrax.config.disable_wings
|
8
5
|
Hyrax.publisher.subscribe(Hyrax::Listeners::BatchNotificationListener.new)
|
9
|
-
Hyrax.publisher.subscribe(Hyrax::Listeners::
|
6
|
+
Hyrax.publisher.subscribe(Hyrax::Listeners::FileMetadataListener.new)
|
10
7
|
Hyrax.publisher.subscribe(Hyrax::Listeners::FileSetLifecycleListener.new)
|
11
8
|
Hyrax.publisher.subscribe(Hyrax::Listeners::FileSetLifecycleNotificationListener.new)
|
12
|
-
Hyrax.publisher.subscribe(Hyrax::Listeners::
|
9
|
+
Hyrax.publisher.subscribe(Hyrax::Listeners::MemberCleanupListener.new)
|
10
|
+
Hyrax.publisher.subscribe(Hyrax::Listeners::MetadataIndexListener.new)
|
11
|
+
Hyrax.publisher.subscribe(Hyrax::Listeners::ObjectLifecycleListener.new)
|
13
12
|
Hyrax.publisher.subscribe(Hyrax::Listeners::TrophyCleanupListener.new)
|
14
13
|
Hyrax.publisher.subscribe(Hyrax::Listeners::WorkflowListener.new)
|
15
14
|
|