hyrax 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/.dassie/config/initializers/hyrax.rb +11 -1
  3. data/.gitignore +3 -0
  4. data/.regen +1 -1
  5. data/.rubocop_fixme.yml +3 -1
  6. data/Dockerfile +2 -1
  7. data/app/actors/hyrax/actors/file_actor.rb +6 -4
  8. data/app/actors/hyrax/actors/transfer_request_actor.rb +3 -7
  9. data/app/assets/javascripts/hyrax/analytics_events.js +8 -2
  10. data/app/assets/javascripts/hyrax/autocomplete/linked_data.es6 +1 -3
  11. data/app/controllers/concerns/hyrax/controller.rb +21 -0
  12. data/app/controllers/concerns/hyrax/works_controller_behavior.rb +83 -59
  13. data/app/controllers/hyrax/admin/admin_sets_controller.rb +105 -19
  14. data/app/controllers/hyrax/admin/permission_template_accesses_controller.rb +12 -19
  15. data/app/controllers/hyrax/batch_edits_controller.rb +12 -3
  16. data/app/controllers/hyrax/batch_uploads_controller.rb +4 -0
  17. data/app/controllers/hyrax/citations_controller.rb +1 -1
  18. data/app/controllers/hyrax/dashboard/collections_controller.rb +19 -10
  19. data/app/forms/hyrax/forms/administrative_set_form.rb +19 -1
  20. data/app/forms/hyrax/forms/batch_edit_form.rb +1 -1
  21. data/app/forms/hyrax/forms/dashboard/nest_collection_form.rb +21 -6
  22. data/app/forms/hyrax/forms/pcdm_collection_form.rb +1 -0
  23. data/app/forms/hyrax/forms/permission_template_form.rb +17 -9
  24. data/app/forms/hyrax/forms/resource_form.rb +9 -5
  25. data/app/helpers/hyrax/collections_helper.rb +14 -0
  26. data/app/helpers/hyrax/membership_helper.rb +1 -1
  27. data/app/helpers/hyrax/trophy_helper.rb +1 -1
  28. data/app/helpers/hyrax/url_helper.rb +1 -1
  29. data/app/indexers/hyrax/administrative_set_indexer.rb +8 -2
  30. data/app/indexers/hyrax/deep_indexing_service.rb +1 -1
  31. data/app/indexers/hyrax/file_set_indexer.rb +1 -0
  32. data/app/indexers/hyrax/pcdm_collection_indexer.rb +3 -1
  33. data/app/indexers/hyrax/thumbnail_indexer.rb +31 -0
  34. data/app/indexers/hyrax/valkyrie_file_set_indexer.rb +6 -6
  35. data/app/indexers/hyrax/valkyrie_indexer.rb +4 -2
  36. data/app/indexers/hyrax/valkyrie_work_indexer.rb +13 -0
  37. data/app/inputs/controlled_vocabulary_input.rb +2 -0
  38. data/app/jobs/change_depositor_event_job.rb +47 -0
  39. data/app/jobs/characterize_job.rb +38 -2
  40. data/app/jobs/concerns/hyrax/members_permission_job_behavior.rb +1 -1
  41. data/app/jobs/content_depositor_change_event_job.rb +2 -1
  42. data/app/jobs/hyrax/propagate_change_depositor_job.rb +32 -0
  43. data/app/jobs/inherit_permissions_job.rb +1 -1
  44. data/app/jobs/valkyrie_create_derivatives_job.rb +25 -0
  45. data/app/jobs/valkyrie_ingest_job.rb +84 -16
  46. data/app/models/admin_set.rb +2 -2
  47. data/app/models/collection_branding_info.rb +8 -6
  48. data/app/models/concerns/hyrax/collection_behavior.rb +2 -2
  49. data/app/models/concerns/hyrax/file_set/characterization.rb +7 -1
  50. data/app/models/concerns/hyrax/solr_document/metadata.rb +1 -0
  51. data/app/models/concerns/hyrax/solr_document_behavior.rb +9 -3
  52. data/app/models/hyrax/administrative_set.rb +36 -1
  53. data/app/models/hyrax/collection_type.rb +2 -2
  54. data/app/models/hyrax/file_metadata.rb +5 -1
  55. data/app/models/hyrax/file_set.rb +42 -1
  56. data/app/models/hyrax/pcdm_collection.rb +56 -0
  57. data/app/models/hyrax/permission_template.rb +11 -5
  58. data/app/models/hyrax/work.rb +91 -0
  59. data/app/models/proxy_deposit_request.rb +1 -1
  60. data/app/presenters/hyrax/admin_set_presenter.rb +2 -2
  61. data/app/presenters/hyrax/pcdm_member_presenter_factory.rb +2 -2
  62. data/app/presenters/hyrax/work_show_presenter.rb +7 -3
  63. data/app/search_builders/hyrax/dashboard/collections_search_builder.rb +2 -2
  64. data/app/search_builders/hyrax/dashboard/managed_search_filters.rb +44 -4
  65. data/app/search_builders/hyrax/dashboard/nested_collections_search_builder.rb +2 -2
  66. data/app/search_builders/hyrax/my/collections_search_builder.rb +11 -4
  67. data/app/services/hyrax/access_control_list.rb +13 -0
  68. data/app/services/hyrax/admin_set_create_service.rb +21 -37
  69. data/app/services/hyrax/change_content_depositor_service.rb +2 -2
  70. data/app/services/hyrax/change_depositor_service.rb +70 -0
  71. data/app/services/hyrax/characterization/valkyrie_characterization_service.rb +1 -1
  72. data/app/services/hyrax/collections/nested_collection_query_service.rb +23 -11
  73. data/app/services/hyrax/custom_queries/navigators/child_file_sets_navigator.rb +45 -0
  74. data/app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb +7 -2
  75. data/app/services/hyrax/custom_queries/navigators/parent_work_navigator.rb +54 -0
  76. data/app/services/hyrax/default_middleware_stack.rb +3 -0
  77. data/app/services/hyrax/file_set_derivatives_service.rb +21 -2
  78. data/app/services/hyrax/file_set_type_service.rb +2 -5
  79. data/app/services/hyrax/listeners/file_metadata_listener.rb +20 -1
  80. data/app/services/hyrax/listeners/member_cleanup_listener.rb +23 -3
  81. data/app/services/hyrax/listeners/metadata_index_listener.rb +39 -0
  82. data/app/services/hyrax/listeners/proxy_deposit_listener.rb +14 -8
  83. data/app/services/hyrax/location_service.rb +33 -0
  84. data/app/services/hyrax/multiple_membership_checker.rb +44 -1
  85. data/app/services/hyrax/resource_visibility_propagator.rb +1 -1
  86. data/app/services/hyrax/simple_schema_loader.rb +5 -1
  87. data/app/services/hyrax/solr_query_service.rb +12 -7
  88. data/app/services/hyrax/thumbnail_path_service.rb +1 -1
  89. data/app/services/hyrax/work_uploads_handler.rb +0 -10
  90. data/app/validators/hyrax/collection_membership_validator.rb +38 -0
  91. data/app/views/catalog/_index_header_list_hyrax_pcdm_collection.html.erb +4 -0
  92. data/app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb +2 -2
  93. data/app/views/hyrax/admin/admin_sets/_form_participants.html.erb +2 -2
  94. data/app/views/hyrax/admin/admin_sets/_form_visibility.html.erb +2 -2
  95. data/app/views/hyrax/admin/admin_sets/_form_workflow.erb +1 -1
  96. data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
  97. data/app/views/hyrax/base/_form.html.erb +1 -1
  98. data/app/views/hyrax/base/_form_child_work_relationships.html.erb +1 -1
  99. data/app/views/hyrax/dashboard/collections/_default_group.html.erb +2 -2
  100. data/app/views/hyrax/dashboard/collections/_form.html.erb +21 -15
  101. data/app/views/hyrax/dashboard/collections/_form_discovery.html.erb +6 -3
  102. data/app/views/hyrax/dashboard/collections/_form_share.html.erb +2 -2
  103. data/app/views/hyrax/dashboard/collections/_form_share_table.html.erb +3 -3
  104. data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +2 -2
  105. data/app/views/hyrax/dashboard/works/_default_group.html.erb +1 -1
  106. data/app/views/hyrax/dashboard/works/_list_works.html.erb +1 -1
  107. data/app/views/hyrax/file_sets/_actions.html.erb +2 -2
  108. data/app/views/hyrax/my/_work_action_menu.html.erb +8 -9
  109. data/app/views/hyrax/my/collections/_default_group.html.erb +2 -2
  110. data/app/views/hyrax/my/collections/_list_collections.html.erb +2 -2
  111. data/app/views/hyrax/my/collections/index.html.erb +3 -2
  112. data/app/views/hyrax/my/works/_default_group.html.erb +1 -1
  113. data/app/views/hyrax/my/works/_list_works.html.erb +1 -2
  114. data/app/views/hyrax/my/works/index.html.erb +4 -2
  115. data/chart/hyrax/Chart.yaml +2 -2
  116. data/chart/hyrax/README.md +22 -1
  117. data/config/initializers/listeners.rb +0 -1
  118. data/config/locales/hyrax.de.yml +6 -5
  119. data/config/locales/hyrax.en.yml +30 -28
  120. data/config/locales/hyrax.es.yml +10 -9
  121. data/config/locales/hyrax.fr.yml +2 -1
  122. data/config/locales/hyrax.it.yml +3 -2
  123. data/config/locales/hyrax.pt-BR.yml +2 -1
  124. data/config/locales/hyrax.zh.yml +2 -1
  125. data/config/metadata/basic_metadata.yaml +2 -0
  126. data/config/metadata/core_metadata.yaml +1 -1
  127. data/docker-compose.yml +46 -42
  128. data/documentation/developing-your-hyrax-based-app.md +1 -1
  129. data/documentation/legacyREADME.md +1 -1
  130. data/lib/hyrax/administrative_set_name.rb +18 -0
  131. data/lib/hyrax/collection_name.rb +2 -0
  132. data/lib/hyrax/configuration.rb +10 -0
  133. data/lib/hyrax/controlled_vocabularies/location.rb +9 -2
  134. data/lib/hyrax/controlled_vocabularies/resource_label_caching.rb +42 -0
  135. data/lib/hyrax/controlled_vocabularies.rb +1 -0
  136. data/lib/hyrax/publisher.rb +45 -0
  137. data/lib/hyrax/specs/capybara.rb +1 -1
  138. data/lib/hyrax/specs/shared_specs/hydra_works.rb +11 -4
  139. data/lib/hyrax/specs/shared_specs/indexers.rb +117 -3
  140. data/lib/hyrax/transactions/admin_set_create.rb +2 -1
  141. data/lib/hyrax/transactions/admin_set_destroy.rb +22 -0
  142. data/lib/hyrax/transactions/admin_set_update.rb +21 -0
  143. data/lib/hyrax/transactions/collection_destroy.rb +22 -0
  144. data/lib/hyrax/transactions/collection_update.rb +3 -2
  145. data/lib/hyrax/transactions/container.rb +87 -23
  146. data/lib/hyrax/transactions/create_work.rb +3 -0
  147. data/lib/hyrax/transactions/destroy_work.rb +3 -0
  148. data/lib/hyrax/transactions/steps/apply_collection_permission_template.rb +2 -0
  149. data/lib/hyrax/transactions/steps/apply_permission_template.rb +2 -0
  150. data/lib/hyrax/transactions/steps/apply_visibility.rb +2 -0
  151. data/lib/hyrax/transactions/steps/change_depositor.rb +46 -0
  152. data/lib/hyrax/transactions/steps/check_for_empty_admin_set.rb +36 -0
  153. data/lib/hyrax/transactions/steps/delete_access_control.rb +32 -0
  154. data/lib/hyrax/transactions/steps/delete_resource.rb +19 -3
  155. data/lib/hyrax/transactions/steps/destroy_work.rb +3 -1
  156. data/lib/hyrax/transactions/steps/ensure_permission_template.rb +2 -0
  157. data/lib/hyrax/transactions/steps/save.rb +24 -6
  158. data/lib/hyrax/transactions/steps/save_access_control.rb +2 -2
  159. data/lib/hyrax/transactions/steps/save_work.rb +3 -0
  160. data/lib/hyrax/transactions/steps/set_user_as_creator.rb +41 -0
  161. data/lib/hyrax/transactions/steps/update_work_members.rb +51 -0
  162. data/lib/hyrax/transactions/update_work.rb +4 -3
  163. data/lib/hyrax/transactions/work_create.rb +1 -1
  164. data/lib/hyrax/transactions/work_destroy.rb +2 -1
  165. data/lib/hyrax/transactions/work_update.rb +19 -0
  166. data/lib/hyrax/version.rb +1 -1
  167. data/lib/wings/attribute_transformer.rb +5 -1
  168. data/lib/wings/setup.rb +3 -1
  169. data/lib/wings/valkyrie/query_service.rb +2 -1
  170. data/lib/wings/valkyrie/storage.rb +7 -1
  171. data/template.rb +1 -1
  172. 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.3.0
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-01-24 00:00:00.000000000 Z
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.1.6
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