hyrax 3.3.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/.dassie/config/initializers/hyrax.rb +11 -1
- data/.gitignore +3 -0
- data/.regen +1 -1
- data/.rubocop_fixme.yml +3 -1
- data/Dockerfile +2 -1
- 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/analytics_events.js +8 -2
- data/app/assets/javascripts/hyrax/autocomplete/linked_data.es6 +1 -3
- data/app/controllers/concerns/hyrax/controller.rb +21 -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/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/dashboard/collections_controller.rb +19 -10
- 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 +1 -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 +6 -6
- 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 +38 -2
- 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 +84 -16
- data/app/models/admin_set.rb +2 -2
- data/app/models/collection_branding_info.rb +8 -6
- 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 +1 -0
- data/app/models/concerns/hyrax/solr_document_behavior.rb +9 -3
- data/app/models/hyrax/administrative_set.rb +36 -1
- data/app/models/hyrax/collection_type.rb +2 -2
- 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/work.rb +91 -0
- data/app/models/proxy_deposit_request.rb +1 -1
- data/app/presenters/hyrax/admin_set_presenter.rb +2 -2
- data/app/presenters/hyrax/pcdm_member_presenter_factory.rb +2 -2
- data/app/presenters/hyrax/work_show_presenter.rb +7 -3
- 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 +11 -4
- data/app/services/hyrax/access_control_list.rb +13 -0
- data/app/services/hyrax/admin_set_create_service.rb +21 -37
- 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 +1 -1
- data/app/services/hyrax/collections/nested_collection_query_service.rb +23 -11
- 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/file_metadata_listener.rb +20 -1
- data/app/services/hyrax/listeners/member_cleanup_listener.rb +23 -3
- data/app/services/hyrax/listeners/metadata_index_listener.rb +39 -0
- data/app/services/hyrax/listeners/proxy_deposit_listener.rb +14 -8
- 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/simple_schema_loader.rb +5 -1
- data/app/services/hyrax/solr_query_service.rb +12 -7
- data/app/services/hyrax/thumbnail_path_service.rb +1 -1
- data/app/services/hyrax/work_uploads_handler.rb +0 -10
- 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/collection_types/index.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/dashboard/collections/_default_group.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_form.html.erb +21 -15
- 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/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 +2 -2
- 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 +3 -2
- 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/chart/hyrax/Chart.yaml +2 -2
- data/chart/hyrax/README.md +22 -1
- data/config/initializers/listeners.rb +0 -1
- data/config/locales/hyrax.de.yml +6 -5
- data/config/locales/hyrax.en.yml +30 -28
- data/config/locales/hyrax.es.yml +10 -9
- data/config/locales/hyrax.fr.yml +2 -1
- data/config/locales/hyrax.it.yml +3 -2
- data/config/locales/hyrax.pt-BR.yml +2 -1
- data/config/locales/hyrax.zh.yml +2 -1
- data/config/metadata/basic_metadata.yaml +2 -0
- data/config/metadata/core_metadata.yaml +1 -1
- data/docker-compose.yml +46 -42
- data/documentation/developing-your-hyrax-based-app.md +1 -1
- data/documentation/legacyREADME.md +1 -1
- data/lib/hyrax/administrative_set_name.rb +18 -0
- data/lib/hyrax/collection_name.rb +2 -0
- data/lib/hyrax/configuration.rb +10 -0
- 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/publisher.rb +45 -0
- 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 +2 -1
- 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 +87 -23
- 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/wings/attribute_transformer.rb +5 -1
- data/lib/wings/setup.rb +3 -1
- data/lib/wings/valkyrie/query_service.rb +2 -1
- data/lib/wings/valkyrie/storage.rb +7 -1
- data/template.rb +1 -1
- metadata +24 -3
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyrax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2022-
|
17
|
+
date: 2022-03-23 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|
@@ -1819,6 +1819,7 @@ files:
|
|
1819
1819
|
- app/indexers/hyrax/permission_indexer.rb
|
1820
1820
|
- app/indexers/hyrax/repository_reindexer.rb
|
1821
1821
|
- app/indexers/hyrax/resource_indexer.rb
|
1822
|
+
- app/indexers/hyrax/thumbnail_indexer.rb
|
1822
1823
|
- app/indexers/hyrax/valkyrie_collection_indexer.rb
|
1823
1824
|
- app/indexers/hyrax/valkyrie_file_set_indexer.rb
|
1824
1825
|
- app/indexers/hyrax/valkyrie_indexer.rb
|
@@ -1831,6 +1832,7 @@ files:
|
|
1831
1832
|
- app/jobs/attach_files_to_work_job.rb
|
1832
1833
|
- app/jobs/attach_files_to_work_with_ordered_members_job.rb
|
1833
1834
|
- app/jobs/batch_create_job.rb
|
1835
|
+
- app/jobs/change_depositor_event_job.rb
|
1834
1836
|
- app/jobs/characterize_job.rb
|
1835
1837
|
- app/jobs/concerns/hyrax/members_permission_job_behavior.rb
|
1836
1838
|
- app/jobs/concerns/hyrax/permission_job_behavior.rb
|
@@ -1852,6 +1854,7 @@ files:
|
|
1852
1854
|
- app/jobs/hyrax/grant_edit_to_members_job.rb
|
1853
1855
|
- app/jobs/hyrax/grant_read_job.rb
|
1854
1856
|
- app/jobs/hyrax/grant_read_to_members_job.rb
|
1857
|
+
- app/jobs/hyrax/propagate_change_depositor_job.rb
|
1855
1858
|
- app/jobs/hyrax/revoke_edit_from_members_job.rb
|
1856
1859
|
- app/jobs/hyrax/revoke_edit_job.rb
|
1857
1860
|
- app/jobs/iiif_manifest_cache_prewarm_job.rb
|
@@ -1864,6 +1867,7 @@ files:
|
|
1864
1867
|
- app/jobs/resolrize_job.rb
|
1865
1868
|
- app/jobs/stream_notifications_job.rb
|
1866
1869
|
- app/jobs/user_edit_profile_event_job.rb
|
1870
|
+
- app/jobs/valkyrie_create_derivatives_job.rb
|
1867
1871
|
- app/jobs/valkyrie_ingest_job.rb
|
1868
1872
|
- app/jobs/visibility_copy_job.rb
|
1869
1873
|
- app/mailers/hyrax/contact_mailer.rb
|
@@ -2100,6 +2104,7 @@ files:
|
|
2100
2104
|
- app/services/hyrax/caching_iiif_manifest_builder.rb
|
2101
2105
|
- app/services/hyrax/callbacks.rb
|
2102
2106
|
- app/services/hyrax/change_content_depositor_service.rb
|
2107
|
+
- app/services/hyrax/change_depositor_service.rb
|
2103
2108
|
- app/services/hyrax/characterization/file_set_description.rb
|
2104
2109
|
- app/services/hyrax/characterization/model_wrapper.rb
|
2105
2110
|
- app/services/hyrax/characterization/valkyrie_characterization_service.rb
|
@@ -2127,11 +2132,13 @@ files:
|
|
2127
2132
|
- app/services/hyrax/custom_queries/find_ids_by_model.rb
|
2128
2133
|
- app/services/hyrax/custom_queries/find_many_by_alternate_ids.rb
|
2129
2134
|
- app/services/hyrax/custom_queries/navigators/child_collections_navigator.rb
|
2135
|
+
- app/services/hyrax/custom_queries/navigators/child_file_sets_navigator.rb
|
2130
2136
|
- app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb
|
2131
2137
|
- app/services/hyrax/custom_queries/navigators/child_works_navigator.rb
|
2132
2138
|
- app/services/hyrax/custom_queries/navigators/collection_members.rb
|
2133
2139
|
- app/services/hyrax/custom_queries/navigators/find_files.rb
|
2134
2140
|
- app/services/hyrax/custom_queries/navigators/parent_collections_navigator.rb
|
2141
|
+
- app/services/hyrax/custom_queries/navigators/parent_work_navigator.rb
|
2135
2142
|
- app/services/hyrax/database_migrator.rb
|
2136
2143
|
- app/services/hyrax/default_middleware_stack.rb
|
2137
2144
|
- app/services/hyrax/derivative_path.rb
|
@@ -2177,6 +2184,7 @@ files:
|
|
2177
2184
|
- app/services/hyrax/listeners/trophy_cleanup_listener.rb
|
2178
2185
|
- app/services/hyrax/listeners/workflow_listener.rb
|
2179
2186
|
- app/services/hyrax/local_file_service.rb
|
2187
|
+
- app/services/hyrax/location_service.rb
|
2180
2188
|
- app/services/hyrax/lock_manager.rb
|
2181
2189
|
- app/services/hyrax/lockable.rb
|
2182
2190
|
- app/services/hyrax/manifest_builder_service.rb
|
@@ -2263,6 +2271,7 @@ files:
|
|
2263
2271
|
- app/strategies/hyrax/strategies/yaml_strategy.rb
|
2264
2272
|
- app/uploaders/hyrax/avatar_uploader.rb
|
2265
2273
|
- app/uploaders/hyrax/uploaded_file_uploader.rb
|
2274
|
+
- app/validators/hyrax/collection_membership_validator.rb
|
2266
2275
|
- app/validators/hyrax/has_one_title_validator.rb
|
2267
2276
|
- app/values/hyrax/chart_data.rb
|
2268
2277
|
- app/views/_controls.html.erb
|
@@ -2278,6 +2287,7 @@ files:
|
|
2278
2287
|
- app/views/catalog/_index_gallery_collection_wrapper.html.erb
|
2279
2288
|
- app/views/catalog/_index_header_list_collection.html.erb
|
2280
2289
|
- app/views/catalog/_index_header_list_default.html.erb
|
2290
|
+
- app/views/catalog/_index_header_list_hyrax_pcdm_collection.html.erb
|
2281
2291
|
- app/views/catalog/_index_list_default.html.erb
|
2282
2292
|
- app/views/catalog/_search_form.html.erb
|
2283
2293
|
- app/views/catalog/_thumbnail_list_collection.html.erb
|
@@ -2887,6 +2897,7 @@ files:
|
|
2887
2897
|
- lib/generators/hyrax/work_resource/work_resource_generator.rb
|
2888
2898
|
- lib/hyrax.rb
|
2889
2899
|
- lib/hyrax/active_fedora_dummy_model.rb
|
2900
|
+
- lib/hyrax/administrative_set_name.rb
|
2890
2901
|
- lib/hyrax/arkivo.rb
|
2891
2902
|
- lib/hyrax/arkivo/actor.rb
|
2892
2903
|
- lib/hyrax/arkivo/config.rb
|
@@ -2897,6 +2908,7 @@ files:
|
|
2897
2908
|
- lib/hyrax/configuration.rb
|
2898
2909
|
- lib/hyrax/controlled_vocabularies.rb
|
2899
2910
|
- lib/hyrax/controlled_vocabularies/location.rb
|
2911
|
+
- lib/hyrax/controlled_vocabularies/resource_label_caching.rb
|
2900
2912
|
- lib/hyrax/controlled_vocabulary/importer/downloader.rb
|
2901
2913
|
- lib/hyrax/controlled_vocabulary/importer/language.rb
|
2902
2914
|
- lib/hyrax/controller_resource.rb
|
@@ -2941,8 +2953,11 @@ files:
|
|
2941
2953
|
- lib/hyrax/specs/spy_listener.rb
|
2942
2954
|
- lib/hyrax/transactions.rb
|
2943
2955
|
- lib/hyrax/transactions/admin_set_create.rb
|
2956
|
+
- lib/hyrax/transactions/admin_set_destroy.rb
|
2957
|
+
- lib/hyrax/transactions/admin_set_update.rb
|
2944
2958
|
- lib/hyrax/transactions/apply_change_set.rb
|
2945
2959
|
- lib/hyrax/transactions/collection_create.rb
|
2960
|
+
- lib/hyrax/transactions/collection_destroy.rb
|
2946
2961
|
- lib/hyrax/transactions/collection_update.rb
|
2947
2962
|
- lib/hyrax/transactions/container.rb
|
2948
2963
|
- lib/hyrax/transactions/create_work.rb
|
@@ -2955,6 +2970,9 @@ files:
|
|
2955
2970
|
- lib/hyrax/transactions/steps/apply_collection_type_permissions.rb
|
2956
2971
|
- lib/hyrax/transactions/steps/apply_permission_template.rb
|
2957
2972
|
- lib/hyrax/transactions/steps/apply_visibility.rb
|
2973
|
+
- lib/hyrax/transactions/steps/change_depositor.rb
|
2974
|
+
- lib/hyrax/transactions/steps/check_for_empty_admin_set.rb
|
2975
|
+
- lib/hyrax/transactions/steps/delete_access_control.rb
|
2958
2976
|
- lib/hyrax/transactions/steps/delete_resource.rb
|
2959
2977
|
- lib/hyrax/transactions/steps/destroy_work.rb
|
2960
2978
|
- lib/hyrax/transactions/steps/ensure_admin_set.rb
|
@@ -2967,12 +2985,15 @@ files:
|
|
2967
2985
|
- lib/hyrax/transactions/steps/set_default_admin_set.rb
|
2968
2986
|
- lib/hyrax/transactions/steps/set_modified_date.rb
|
2969
2987
|
- lib/hyrax/transactions/steps/set_uploaded_date_unless_present.rb
|
2988
|
+
- lib/hyrax/transactions/steps/set_user_as_creator.rb
|
2970
2989
|
- lib/hyrax/transactions/steps/set_user_as_depositor.rb
|
2990
|
+
- lib/hyrax/transactions/steps/update_work_members.rb
|
2971
2991
|
- lib/hyrax/transactions/steps/validate.rb
|
2972
2992
|
- lib/hyrax/transactions/transaction.rb
|
2973
2993
|
- lib/hyrax/transactions/update_work.rb
|
2974
2994
|
- lib/hyrax/transactions/work_create.rb
|
2975
2995
|
- lib/hyrax/transactions/work_destroy.rb
|
2996
|
+
- lib/hyrax/transactions/work_update.rb
|
2976
2997
|
- lib/hyrax/valkyrie_can_can_adapter.rb
|
2977
2998
|
- lib/hyrax/valkyrie_simple_path_generator.rb
|
2978
2999
|
- lib/hyrax/version.rb
|
@@ -3061,7 +3082,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
3061
3082
|
- !ruby/object:Gem::Version
|
3062
3083
|
version: '0'
|
3063
3084
|
requirements: []
|
3064
|
-
rubygems_version: 3.
|
3085
|
+
rubygems_version: 3.3.6
|
3065
3086
|
signing_key:
|
3066
3087
|
specification_version: 4
|
3067
3088
|
summary: Hyrax is a front-end based on the robust Samvera framework, providing a user
|