hyrax 2.1.0.beta1 → 2.1.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +9 -49
  3. data/.rubocop_fixme.yml +1 -0
  4. data/.travis.yml +1 -1
  5. data/Gemfile +3 -3
  6. data/README.md +4 -2
  7. data/app/actors/hyrax/actors/file_set_actor.rb +0 -1
  8. data/app/actors/hyrax/actors/interpret_visibility_actor.rb +1 -3
  9. data/app/actors/hyrax/actors/model_actor.rb +4 -0
  10. data/app/assets/javascripts/hyrax.js +1 -1
  11. data/app/assets/javascripts/hyrax/app.js.erb +1 -1
  12. data/app/assets/javascripts/hyrax/authority_select.es6 +15 -7
  13. data/app/assets/javascripts/hyrax/collections.js +188 -9
  14. data/app/assets/javascripts/hyrax/content_blocks.js +13 -1
  15. data/app/assets/javascripts/hyrax/editor.es6 +2 -1
  16. data/app/assets/javascripts/hyrax/proxy_rights.js +2 -2
  17. data/app/assets/javascripts/hyrax/turbolinks_events.js +5 -0
  18. data/app/assets/stylesheets/hyrax/_accessibility.scss +21 -0
  19. data/app/assets/stylesheets/hyrax/_catalog.scss +21 -16
  20. data/app/assets/stylesheets/hyrax/_collections.scss +48 -7
  21. data/app/assets/stylesheets/hyrax/_modal.scss +4 -0
  22. data/app/assets/stylesheets/hyrax/_settings.scss +1 -1
  23. data/app/assets/stylesheets/hyrax/dashboard.scss +0 -1
  24. data/app/controllers/concerns/hyrax/breadcrumbs.rb +3 -1
  25. data/app/controllers/concerns/hyrax/embargoes_controller_behavior.rb +17 -1
  26. data/app/controllers/concerns/hyrax/leases_controller_behavior.rb +10 -0
  27. data/app/controllers/concerns/hyrax/local_file_downloads_controller_behavior.rb +86 -0
  28. data/app/controllers/concerns/hyrax/works_controller_behavior.rb +14 -11
  29. data/app/controllers/hyrax/admin/collection_types_controller.rb +11 -1
  30. data/app/controllers/hyrax/api/items_controller.rb +2 -6
  31. data/app/controllers/hyrax/batch_edits_controller.rb +6 -0
  32. data/app/controllers/hyrax/batch_uploads_controller.rb +1 -1
  33. data/app/controllers/hyrax/dashboard/collections_controller.rb +4 -7
  34. data/app/controllers/hyrax/dashboard/profiles_controller.rb +2 -0
  35. data/app/controllers/hyrax/dashboard_controller.rb +2 -2
  36. data/app/controllers/hyrax/depositors_controller.rb +19 -0
  37. data/app/controllers/hyrax/downloads_controller.rb +3 -4
  38. data/app/controllers/hyrax/embargoes_controller.rb +2 -0
  39. data/app/controllers/hyrax/file_sets_controller.rb +12 -0
  40. data/app/controllers/hyrax/leases_controller.rb +2 -0
  41. data/app/controllers/hyrax/my/works_controller.rb +9 -0
  42. data/app/controllers/hyrax/my_controller.rb +0 -1
  43. data/app/controllers/hyrax/transfers_controller.rb +1 -3
  44. data/app/controllers/hyrax/users_controller.rb +1 -3
  45. data/app/forms/hyrax/forms/admin/collection_type_form.rb +1 -1
  46. data/app/forms/hyrax/forms/permission_template_form.rb +1 -4
  47. data/app/forms/hyrax/forms/work_form.rb +1 -3
  48. data/app/helpers/hyrax/citations_behaviors/common_behavior.rb +1 -3
  49. data/app/helpers/hyrax/citations_behaviors/formatters/chicago_formatter.rb +1 -5
  50. data/app/helpers/hyrax/collections_helper.rb +7 -4
  51. data/app/helpers/hyrax/file_set_helper.rb +0 -1
  52. data/app/helpers/hyrax/hyrax_helper_behavior.rb +0 -1
  53. data/app/helpers/hyrax/trophy_helper.rb +0 -1
  54. data/app/indexers/hyrax/admin_set_indexer.rb +2 -0
  55. data/app/inputs/multi_value_select_input.rb +1 -3
  56. data/app/jobs/attach_files_to_work_job.rb +5 -1
  57. data/app/jobs/import_url_job.rb +9 -8
  58. data/app/models/admin_set.rb +1 -5
  59. data/app/models/concerns/hyrax/ability.rb +3 -4
  60. data/app/models/concerns/hyrax/collection_behavior.rb +0 -4
  61. data/app/models/concerns/hyrax/collection_nesting.rb +12 -0
  62. data/app/models/concerns/hyrax/suppressible.rb +1 -5
  63. data/app/models/featured_work_list.rb +1 -3
  64. data/app/models/hyrax/collection_type.rb +3 -2
  65. data/app/models/hyrax/permission_template_access.rb +6 -4
  66. data/app/models/proxy_deposit_request.rb +1 -1
  67. data/app/presenters/hyrax/collection_presenter.rb +0 -24
  68. data/app/presenters/hyrax/displays_image.rb +1 -1
  69. data/app/presenters/hyrax/file_set_presenter.rb +1 -1
  70. data/app/presenters/hyrax/menu_presenter.rb +1 -1
  71. data/app/presenters/hyrax/work_show_presenter.rb +15 -10
  72. data/app/search_builders/hyrax/abstract_type_relation.rb +2 -1
  73. data/app/search_builders/hyrax/collection_member_search_builder.rb +1 -1
  74. data/app/search_builders/hyrax/dashboard/collections_search_builder.rb +3 -1
  75. data/app/search_builders/hyrax/parent_collection_search_builder.rb +2 -2
  76. data/app/services/hyrax/admin_set_create_service.rb +1 -3
  77. data/app/services/hyrax/analytics.rb +1 -3
  78. data/app/services/hyrax/collection_member_service.rb +6 -5
  79. data/app/services/hyrax/collection_types/create_service.rb +37 -10
  80. data/app/services/hyrax/collections/permissions_create_service.rb +1 -3
  81. data/app/services/hyrax/collections/permissions_service.rb +6 -4
  82. data/app/views/catalog/_index_header_list_collection.html.erb +1 -1
  83. data/app/views/catalog/_index_header_list_default.html.erb +1 -1
  84. data/app/views/catalog/_index_list_default.html.erb +6 -10
  85. data/app/views/catalog/_search_form.html.erb +10 -11
  86. data/app/views/catalog/_thumbnail_list_collection.html.erb +1 -1
  87. data/app/views/catalog/_thumbnail_list_default.html.erb +1 -1
  88. data/app/views/hyrax/admin/admin_sets/_form.html.erb +1 -1
  89. data/app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb +1 -1
  90. data/app/views/hyrax/admin/admin_sets/_form_participants.html.erb +1 -1
  91. data/app/views/hyrax/admin/admin_sets/_form_visibility.html.erb +3 -3
  92. data/app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb +2 -2
  93. data/app/views/hyrax/admin/admin_sets/index.html.erb +1 -1
  94. data/app/views/hyrax/admin/appearances/show.html.erb +4 -4
  95. data/app/views/hyrax/admin/collection_types/_form_settings.html.erb +3 -2
  96. data/app/views/hyrax/admin/collection_types/index.html.erb +2 -2
  97. data/app/views/hyrax/admin/features/index.html.erb +2 -4
  98. data/app/views/hyrax/admin/stats/_date_form.html.erb +3 -3
  99. data/app/views/hyrax/admin/stats/_top_data.html.erb +1 -1
  100. data/app/views/hyrax/admin/stats/show.html.erb +1 -1
  101. data/app/views/hyrax/admin/workflows/index.html.erb +0 -1
  102. data/app/views/hyrax/base/_file_manager_actions.html.erb +2 -2
  103. data/app/views/hyrax/base/_file_manager_member.html.erb +1 -1
  104. data/app/views/hyrax/base/_form_child_work_relationships.html.erb +1 -2
  105. data/app/views/hyrax/base/_form_files.html.erb +3 -3
  106. data/app/views/hyrax/base/_form_member_of_collections.html.erb +1 -2
  107. data/app/views/hyrax/base/_form_progress.html.erb +3 -3
  108. data/app/views/hyrax/base/_form_relationships.html.erb +2 -3
  109. data/app/views/hyrax/base/_form_representative.html.erb +0 -1
  110. data/app/views/hyrax/base/_form_share.html.erb +1 -3
  111. data/app/views/hyrax/base/_form_thumbnail.html.erb +0 -1
  112. data/app/views/hyrax/base/_form_visibility_component.html.erb +6 -6
  113. data/app/views/hyrax/base/_relationships_parent_rows.html.erb +3 -1
  114. data/app/views/hyrax/base/_representative_media.html.erb +1 -1
  115. data/app/views/hyrax/base/_share_with.html.erb +3 -3
  116. data/app/views/hyrax/base/_show_actions.html.erb +14 -1
  117. data/app/views/hyrax/base/_social_media.html.erb +5 -5
  118. data/app/views/hyrax/base/_work_title.erb +3 -1
  119. data/app/views/hyrax/base/_workflow_actions.html.erb +1 -1
  120. data/app/views/hyrax/base/inspect_work.html.erb +1 -1
  121. data/app/views/hyrax/base/show.html.erb +2 -2
  122. data/app/views/hyrax/batch_edits/_check_all.html.erb +2 -2
  123. data/app/views/hyrax/batch_edits/edit.html.erb +47 -44
  124. data/app/views/hyrax/batch_select/_add_button.html.erb +2 -2
  125. data/app/views/hyrax/citations/work.html.erb +3 -3
  126. data/app/views/hyrax/collections/_collection.html.erb +1 -1
  127. data/app/views/hyrax/collections/_default_group.html.erb +1 -1
  128. data/app/views/hyrax/collections/_list_collections.html.erb +2 -2
  129. data/app/views/hyrax/collections/_list_works.html.erb +1 -1
  130. data/app/views/hyrax/collections/_show_descriptions.html.erb +6 -6
  131. data/app/views/hyrax/collections/_show_document_list_row.html.erb +2 -2
  132. data/app/views/hyrax/collections/_show_parent_collections.html.erb +11 -38
  133. data/app/views/hyrax/collections/_sort_and_per_page.html.erb +13 -13
  134. data/app/views/hyrax/collections/_subcollection_list.html.erb +1 -1
  135. data/app/views/hyrax/collections/_view_type_group.html.erb +1 -1
  136. data/app/views/hyrax/collections/show.html.erb +122 -122
  137. data/app/views/hyrax/content_blocks/_form.html.erb +13 -12
  138. data/app/views/hyrax/content_blocks/_modal_content_block.html.erb +15 -0
  139. data/app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb +25 -19
  140. data/app/views/hyrax/dashboard/_sidebar.html.erb +1 -1
  141. data/app/views/hyrax/dashboard/collections/_button_for_remove_selected_from_collection.html.erb +1 -1
  142. data/app/views/hyrax/dashboard/collections/_collection_title.html.erb +16 -16
  143. data/app/views/hyrax/dashboard/collections/_form.html.erb +3 -1
  144. data/app/views/hyrax/dashboard/collections/_form_branding.html.erb +11 -11
  145. data/app/views/hyrax/dashboard/collections/_form_default_group_delt.html.erb +1 -1
  146. data/app/views/hyrax/dashboard/collections/_form_discovery.html.erb +2 -2
  147. data/app/views/hyrax/dashboard/collections/_form_for_select_collection.html.erb +4 -4
  148. data/app/views/hyrax/dashboard/collections/_form_share.html.erb +51 -44
  149. data/app/views/hyrax/dashboard/collections/_form_share_table.html.erb +2 -2
  150. data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +4 -4
  151. data/app/views/hyrax/dashboard/collections/_list_works.html.erb +1 -1
  152. data/app/views/hyrax/dashboard/collections/_modal_remove_from_collection.html.erb +10 -5
  153. data/app/views/hyrax/dashboard/collections/_modal_remove_sub_collection.html.erb +10 -5
  154. data/app/views/hyrax/dashboard/collections/_show_actions.html.erb +1 -1
  155. data/app/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb +2 -2
  156. data/app/views/hyrax/dashboard/collections/_show_document_list_row.html.erb +2 -2
  157. data/app/views/hyrax/dashboard/collections/_show_parent_collection_row.html.erb +10 -5
  158. data/app/views/hyrax/dashboard/collections/_show_parent_collections.html.erb +11 -34
  159. data/app/views/hyrax/dashboard/collections/_sort_and_per_page.html.erb +1 -1
  160. data/app/views/hyrax/dashboard/collections/_subcollection_list.html.erb +23 -17
  161. data/app/views/hyrax/dashboard/collections/show.html.erb +6 -6
  162. data/app/views/hyrax/dashboard/profiles/_edit_primary.html.erb +0 -4
  163. data/app/views/hyrax/dashboard/profiles/_trophy_edit.html.erb +16 -14
  164. data/app/views/hyrax/dashboard/profiles/show.html.erb +6 -0
  165. data/app/views/hyrax/dashboard/show_admin.html.erb +19 -3
  166. data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +6 -0
  167. data/app/views/hyrax/dashboard/works/_list_works.html.erb +1 -1
  168. data/app/views/hyrax/depositors/index.html.erb +13 -0
  169. data/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb +1 -1
  170. data/app/views/hyrax/embargoes/edit.html.erb +47 -35
  171. data/app/views/hyrax/embargoes/index.html.erb +6 -7
  172. data/app/views/hyrax/file_sets/_actions.html.erb +6 -2
  173. data/app/views/hyrax/file_sets/_extra_fields_modal.html.erb +3 -3
  174. data/app/views/hyrax/file_sets/_groups_description.html.erb +0 -1
  175. data/app/views/hyrax/file_sets/_permission_form.html.erb +3 -3
  176. data/app/views/hyrax/file_sets/edit.html.erb +24 -20
  177. data/app/views/hyrax/file_sets/media_display/_audio.html.erb +23 -6
  178. data/app/views/hyrax/file_sets/media_display/_default.html.erb +1 -1
  179. data/app/views/hyrax/file_sets/media_display/_video.html.erb +23 -6
  180. data/app/views/hyrax/leases/_list_expired_active_leases.html.erb +1 -1
  181. data/app/views/hyrax/leases/edit.html.erb +47 -35
  182. data/app/views/hyrax/leases/index.html.erb +6 -6
  183. data/app/views/hyrax/my/_collection_action_menu.html.erb +1 -1
  184. data/app/views/hyrax/my/_facet_limit.html.erb +1 -2
  185. data/app/views/hyrax/my/_facet_pagination.html.erb +6 -6
  186. data/app/views/hyrax/my/_facet_pivot.html.erb +1 -1
  187. data/app/views/hyrax/my/_results_pagination.html.erb +1 -1
  188. data/app/views/hyrax/my/collections/_facets.html.erb +1 -1
  189. data/app/views/hyrax/my/collections/_list_collections.html.erb +5 -5
  190. data/app/views/hyrax/my/collections/_modal_add_subcollection.html.erb +3 -2
  191. data/app/views/hyrax/my/collections/_modal_add_to_collection.html.erb +3 -1
  192. data/app/views/hyrax/my/collections/_modal_add_to_collection_permission_deny.html.erb +1 -1
  193. data/app/views/hyrax/my/collections/_modal_collection_types_to_create.html.erb +2 -2
  194. data/app/views/hyrax/my/collections/_modal_delete_collection.html.erb +1 -2
  195. data/app/views/hyrax/my/collections/_modal_delete_deny.html.erb +1 -1
  196. data/app/views/hyrax/my/collections/_modal_delete_selected_collections.html.erb +2 -2
  197. data/app/views/hyrax/my/collections/_tabs.html.erb +2 -2
  198. data/app/views/hyrax/my/collections/index.html.erb +7 -3
  199. data/app/views/hyrax/my/facet.html.erb +1 -1
  200. data/app/views/hyrax/my/index.html.erb +6 -2
  201. data/app/views/hyrax/my/works/_facets.html.erb +1 -1
  202. data/app/views/hyrax/my/works/_list_works.html.erb +1 -1
  203. data/app/views/hyrax/my/works/_tabs.html.erb +2 -2
  204. data/app/views/hyrax/my/works/index.html.erb +6 -2
  205. data/app/views/hyrax/notifications/_notifications.html.erb +1 -1
  206. data/app/views/hyrax/pages/_form.html.erb +12 -12
  207. data/app/views/hyrax/pages/show.html.erb +1 -1
  208. data/app/views/hyrax/single_use_links_viewer/show.html.erb +1 -1
  209. data/app/views/hyrax/stats/file.html.erb +6 -2
  210. data/app/views/hyrax/stats/work.html.erb +6 -2
  211. data/app/views/hyrax/transfers/_received.html.erb +6 -6
  212. data/app/views/hyrax/transfers/_sent.html.erb +2 -2
  213. data/app/views/hyrax/transfers/new.html.erb +0 -1
  214. data/app/views/hyrax/users/_activity_log.html.erb +2 -2
  215. data/app/views/hyrax/users/_profile_tabs.html.erb +1 -1
  216. data/app/views/hyrax/users/_search_form.html.erb +1 -1
  217. data/app/views/hyrax/users/_user.html.erb +0 -1
  218. data/app/views/hyrax/users/index.html.erb +1 -1
  219. data/app/views/kaminari/blacklight_compact/_paginator.html.erb +1 -2
  220. data/app/views/layouts/_head_tag_content.html.erb +2 -2
  221. data/app/views/layouts/error.html.erb +1 -1
  222. data/app/views/layouts/hyrax.html.erb +6 -3
  223. data/app/views/layouts/hyrax/dashboard.html.erb +6 -3
  224. data/app/views/records/show_fields/_based_near.html.erb +0 -1
  225. data/app/views/records/show_fields/_contributor.html.erb +0 -1
  226. data/app/views/records/show_fields/_date_created.html.erb +0 -1
  227. data/app/views/records/show_fields/_description.html.erb +1 -1
  228. data/app/views/records/show_fields/_identifier.html.erb +0 -1
  229. data/app/views/records/show_fields/_language.html.erb +0 -1
  230. data/app/views/records/show_fields/_publisher.html.erb +0 -1
  231. data/app/views/records/show_fields/_related_url.html.erb +0 -1
  232. data/app/views/records/show_fields/_resource_type.html.erb +0 -1
  233. data/app/views/records/show_fields/_subject.html.erb +0 -1
  234. data/app/views/shared/_citations.html.erb +17 -17
  235. data/app/views/shared/_select_work_type_modal.html.erb +2 -2
  236. data/config/locales/hyrax.de.yml +198 -189
  237. data/config/locales/hyrax.en.yml +21 -14
  238. data/config/locales/hyrax.es.yml +9 -0
  239. data/config/locales/hyrax.fr.yml +9 -0
  240. data/config/locales/hyrax.it.yml +9 -0
  241. data/config/locales/hyrax.pt-BR.yml +9 -0
  242. data/config/locales/hyrax.zh.yml +9 -0
  243. data/config/routes.rb +1 -0
  244. data/hyrax.gemspec +7 -18
  245. data/lib/generators/hyrax/models_generator.rb +0 -1
  246. data/lib/generators/hyrax/templates/db/migrate/20180302200051_add_branding_to_collection_type.rb.erb +5 -0
  247. data/lib/generators/hyrax/work/templates/feature_spec.rb.erb +1 -1
  248. data/lib/hyrax/configuration.rb +2 -4
  249. data/lib/hyrax/engine.rb +22 -4
  250. data/lib/hyrax/version.rb +1 -1
  251. data/spec/actors/hyrax/actors/lease_actor_spec.rb +16 -0
  252. data/spec/controllers/hyrax/admin/appearances_controller_spec.rb +1 -1
  253. data/spec/controllers/hyrax/admin/collection_types_controller_spec.rb +2 -0
  254. data/spec/controllers/hyrax/admin/features_controller_spec.rb +1 -1
  255. data/spec/controllers/hyrax/admin/workflow_roles_controller_spec.rb +1 -1
  256. data/spec/controllers/hyrax/admin/workflows_controller_spec.rb +1 -1
  257. data/spec/controllers/hyrax/batch_edits_controller_spec.rb +14 -1
  258. data/spec/controllers/hyrax/batch_uploads_controller_spec.rb +2 -2
  259. data/spec/controllers/hyrax/citations_controller_spec.rb +4 -2
  260. data/spec/controllers/hyrax/collections_controller_spec.rb +32 -4
  261. data/spec/controllers/hyrax/content_blocks_controller_spec.rb +1 -1
  262. data/spec/controllers/hyrax/dashboard/collections_controller_spec.rb +11 -6
  263. data/spec/controllers/hyrax/depositors_controller_spec.rb +11 -0
  264. data/spec/controllers/hyrax/downloads_controller_spec.rb +42 -0
  265. data/spec/controllers/hyrax/embargoes_controller_spec.rb +40 -1
  266. data/spec/controllers/hyrax/file_sets_controller_spec.rb +10 -2
  267. data/spec/controllers/hyrax/generic_works_controller_spec.rb +38 -6
  268. data/spec/controllers/hyrax/leases_controller_spec.rb +11 -0
  269. data/spec/controllers/hyrax/my/collections_controller_spec.rb +1 -1
  270. data/spec/controllers/hyrax/my/works_controller_spec.rb +1 -1
  271. data/spec/controllers/hyrax/pages_controller_spec.rb +1 -1
  272. data/spec/controllers/hyrax/stats_controller_spec.rb +2 -0
  273. data/spec/controllers/hyrax/transfers_controller_spec.rb +1 -1
  274. data/spec/factories/collection_types.rb +10 -1
  275. data/spec/factories/collections.rb +5 -3
  276. data/spec/factories/collections_factory.rb +3 -3
  277. data/spec/factories/file_sets.rb +2 -6
  278. data/spec/factories/generic_works.rb +68 -4
  279. data/spec/factory_tests/collections_factory_spec.rb +2 -1
  280. data/spec/features/batch_create_spec.rb +60 -0
  281. data/spec/features/batch_edit_spec.rb +1 -0
  282. data/spec/features/browse_dashboard_works_spec.rb +1 -0
  283. data/spec/features/collection_multi_membership_spec.rb +9 -6
  284. data/spec/features/collection_spec.rb +1 -1
  285. data/spec/features/collection_type_spec.rb +49 -1
  286. data/spec/features/create_work_admin_spec.rb +2 -2
  287. data/spec/features/create_work_spec.rb +1 -0
  288. data/spec/features/dashboard/all_works.rb +10 -2
  289. data/spec/features/dashboard/collection_spec.rb +38 -17
  290. data/spec/features/dashboard/display_admin_dashboard_spec.rb +29 -0
  291. data/spec/features/dashboard/display_dashboard_spec.rb +1 -1
  292. data/spec/features/edit_content_block_admin_spec.rb +45 -0
  293. data/spec/features/edit_work_spec.rb +40 -2
  294. data/spec/features/ownership_transfer_spec.rb +1 -0
  295. data/spec/features/proxy_spec.rb +2 -2
  296. data/spec/features/search_spec.rb +2 -5
  297. data/spec/features/work_show_spec.rb +14 -4
  298. data/spec/forms/hyrax/forms/admin/collection_type_form_spec.rb +1 -0
  299. data/spec/forms/hyrax/forms/collection_form_spec.rb +1 -1
  300. data/spec/helpers/hyrax/ability_helper_spec.rb +2 -2
  301. data/spec/helpers/hyrax/collections_helper_spec.rb +12 -4
  302. data/spec/javascripts/authority_select_spec.js +1 -1
  303. data/spec/javascripts/settings_spec.js +1 -0
  304. data/spec/jobs/attach_files_to_work_job_spec.rb +13 -0
  305. data/spec/jobs/import_url_job_spec.rb +14 -0
  306. data/spec/models/collection_spec.rb +1 -0
  307. data/spec/models/concerns/hyrax/collection_nesting_spec.rb +16 -0
  308. data/spec/models/hyrax/collection_type_spec.rb +1 -0
  309. data/spec/presenters/hyrax/collection_presenter_spec.rb +1 -100
  310. data/spec/presenters/hyrax/file_set_presenter_spec.rb +17 -2
  311. data/spec/presenters/hyrax/menu_presenter_spec.rb +6 -0
  312. data/spec/presenters/hyrax/work_show_presenter_spec.rb +15 -3
  313. data/spec/search_builders/hyrax/abstract_type_relation_spec.rb +18 -0
  314. data/spec/search_builders/hyrax/dashboard/collections_search_builder_spec.rb +30 -19
  315. data/spec/search_builders/hyrax/parent_collection_search_builder_spec.rb +15 -0
  316. data/spec/services/hyrax/collection_member_service_spec.rb +10 -19
  317. data/spec/services/hyrax/collection_types/create_service_spec.rb +35 -2
  318. data/spec/services/hyrax/collections/collection_member_service_spec.rb +1 -1
  319. data/spec/services/hyrax/qa_select_service_spec.rb +0 -1
  320. data/spec/support/selectors.rb +15 -0
  321. data/spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb +2 -0
  322. data/spec/views/hyrax/admin/collection_types/_form_settings.html.erb_spec.rb +1 -0
  323. data/spec/views/hyrax/admin/stats/show.html.erb_spec.rb +9 -0
  324. data/spec/views/hyrax/base/_attributes.html.erb_spec.rb +1 -1
  325. data/spec/views/hyrax/base/_relationships.html.erb_spec.rb +13 -1
  326. data/spec/views/hyrax/base/_show_actions.html.erb_spec.rb +10 -0
  327. data/spec/views/hyrax/base/show.html.erb_spec.rb +8 -0
  328. data/spec/views/hyrax/collections/_show_parent_collections.html.erb_spec.rb +3 -53
  329. data/spec/views/hyrax/dashboard/_sidebar.html.erb_spec.rb +22 -0
  330. data/spec/views/hyrax/dashboard/collections/_form_share.erb_spec.rb +2 -1
  331. data/spec/views/hyrax/dashboard/collections/_show_actions.html.erb_spec.rb +13 -0
  332. data/spec/views/hyrax/dashboard/collections/_show_parent_collection_row.html.erb_spec.rb +26 -8
  333. data/spec/views/hyrax/dashboard/collections/_show_parent_collections.html.erb_spec.rb +7 -43
  334. data/spec/views/hyrax/dashboard/collections/_subcollection_list.html.erb_spec.rb +13 -1
  335. data/spec/views/hyrax/dashboard/collections/show.html.erb_spec.rb +1 -0
  336. data/spec/views/hyrax/dashboard/profiles/_trophy_edit.html.erb_spec.rb +36 -0
  337. data/spec/views/hyrax/dashboard/profiles/edit.html.erb_spec.rb +0 -38
  338. data/spec/views/hyrax/dashboard/profiles/show.html.erb_spec.rb +37 -0
  339. data/spec/views/hyrax/depositors/index.html.erb_spec.rb +13 -0
  340. data/spec/views/hyrax/file_sets/_actions.html.erb_spec.rb +15 -0
  341. data/spec/views/hyrax/file_sets/media_display/_audio.html.erb_spec.rb +29 -0
  342. data/spec/views/hyrax/file_sets/media_display/_default.html.erb_spec.rb +1 -1
  343. data/spec/views/hyrax/file_sets/media_display/_video.html.erb_spec.rb +29 -0
  344. data/spec/views/hyrax/my/collections/_list_collections.html.erb_spec.rb +6 -2
  345. data/tasks/hyrax_dev.rake +1 -3
  346. data/template.rb +1 -1
  347. metadata +49 -41
  348. data/app/assets/javascripts/hyrax/collections_forms.js +0 -108
@@ -17,7 +17,8 @@ en:
17
17
  search:
18
18
  fields:
19
19
  facet:
20
- admin_set_sim: Collection
20
+ admin_set_sim: Admin Set
21
+ member_of_collections_ssim: Collection
21
22
  resource_type_sim: Resource type
22
23
  suppressed_bsi: Status
23
24
  show:
@@ -27,7 +28,7 @@ en:
27
28
  keyword: Keyword
28
29
  filters:
29
30
  title: 'Filtering by:'
30
- start_over: Clear filters
31
+ start_over: Start Over
31
32
  errors:
32
33
  messages:
33
34
  carrierwave_download_error: Couldn't download image.
@@ -526,6 +527,7 @@ en:
526
527
  type_label: Issue Type
527
528
  content_blocks:
528
529
  cancel: Cancel
530
+ change_tab_message: Are you sure you want to leave this tab? Any unsaved data will be lost.
529
531
  tabs:
530
532
  announcement_text: Announcement Text
531
533
  featured_researcher: Featured Researcher
@@ -549,7 +551,7 @@ en:
549
551
  works: All Works
550
552
  authorize_proxies: Authorize Proxies
551
553
  breadcrumbs:
552
- admin: Administration
554
+ admin: Dashboard
553
555
  collection_type_actions:
554
556
  close: Close
555
557
  create_collection: Create collection
@@ -611,7 +613,7 @@ en:
611
613
  action: Action
612
614
  agent_name: User/Group
613
615
  empty: No depositors have been added to this collection.
614
- help: Depositors of this collection can view the collection and add works to it, even if the visibility permissions of the collecton otherwise would not permit them to view it.
616
+ help: Depositors of this collection can view the collection and add works to it, even if the visibility permissions of the collection otherwise would not permit them to view it.
615
617
  remove: Remove
616
618
  title: Depositors
617
619
  type: Type
@@ -696,7 +698,7 @@ en:
696
698
  edit_access: 'Edit Access:'
697
699
  groups: 'Groups:'
698
700
  users: 'Users:'
699
- collections: Your Collections
701
+ collections: Collections
700
702
  facet_label:
701
703
  collections: 'Filter collections:'
702
704
  highlighted: 'Filter highlights:'
@@ -723,7 +725,9 @@ en:
723
725
  press_to: Press to
724
726
  results_per_page: Number of results to display per page
725
727
  show_label: Display all details of
726
- works: Your Works
728
+ works: Works
729
+ your_collections: Your Collections
730
+ your_works: Your Works
727
731
  nest_collections_form:
728
732
  create_under: "'%{child_title}' has been added to '%{parent_title}'"
729
733
  create_within: "'%{child_title}' has been added to '%{parent_title}'"
@@ -734,10 +738,11 @@ en:
734
738
  no_transfers: You haven't transferred any work
735
739
  proxy_activity: Proxy Activity
736
740
  proxy_delete: Delete Proxy
741
+ proxy_help: Select a user who can deposit works on your behalf. You will be the owner of works that this user deposits for you. You can revoke a proxy by clicking the Delete Proxy button.
737
742
  proxy_user: Proxy User
738
743
  show_admin:
739
744
  new_visitors: New Visitors
740
- registered_users: Registered users
745
+ registered_users: Registered Users
741
746
  repository_growth:
742
747
  subtitle: Past 90 days
743
748
  title: Repository Growth
@@ -756,7 +761,7 @@ en:
756
761
  files: Files deposited
757
762
  heading: Your Statistics
758
763
  works: Works created
759
- title: My Dashboard
764
+ title: Dashboard
760
765
  transfer_of_ownership: Transfers of Ownership
761
766
  transfer_works_link: Select works to transfer
762
767
  transfers_received: Transfers Received
@@ -793,7 +798,7 @@ en:
793
798
  table_headers:
794
799
  release_date: Embargo Release Date
795
800
  title: Title
796
- type: Type of Work
801
+ type: Type of Item
797
802
  viz_after: Visibility will Change to
798
803
  viz_current: Current Visibility
799
804
  featured_researchers: Featured Researchers
@@ -804,16 +809,16 @@ en:
804
809
  show:
805
810
  download: Download the file
806
811
  downloadable_content:
812
+ audio_link: Download audio
807
813
  default_link: Download file
808
814
  heading: Downloadable Content
809
815
  image_link: Download image
810
816
  office_link: Download file
811
817
  pdf_link: Download PDF
818
+ video_link: Download video
812
819
  file_sets:
813
820
  groups_description:
814
- description_html: 'The list of groups in the drop-down marked "Select a group" is a list of User Managed Groups that you are a member of. You may select a specific group and assign an access level for a file within %{application_name}, similarly to adding user access levels.
815
-
816
- '
821
+ description_html: 'The list of groups in the drop-down marked "Select a group" is a list of User Managed Groups that you are a member of. You may select a specific group and assign an access level for a file within %{application_name}, similarly to adding user access levels.'
817
822
  help:
818
823
  header: User Support
819
824
  override_text: Use app/views/static/help.html.erb to override this file.
@@ -879,7 +884,7 @@ en:
879
884
  table_headers:
880
885
  release_date: Lease Release Date
881
886
  title: Title
882
- type: Type of Work
887
+ type: Type of Item
883
888
  viz_after: Visibility will Change to
884
889
  viz_current: Current Visibility
885
890
  mailbox:
@@ -1093,6 +1098,7 @@ en:
1093
1098
  allow_multiple_membership: Allow works to belong to multiple collections of this type
1094
1099
  assigns_visibility: Allow collections of this type to assign initial visibility settings to a new work
1095
1100
  assigns_workflow: Allow collections of this type to assign workflow to a new work
1101
+ brandable: Allow collections of this type to be branded
1096
1102
  description: A brief statement of the general purpose of this collection type. Users will see this if they have more than one collection type to choose from when creating a new collection.
1097
1103
  discoverable: Allow collections of this type to be discoverable
1098
1104
  nestable: Allow collections of this type to be nested (a collection can contain other collections)
@@ -1123,9 +1129,10 @@ en:
1123
1129
  allow_multiple_membership: MULTIPLE MEMBERSHIP
1124
1130
  assigns_visibility: VISIBILITY
1125
1131
  assigns_workflow: WORKFLOW
1132
+ brandable: BRANDING
1126
1133
  description: Type description
1127
1134
  discoverable: DISCOVERY
1128
- nestable: NESTABLE
1135
+ nestable: NESTING
1129
1136
  require_membership: REQUIRE MEMBERSHIP
1130
1137
  sharable: SHARING
1131
1138
  share_applies_to_new_works: APPLY TO NEW WORKS
@@ -18,6 +18,7 @@ es:
18
18
  fields:
19
19
  facet:
20
20
  admin_set_sim: Colección
21
+ member_of_collections_ssim: Colección
21
22
  resource_type_sim: Tipo de recurso
22
23
  suppressed_bsi: Estado
23
24
  show:
@@ -525,6 +526,7 @@ es:
525
526
  type_label: Tipo de Problema
526
527
  content_blocks:
527
528
  cancel: Cancelar
529
+ change_tab_message: "¿Seguro que quieres salir de esta pestaña? Cualquier información no guardada se perderá."
528
530
  tabs:
529
531
  announcement_text: Texto del Anuncio
530
532
  featured_researcher: Investigador Destacado
@@ -723,6 +725,8 @@ es:
723
725
  results_per_page: Número de resultados para mostrar por página
724
726
  show_label: Ver todos los detalles de
725
727
  works: Mis Trabajos
728
+ your_collections: Tus colecciones
729
+ your_works: Tus trabajos
726
730
  nest_collections_form:
727
731
  create_under: "'%{child_title}' ha sido agregado a '%{parent_title}'"
728
732
  create_within: "'%{child_title}' ha sido agregado a '%{parent_title}'"
@@ -733,6 +737,7 @@ es:
733
737
  no_transfers: No ha transferido ningún trabajo
734
738
  proxy_activity: Actividad de Proxy
735
739
  proxy_delete: Eliminar proxy
740
+ proxy_help: Seleccione un usuario que pueda depositar trabajos en su nombre. Usted será el propietario de los trabajos que este usuario deposite para usted. Puede revocar un proxy haciendo clic en el botón Eliminar proxy.
736
741
  proxy_user: Usuario de Proxy
737
742
  show_admin:
738
743
  new_visitors: Visitantes Nuevos
@@ -803,11 +808,13 @@ es:
803
808
  show:
804
809
  download: Descargar el archivo
805
810
  downloadable_content:
811
+ audio_link: Descargar audio
806
812
  default_link: Descargar archivo
807
813
  heading: Contenido Descargable
808
814
  image_link: Descargar imagen
809
815
  office_link: Descargar archivo
810
816
  pdf_link: Descargar PDF
817
+ video_link: Descargar video
811
818
  file_sets:
812
819
  groups_description:
813
820
  description_html: 'La lista de grupos del listado "Seleccionar un grupo" es una lista de Grupos Administrados por el Usuario de la que que es miembro. Puede seleccionar un grupo específico y asignar un nivel de acceso por archivo dentro de %{application_name}, y del mismo modo puede agregar niveles de acceso de usuarios.
@@ -1092,6 +1099,7 @@ es:
1092
1099
  allow_multiple_membership: Permitir que las obras pertenezcan a varias colecciones de este tipo
1093
1100
  assigns_visibility: Permitir colecciones de este tipo asignar ajustes de visibilidad inicial a un nuevo trabajo
1094
1101
  assigns_workflow: Permitir colecciones de este tipo para asignar flujo de trabajo a un nuevo trabajo
1102
+ brandable: Permitir que las colecciones de este tipo sean marcadas
1095
1103
  description: Una breve declaración del propósito general de este tipo de colección. Los usuarios verán esto si tienen más de un tipo de colección para elegir al crear una nueva colección.
1096
1104
  discoverable: Permitir que colecciones de este tipo sean reconocibles
1097
1105
  nestable: Permitir que las colecciones de este tipo se aniden (una colección puede contener otras colecciones)
@@ -1122,6 +1130,7 @@ es:
1122
1130
  allow_multiple_membership: MIEMBROS MÚLTIPLES
1123
1131
  assigns_visibility: VISIBILIDAD
1124
1132
  assigns_workflow: FLUJO DE TRABAJO
1133
+ brandable: MARCA
1125
1134
  description: Descripción del tipo
1126
1135
  discoverable: DESCUBRIMIENTO
1127
1136
  nestable: NESTABLE
@@ -18,6 +18,7 @@ fr:
18
18
  fields:
19
19
  facet:
20
20
  admin_set_sim: Collection
21
+ member_of_collections_ssim: Collection
21
22
  resource_type_sim: Type de ressource
22
23
  suppressed_bsi: Statut
23
24
  show:
@@ -526,6 +527,7 @@ fr:
526
527
  type_label: type de probleme
527
528
  content_blocks:
528
529
  cancel: Annuler
530
+ change_tab_message: Êtes-vous sûr de vouloir quitter cet onglet? Toutes les données non enregistrées seront perdues.
529
531
  tabs:
530
532
  announcement_text: Texte d'annonce
531
533
  featured_researcher: Chercheur en vedette
@@ -724,6 +726,8 @@ fr:
724
726
  results_per_page: Nombre de résultats à afficher par page
725
727
  show_label: Afficher tous les détails de
726
728
  works: Vos travaux
729
+ your_collections: Vos collections
730
+ your_works: Vos œuvres
727
731
  nest_collections_form:
728
732
  create_under: "'%{child_title}' a été ajouté à '%{parent_title}'"
729
733
  create_within: "'%{child_title}' a été ajouté à '%{parent_title}'"
@@ -734,6 +738,7 @@ fr:
734
738
  no_transfers: Vous n'avez transféré aucun travail
735
739
  proxy_activity: Activité de procuration
736
740
  proxy_delete: Supprimer le proxy
741
+ proxy_help: Sélectionnez un utilisateur qui peut déposer des œuvres en votre nom. Vous serez le propriétaire des œuvres que cet utilisateur dépose pour vous. Vous pouvez révoquer un proxy en cliquant sur le bouton Supprimer le proxy.
737
742
  proxy_user: Utilisateur proxy
738
743
  show_admin:
739
744
  new_visitors: Nouveaux visiteurs
@@ -804,11 +809,13 @@ fr:
804
809
  show:
805
810
  download: Télécharger le fichier
806
811
  downloadable_content:
812
+ audio_link: Télécharger l'audio
807
813
  default_link: Télécharger un fichier
808
814
  heading: Contenu téléchargeable
809
815
  image_link: Télécharger l'image
810
816
  office_link: Télécharger un fichier
811
817
  pdf_link: Télécharger le fichier PDF
818
+ video_link: Télécharger la video
812
819
  file_sets:
813
820
  groups_description:
814
821
  description_html: La liste des groupes dans le menu déroulant intitulé «Sélectionner un groupe» est une liste des groupes gérés par l'utilisateur dont vous êtes membre. Vous pouvez sélectionner un groupe spécifique et attribuer un niveau d'accès pour un fichier dans %{application_name}, de même que l'ajout de niveaux d'accès utilisateur.
@@ -1091,6 +1098,7 @@ fr:
1091
1098
  allow_multiple_membership: Autoriser les œuvres à appartenir à plusieurs collections de ce type
1092
1099
  assigns_visibility: Autoriser les collections de ce type à attribuer des paramètres de visibilité initiaux à un nouveau travail
1093
1100
  assigns_workflow: Autoriser les collections de ce type à affecter un workflow à un nouveau travail
1101
+ brandable: Autoriser le marquage des collections de ce type
1094
1102
  description: Une brève déclaration de l'objectif général de ce type de collection. Les utilisateurs verront cela s'ils ont plus d'un type de collection à choisir lors de la création d'une nouvelle collection.
1095
1103
  discoverable: Autoriser les collections de ce type à être détectables
1096
1104
  nestable: Autoriser l'imbrication de collections de ce type (une collection peut contenir d'autres collections)
@@ -1121,6 +1129,7 @@ fr:
1121
1129
  allow_multiple_membership: MEMBRES MULTIPLES
1122
1130
  assigns_visibility: VISIBILITÉ
1123
1131
  assigns_workflow: FLUX DE TRAVAIL
1132
+ brandable: L'IMAGE DE MARQUE
1124
1133
  description: Description du type
1125
1134
  discoverable: DÉCOUVERTE
1126
1135
  nestable: NESTABLE
@@ -18,6 +18,7 @@ it:
18
18
  fields:
19
19
  facet:
20
20
  admin_set_sim: Collezione
21
+ member_of_collections_ssim: Collezione
21
22
  resource_type_sim: Tipo di risorsa
22
23
  suppressed_bsi: Stato
23
24
  show:
@@ -525,6 +526,7 @@ it:
525
526
  type_label: tipo di problema
526
527
  content_blocks:
527
528
  cancel: Annulla
529
+ change_tab_message: Sei sicuro di voler lasciare questa scheda? Tutti i dati non salvati andranno persi.
528
530
  tabs:
529
531
  announcement_text: Testo annuncio
530
532
  featured_researcher: Ricercatore in primo piano
@@ -723,6 +725,8 @@ it:
723
725
  results_per_page: Numero di risultati da visualizzare per pagina
724
726
  show_label: Visualizza tutti i dettagli di
725
727
  works: Le tue opere
728
+ your_collections: Le tue collezioni
729
+ your_works: I tuoi lavori
726
730
  nest_collections_form:
727
731
  create_under: "'%{child_title}' è stato aggiunto a '%{parent_title}'"
728
732
  create_within: "'%{child_title}' è stato aggiunto a '%{parent_title}'"
@@ -733,6 +737,7 @@ it:
733
737
  no_transfers: Non hai trasferito alcun lavoro
734
738
  proxy_activity: Attività proxy
735
739
  proxy_delete: Elimina proxy
740
+ proxy_help: Seleziona un utente che può depositare opere per tuo conto. Sarai il proprietario delle opere che questo utente deposita per te. È possibile revocare un proxy facendo clic sul pulsante Elimina proxy.
736
741
  proxy_user: Utente Proxy
737
742
  show_admin:
738
743
  new_visitors: Nuovi visitatori
@@ -803,11 +808,13 @@ it:
803
808
  show:
804
809
  download: Scarica il file
805
810
  downloadable_content:
811
+ audio_link: Scarica audio
806
812
  default_link: Download file
807
813
  heading: Contenuto scaricabile
808
814
  image_link: Scarica l'immagine
809
815
  office_link: Download file
810
816
  pdf_link: Scarica il pdf
817
+ video_link: Scarica video
811
818
  file_sets:
812
819
  groups_description:
813
820
  description_html: L'elenco dei gruppi nel menu a discesa contrassegnato con "Seleziona un gruppo" è un elenco di Gruppi gestiti utente di cui sei membro. È possibile selezionare un gruppo specifico e assegnare un livello di accesso per un file all'interno di %{application_name}, analogamente ad aggiungere livelli di accesso utente.
@@ -1090,6 +1097,7 @@ it:
1090
1097
  allow_multiple_membership: Consenti alle opere di appartenere a più raccolte di questo tipo
1091
1098
  assigns_visibility: Consenti a raccolte di questo tipo di assegnare le impostazioni di visibilità iniziale a una nuova opera
1092
1099
  assigns_workflow: Consenti a raccolte di questo tipo di assegnare un flusso di lavoro a una nuova opera
1100
+ brandable: Consenti alle raccolte di questo tipo di essere marchiate
1093
1101
  description: Una breve dichiarazione dello scopo generale di questo tipo di raccolta. Gli utenti vedranno questo se hanno più di un tipo di raccolta tra cui scegliere durante la creazione di una nuova raccolta.
1094
1102
  discoverable: Consenti a raccolte di questo tipo di essere rilevabili
1095
1103
  nestable: Consenti l'inserimento di raccolte di questo tipo (una raccolta può contenere altre raccolte)
@@ -1120,6 +1128,7 @@ it:
1120
1128
  allow_multiple_membership: MULTIPLE MEMBERSHIP
1121
1129
  assigns_visibility: VISIBILITÀ
1122
1130
  assigns_workflow: FLUSSO DI LAVORO
1131
+ brandable: IL BRANDING
1123
1132
  description: Tipo descrizione
1124
1133
  discoverable: SCOPERTA
1125
1134
  nestable: inseribile
@@ -18,6 +18,7 @@ pt-BR:
18
18
  fields:
19
19
  facet:
20
20
  admin_set_sim: Coleção
21
+ member_of_collections_ssim: Coleção
21
22
  resource_type_sim: Tipo de recurso
22
23
  suppressed_bsi: Status
23
24
  show:
@@ -520,6 +521,7 @@ pt-BR:
520
521
  type_label: Tipo de problema
521
522
  content_blocks:
522
523
  cancel: Cancelar
524
+ change_tab_message: Sei sicuro di voler lasciare questa scheda? Tutti i dati non salvati andranno persi.
523
525
  tabs:
524
526
  announcement_text: Texto de Anúncio
525
527
  featured_researcher: Pesquisador em destaque
@@ -718,6 +720,8 @@ pt-BR:
718
720
  results_per_page: Número de resultados a serem exibidos por página
719
721
  show_label: Exibir todos os detalhes de
720
722
  works: Seus trabalhos
723
+ your_collections: Suas coleções
724
+ your_works: Seus trabalhos
721
725
  nest_collections_form:
722
726
  create_under: "'%{child_title}' foi adicionado a '%{parent_title}'"
723
727
  create_within: "'%{child_title}' foi adicionado a '%{parent_title}'"
@@ -728,6 +732,7 @@ pt-BR:
728
732
  no_transfers: Você não transferiu nenhum trabalho
729
733
  proxy_activity: Atividade de proxy
730
734
  proxy_delete: Eliminar Proxy
735
+ proxy_help: Selecione um usuário que possa depositar obras em seu nome. Você será o proprietário das obras que esse usuário deposita para você. Você pode revogar um proxy clicando no botão Excluir Proxy.
731
736
  proxy_user: Usuário Proxy
732
737
  show_admin:
733
738
  new_visitors: Novos visitantes
@@ -798,11 +803,13 @@ pt-BR:
798
803
  show:
799
804
  download: Baixe o arquivo
800
805
  downloadable_content:
806
+ audio_link: Download de áudio
801
807
  default_link: "⇬ Fazer download do arquivo"
802
808
  heading: Conteúdo disponível para download
803
809
  image_link: Baixe a imagem
804
810
  office_link: "⇬ Fazer download do arquivo"
805
811
  pdf_link: baixar PDF
812
+ video_link: Baixar video
806
813
  file_sets:
807
814
  groups_description:
808
815
  description_html: A lista de grupos no menu suspenso marcado como "Selecionar um grupo" é uma lista de Grupos Gerenciados pelo Usuário de que você é membro. Você pode selecionar um grupo específico e atribuir um nível de acesso para um arquivo dentro do %{application_name}, de forma semelhante à adição de níveis de acesso ao usuário.
@@ -1085,6 +1092,7 @@ pt-BR:
1085
1092
  allow_multiple_membership: Permitir que as obras pertençam a múltiplas coleções desse tipo
1086
1093
  assigns_visibility: Permitir coleções deste tipo para atribuir configurações de visibilidade inicial a um novo trabalho
1087
1094
  assigns_workflow: Permitir coleções desse tipo para atribuir fluxo de trabalho a um novo trabalho
1095
+ brandable: Permitir que coleções deste tipo sejam marcadas
1088
1096
  description: Uma breve descrição do propósito geral deste tipo de coleção. Os usuários verão isso se tiverem mais de um tipo de coleção para escolher ao criar uma nova coleção.
1089
1097
  discoverable: Permitir que as coleções desse tipo sejam detectáveis
1090
1098
  nestable: Permitir que coleções deste tipo sejam aninhadas (uma coleção pode conter outras coleções)
@@ -1115,6 +1123,7 @@ pt-BR:
1115
1123
  allow_multiple_membership: MEMBROS MÚLTIPLOS
1116
1124
  assigns_visibility: VISIBILIDADE
1117
1125
  assigns_workflow: FLUXO DE TRABALHO
1126
+ brandable: MARCA
1118
1127
  description: Descrição do tipo
1119
1128
  discoverable: DESCOBERTA
1120
1129
  nestable: NESTABLE
@@ -18,6 +18,7 @@ zh:
18
18
  fields:
19
19
  facet:
20
20
  admin_set_sim: 集
21
+ member_of_collections_ssim: 采集
21
22
  resource_type_sim: 资源类型
22
23
  suppressed_bsi: 状况
23
24
  show:
@@ -523,6 +524,7 @@ zh:
523
524
  type_label: 问题类型
524
525
  content_blocks:
525
526
  cancel: 取消
527
+ change_tab_message: 你确定要离开这个标签吗?任何未保存的数据都将丢失。
526
528
  tabs:
527
529
  announcement_text: 公告文字
528
530
  featured_researcher: 特色研究员
@@ -721,6 +723,8 @@ zh:
721
723
  results_per_page: 每页显示的结果数量
722
724
  show_label: 展示所有细节
723
725
  works: 您的作品
726
+ your_collections: 你的收藏
727
+ your_works: 你的作品
724
728
  nest_collections_form:
725
729
  create_under: "'%{child_title}'已被添加到'%{parent_title}'"
726
730
  create_within: "'%{child_title}'已被添加到'%{parent_title}'"
@@ -731,6 +735,7 @@ zh:
731
735
  no_transfers: 您没有转让任何作品
732
736
  proxy_activity: 代理活动
733
737
  proxy_delete: 删除代理
738
+ proxy_help: 选择一个可以代表您存放作品的用户。您将成为该用户为您存储的作品的所有者。您可以通过单击删除代理按钮来撤销代理。
734
739
  proxy_user: 代理用户
735
740
  show_admin:
736
741
  new_visitors: 新访问者
@@ -801,11 +806,13 @@ zh:
801
806
  show:
802
807
  download: 下载文件
803
808
  downloadable_content:
809
+ audio_link: 下载音频
804
810
  default_link: 下载文件
805
811
  heading: 可下载的内容
806
812
  image_link: 下载图片
807
813
  office_link: 下载文件
808
814
  pdf_link: 下载PDF文件
815
+ video_link: 下载视频
809
816
  file_sets:
810
817
  groups_description:
811
818
  description_html: 标有"选择一个群"的下拉框内是您所属的一组用户管理群的清单。您可以选择一个特定的群,指定对%{application_name}中文件的访问级别,类似于添加用户访问级别。
@@ -1088,6 +1095,7 @@ zh:
1088
1095
  allow_multiple_membership: 允许作品属于此类型的多个集合
1089
1096
  assigns_visibility: 允许此类型的集合将初始可见性设置分配给新作品
1090
1097
  assigns_workflow: 允许此类型的集合将工作流分配到新作品
1098
+ brandable: 允许将此类型的集合打上烙印
1091
1099
  description: 关于这种集合类型的一般用途的简要说明。如果用户创建新集合时有多个集合类型可供选择,用户将会看到这一点。
1092
1100
  discoverable: 允许这种类型的集合被发现
1093
1101
  nestable: 允许嵌套此类型的集合(集合可以包含其他集合)
@@ -1118,6 +1126,7 @@ zh:
1118
1126
  allow_multiple_membership: 多会员
1119
1127
  assigns_visibility: 能见度
1120
1128
  assigns_workflow: 工作流程
1129
+ brandable: 品牌
1121
1130
  description: 类型描述
1122
1131
  discoverable: 发现
1123
1132
  nestable: 嵌套
data/config/routes.rb CHANGED
@@ -83,6 +83,7 @@ Hyrax::Engine.routes.draw do
83
83
  # Depositors routes for proxy deposit
84
84
  post 'users/:user_id/depositors' => 'depositors#create', as: 'user_depositors'
85
85
  delete 'users/:user_id/depositors/:id' => 'depositors#destroy', as: 'user_depositor'
86
+ get 'proxies' => 'depositors#index', as: 'depositors'
86
87
 
87
88
  resources :featured_work_lists, path: 'featured_works', only: :create
88
89