hyrax 2.1.0.beta2 → 2.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODE_OF_CONDUCT.md +5 -5
  3. data/.github/CONTRIBUTING.md +2 -2
  4. data/.rubocop.yml +1 -0
  5. data/.rubocop_fixme.yml +2 -0
  6. data/Gemfile +1 -0
  7. data/README.md +3 -2
  8. data/app/actors/hyrax/actors/collections_membership_actor.rb +3 -0
  9. data/app/actors/hyrax/actors/create_with_remote_files_actor.rb +4 -3
  10. data/app/actors/hyrax/actors/default_admin_set_actor.rb +9 -6
  11. data/app/assets/javascripts/hyrax.js +3 -0
  12. data/app/assets/javascripts/hyrax/app.js.erb +14 -0
  13. data/app/assets/javascripts/hyrax/batch_edit.js +2 -1
  14. data/app/assets/javascripts/hyrax/collection_types.es6 +97 -36
  15. data/app/assets/javascripts/hyrax/collections.js +15 -49
  16. data/app/assets/javascripts/hyrax/collections_utils.es6 +116 -0
  17. data/app/assets/javascripts/hyrax/collections_v2.es6 +57 -0
  18. data/app/assets/javascripts/hyrax/content_blocks.js +1 -13
  19. data/app/assets/javascripts/hyrax/nav_safety.js +41 -0
  20. data/app/assets/javascripts/hyrax/turbolinks_events.js +3 -0
  21. data/app/assets/stylesheets/hyrax/_collection_types.scss +46 -2
  22. data/app/assets/stylesheets/hyrax/_work-show.scss +6 -9
  23. data/app/assets/stylesheets/hyrax/dashboard.scss +2 -0
  24. data/app/assets/stylesheets/hyrax/sidebar.scss +4 -0
  25. data/app/controllers/concerns/hyrax/works_controller_behavior.rb +10 -2
  26. data/app/controllers/hyrax/admin/admin_sets_controller.rb +2 -9
  27. data/app/controllers/hyrax/admin/collection_types_controller.rb +1 -1
  28. data/app/controllers/hyrax/batch_edits_controller.rb +30 -4
  29. data/app/controllers/hyrax/dashboard/collection_members_controller.rb +1 -0
  30. data/app/controllers/hyrax/dashboard/collections_controller.rb +4 -1
  31. data/app/controllers/hyrax/downloads_controller.rb +7 -1
  32. data/app/forms/hyrax/forms/admin/collection_type_form.rb +1 -1
  33. data/app/indexers/hyrax/repository_reindexer.rb +1 -1
  34. data/app/jobs/attach_files_to_work_job.rb +8 -4
  35. data/app/jobs/import_url_job.rb +11 -5
  36. data/app/models/admin_set.rb +25 -3
  37. data/app/models/concerns/hyrax/collection_behavior.rb +23 -11
  38. data/app/models/concerns/hyrax/collection_nesting.rb +22 -3
  39. data/app/models/hyrax/permission_template_access.rb +7 -4
  40. data/app/presenters/hyrax/admin_set_presenter.rb +21 -0
  41. data/app/presenters/hyrax/collection_presenter.rb +23 -1
  42. data/app/presenters/hyrax/dashboard/user_presenter.rb +4 -0
  43. data/app/presenters/hyrax/presents_attributes.rb +6 -2
  44. data/app/presenters/hyrax/work_show_presenter.rb +4 -0
  45. data/app/renderers/hyrax/renderers/attribute_renderer.rb +14 -0
  46. data/app/services/hyrax/adapters/nesting_index_adapter.rb +19 -39
  47. data/app/services/hyrax/admin_set_create_service.rb +1 -1
  48. data/app/services/hyrax/collection_types/create_service.rb +4 -0
  49. data/app/services/hyrax/collections/migration_service.rb +25 -2
  50. data/app/services/hyrax/collections/nested_collection_persistence_service.rb +8 -3
  51. data/app/services/hyrax/collections/nested_collection_query_service.rb +3 -3
  52. data/app/services/hyrax/default_middleware_stack.rb +3 -3
  53. data/app/services/hyrax/multiple_membership_checker.rb +4 -2
  54. data/app/views/catalog/_index_header_list_collection.html.erb +1 -1
  55. data/app/views/catalog/_search_form.html.erb +0 -4
  56. data/app/views/hyrax/admin/admin_sets/_show_actions.html.erb +27 -0
  57. data/app/views/hyrax/admin/admin_sets/show.html.erb +1 -25
  58. data/app/views/hyrax/admin/collection_types/_form.html.erb +17 -6
  59. data/app/views/hyrax/admin/collection_types/_form_appearance.html.erb +5 -0
  60. data/app/views/hyrax/admin/collection_types/_form_participant_table.html.erb +1 -1
  61. data/app/views/hyrax/admin/collection_types/_form_participants.html.erb +56 -52
  62. data/app/views/hyrax/admin/collection_types/edit.html.erb +9 -7
  63. data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
  64. data/app/views/hyrax/base/_attribute_rows.html.erb +15 -14
  65. data/app/views/hyrax/base/_form.html.erb +1 -0
  66. data/app/views/hyrax/base/_form_collections_error.html.erb +1 -0
  67. data/app/views/hyrax/base/_items.html.erb +3 -2
  68. data/app/views/hyrax/base/_metadata.html.erb +5 -7
  69. data/app/views/hyrax/base/_relationships.html.erb +3 -5
  70. data/app/views/hyrax/base/_relationships_parent_row.html.erb +4 -5
  71. data/app/views/hyrax/base/_relationships_parent_rows.html.erb +2 -1
  72. data/app/views/hyrax/base/_show_actions.html.erb +11 -1
  73. data/app/views/hyrax/batch_edits/edit.html.erb +57 -17
  74. data/app/views/hyrax/collections/_list_collections.html.erb +1 -1
  75. data/app/views/hyrax/collections/show.html.erb +1 -1
  76. data/app/views/hyrax/content_blocks/_form.html.erb +8 -7
  77. data/app/views/hyrax/dashboard/_index_partials/_current_proxy_rights.html.erb +17 -0
  78. data/app/views/hyrax/dashboard/collections/_collection_title.html.erb +1 -3
  79. data/app/views/hyrax/dashboard/collections/_default_group.html.erb +30 -0
  80. data/app/views/hyrax/dashboard/collections/_form_branding.html.erb +2 -2
  81. data/app/views/hyrax/dashboard/collections/_form_for_select_collection.html.erb +1 -1
  82. data/app/views/hyrax/dashboard/collections/_form_share.html.erb +2 -2
  83. data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +13 -2
  84. data/app/views/hyrax/dashboard/show_user.html.erb +10 -9
  85. data/app/views/hyrax/my/collections/_list_collections.html.erb +10 -3
  86. data/app/views/hyrax/my/collections/_modal_add_subcollection.html.erb +1 -1
  87. data/app/views/hyrax/my/collections/_modal_add_to_collection.html.erb +1 -1
  88. data/app/views/hyrax/my/collections/_modal_delete_collections_deny.html.erb +14 -0
  89. data/app/views/hyrax/my/collections/index.html.erb +1 -0
  90. data/app/views/shared/_nav_safety_modal.html.erb +12 -0
  91. data/config/features.rb +4 -0
  92. data/config/initializers/samvera-nesting_indexer_initializer.rb +1 -0
  93. data/config/locales/hyrax.de.yml +26 -11
  94. data/config/locales/hyrax.en.yml +21 -6
  95. data/config/locales/hyrax.es.yml +17 -2
  96. data/config/locales/hyrax.fr.yml +17 -2
  97. data/config/locales/hyrax.it.yml +17 -2
  98. data/config/locales/hyrax.pt-BR.yml +17 -2
  99. data/config/locales/hyrax.zh.yml +17 -2
  100. data/config/locales/simple_form.en.yml +6 -27
  101. data/hyrax.gemspec +2 -2
  102. data/lib/generators/hyrax/assets_generator.rb +4 -0
  103. data/lib/generators/hyrax/install_generator.rb +10 -0
  104. data/lib/generators/hyrax/templates/app/assets/images/unauthorized.png +0 -0
  105. data/lib/generators/hyrax/templates/config/locales/hyrax.en.yml +6 -5
  106. data/lib/generators/hyrax/templates/config/tinymce.yml +12 -7
  107. data/lib/generators/hyrax/templates/db/migrate/20180406202557_add_badge_color_to_collection_types.rb.erb +5 -0
  108. data/lib/hyrax/configuration.rb +1 -1
  109. data/lib/hyrax/version.rb +1 -1
  110. data/spec/actors/hyrax/actors/collections_membership_actor_spec.rb +24 -0
  111. data/spec/actors/hyrax/actors/create_with_remote_files_actor_spec.rb +19 -1
  112. data/spec/actors/hyrax/actors/default_admin_set_actor_spec.rb +41 -8
  113. data/spec/actors/hyrax/actors/file_set_actor_spec.rb +4 -12
  114. data/spec/actors/hyrax/actors/generic_work_actor_spec.rb +3 -7
  115. data/spec/controllers/hyrax/admin/strategies_controller_spec.rb +13 -2
  116. data/spec/controllers/hyrax/batch_edits_controller_spec.rb +83 -8
  117. data/spec/controllers/hyrax/dashboard/collections_controller_spec.rb +3 -0
  118. data/spec/controllers/hyrax/downloads_controller_spec.rb +26 -5
  119. data/spec/controllers/hyrax/file_sets_controller_spec.rb +3 -6
  120. data/spec/controllers/hyrax/generic_works_controller_json_spec.rb +4 -4
  121. data/spec/controllers/hyrax/generic_works_controller_spec.rb +3 -23
  122. data/spec/controllers/hyrax/transfers_controller_spec.rb +1 -1
  123. data/spec/factories/admin_sets_lw.rb +215 -0
  124. data/spec/factories/collections.rb +10 -10
  125. data/spec/factory_tests/adminsets_factory_spec.rb +132 -0
  126. data/spec/factory_tests/collections_factory_spec.rb +3 -3
  127. data/spec/features/batch_create_spec.rb +5 -8
  128. data/spec/features/batch_edit_spec.rb +49 -2
  129. data/spec/features/collection_multi_membership_spec.rb +29 -14
  130. data/spec/features/collection_type_spec.rb +9 -2
  131. data/spec/features/create_work_admin_spec.rb +1 -1
  132. data/spec/features/create_work_spec.rb +1 -1
  133. data/spec/features/dashboard/collection_spec.rb +16 -12
  134. data/spec/features/edit_content_block_admin_spec.rb +29 -12
  135. data/spec/features/embargo_spec.rb +55 -0
  136. data/spec/features/proxy_spec.rb +3 -1
  137. data/spec/features/work_show_spec.rb +20 -4
  138. data/spec/forms/hyrax/forms/admin/collection_type_form_spec.rb +1 -0
  139. data/spec/indexers/hyrax/repository_reindexer_spec.rb +1 -1
  140. data/spec/jobs/attach_files_to_work_job_spec.rb +15 -3
  141. data/spec/jobs/batch_create_job_spec.rb +6 -6
  142. data/spec/jobs/create_work_job_spec.rb +1 -1
  143. data/spec/models/admin_set_spec.rb +10 -8
  144. data/spec/models/collection_spec.rb +1 -1
  145. data/spec/models/concerns/hyrax/collection_nesting_spec.rb +6 -3
  146. data/spec/models/flipflop_spec.rb +8 -0
  147. data/spec/models/hyrax/work_behavior_spec.rb +1 -1
  148. data/spec/presenters/hyrax/admin_set_presenter_spec.rb +70 -0
  149. data/spec/presenters/hyrax/collection_presenter_spec.rb +66 -0
  150. data/spec/renderers/hyrax/renderers/attribute_renderer_spec.rb +19 -0
  151. data/spec/services/hyrax/adapters/nesting_index_adapter_spec.rb +31 -21
  152. data/spec/services/hyrax/collection_types/create_service_spec.rb +7 -4
  153. data/spec/services/hyrax/collections/migration_service_spec.rb +204 -17
  154. data/spec/services/hyrax/collections/nested_collection_persistence_service_spec.rb +1 -1
  155. data/spec/services/hyrax/collections/permissions_create_service_spec.rb +1 -1
  156. data/spec/services/hyrax/collections/permissions_service_spec.rb +4 -0
  157. data/spec/services/hyrax/default_middleware_stack_spec.rb +1 -1
  158. data/spec/services/hyrax/multiple_membership_checker_spec.rb +4 -4
  159. data/spec/services/hyrax/workflow/grant_edit_to_depositor_spec.rb +1 -1
  160. data/spec/services/hyrax/workflow/grant_read_to_depositor_spec.rb +1 -1
  161. data/spec/services/hyrax/workflow/revoke_edit_from_depositor_spec.rb +1 -1
  162. data/spec/spec_helper.rb +35 -2
  163. data/spec/support/features/batch_edit_actions.rb +1 -1
  164. data/spec/support/selectors.rb +15 -0
  165. data/spec/views/hyrax/admin/admin_sets/_show_actions.html.erb_spec.rb +66 -0
  166. data/spec/views/hyrax/admin/admin_sets/show.html.erb_spec.rb +5 -34
  167. data/spec/views/hyrax/admin/collection_types/_form.html.erb_spec.rb +3 -1
  168. data/spec/views/hyrax/admin/collection_types/_form_appearance.html.erb_spec.rb +22 -0
  169. data/spec/views/hyrax/admin/collection_types/_form_participants.html.erb_spec.rb +11 -3
  170. data/spec/views/hyrax/base/_items.html.erb_spec.rb +46 -0
  171. data/spec/views/hyrax/base/_relationships.html.erb_spec.rb +1 -1
  172. data/spec/views/hyrax/base/_show_actions.html.erb_spec.rb +4 -2
  173. data/spec/views/hyrax/dashboard/collections/_default_group.html.erb_spec.rb +43 -0
  174. data/spec/views/hyrax/dashboard/collections/_list_collections.html.erb_spec.rb +51 -0
  175. data/spec/views/hyrax/dashboard/collections/show.html.erb_spec.rb +1 -0
  176. data/spec/views/hyrax/dashboard/show_user_spec.rb +5 -2
  177. data/spec/views/hyrax/my/collections/_list_collections.html.erb_spec.rb +2 -0
  178. data/template.rb +1 -1
  179. metadata +30 -13
  180. data/app/views/hyrax/content_blocks/_modal_content_block.html.erb +0 -15
@@ -49,6 +49,8 @@ fr:
49
49
  new: Nouvelle collection
50
50
  delete: Effacer
51
51
  edit: modifier
52
+ less: Moins
53
+ more: Plus
52
54
  refresh: Rafraîchir
53
55
  remove: Retirer
54
56
  work:
@@ -169,9 +171,10 @@ fr:
169
171
  header: Créer un nouvel ensemble administratif
170
172
  show:
171
173
  breadcrumb: Ensemble de vues
172
- confirm_delete: Êtes-vous sûr de vouloir supprimer ce Set administratif? Cette action ne peut pas être annulée.
173
174
  header: Ensemble administratif
174
175
  item_list_header: Fonctionne dans cet ensemble
176
+ show_actions:
177
+ confirm_delete: Êtes-vous sûr de vouloir supprimer cet ensemble administratif? Cette action ne peut pas être annulée.
175
178
  appearances:
176
179
  show:
177
180
  header: Apparence
@@ -193,6 +196,7 @@ fr:
193
196
  not_empty: Le type de collection ne peut pas être modifié car il a des collections
194
197
  form:
195
198
  tab:
199
+ appearance: Couleur du badge
196
200
  metadata: La description
197
201
  participants: Participants
198
202
  settings: Paramètres
@@ -212,7 +216,9 @@ fr:
212
216
  title: Les gestionnaires
213
217
  type: Type
214
218
  form_participants:
219
+ add_group: Ajouter un groupe
215
220
  add_participants: Ajouter des participants
221
+ add_user: Ajouter un utilisateur
216
222
  current_participants: Participants actuels
217
223
  header: Participants à la collecte
218
224
  instructions: Vous pouvez désigner des groupes et des utilisateurs en tant que créateurs et gestionnaires de collections de ce type
@@ -240,6 +246,7 @@ fr:
240
246
  name: prénom
241
247
  multiple_membership_checker:
242
248
  error_preamble: 'Erreur: vous avez spécifié plusieurs des mêmes types de collection de membres uniques'
249
+ error_type_and_collections: "(type: %{type}, collections: %{collections})"
243
250
  new:
244
251
  header: Créer un nouveau type de collection
245
252
  submit: sauvegarder
@@ -527,7 +534,6 @@ fr:
527
534
  type_label: type de probleme
528
535
  content_blocks:
529
536
  cancel: Annuler
530
- change_tab_message: Êtes-vous sûr de vouloir quitter cet onglet? Toutes les données non enregistrées seront perdues.
531
537
  tabs:
532
538
  announcement_text: Texte d'annonce
533
539
  featured_researcher: Chercheur en vedette
@@ -697,6 +703,10 @@ fr:
697
703
  description: 'La description:'
698
704
  edit_access: 'Modifier l''accès:'
699
705
  groups: 'Groupes:'
706
+ managed_access:
707
+ deposit: Dépôt
708
+ manage: Gérer
709
+ view: Vue
700
710
  users: 'Utilisateurs:'
701
711
  collections: Vos collections
702
712
  facet_label:
@@ -705,6 +715,7 @@ fr:
705
715
  shared: 'Filtrer les actions:'
706
716
  works: 'Le filtre fonctionne:'
707
717
  heading:
718
+ access: Accès
708
719
  action: Actes
709
720
  collection_type: Type de collection
710
721
  date_modified: Dernière modification
@@ -734,6 +745,7 @@ fr:
734
745
  removed_relationship: "'%{child_title}' a été retiré de '%{parent_title}'"
735
746
  no_activity: L'utilisateur n'a aucune activité récente
736
747
  no_notifications: L'utilisateur n'a pas de notification
748
+ no_proxies: Il n'y a pas de proxy attribués
737
749
  no_transfer_requests: Vous n'avez reçu aucune demande de transfert de travail
738
750
  no_transfers: Vous n'avez transféré aucun travail
739
751
  proxy_activity: Activité de procuration
@@ -912,6 +924,8 @@ fr:
912
924
  single: a été enregistré.
913
925
  subject: Téléchargement par lots complet
914
926
  title: Fichiers téléchargés avec succès
927
+ nav_safety:
928
+ change_tab_message: Êtes-vous sûr de vouloir quitter cet onglet? Toutes les données non enregistrées seront perdues.
915
929
  pages:
916
930
  cancel: Annuler
917
931
  tabs:
@@ -1129,6 +1143,7 @@ fr:
1129
1143
  allow_multiple_membership: MEMBRES MULTIPLES
1130
1144
  assigns_visibility: VISIBILITÉ
1131
1145
  assigns_workflow: FLUX DE TRAVAIL
1146
+ badge_color: Couleur du badge
1132
1147
  brandable: L'IMAGE DE MARQUE
1133
1148
  description: Description du type
1134
1149
  discoverable: DÉCOUVERTE
@@ -49,6 +49,8 @@ it:
49
49
  new: Nuova collezione
50
50
  delete: Elimina
51
51
  edit: Modifica
52
+ less: Di meno
53
+ more: Di Più
52
54
  refresh: ricaricare
53
55
  remove: Rimuovere
54
56
  work:
@@ -169,9 +171,10 @@ it:
169
171
  header: Crea nuovo set amministrativo
170
172
  show:
171
173
  breadcrumb: Visualizza set
172
- confirm_delete: Sei sicuro di voler eliminare questo set amministrativo? Questa azione non può essere annullata.
173
174
  header: Impostazione amministrativa
174
175
  item_list_header: Funziona in questo set
176
+ show_actions:
177
+ confirm_delete: Sei sicuro di voler eliminare questo set amministrativo? Questa azione non può essere annullata.
175
178
  appearances:
176
179
  show:
177
180
  header: Aspetto
@@ -193,6 +196,7 @@ it:
193
196
  not_empty: Il tipo di raccolta non può essere modificato in quanto ha collezioni
194
197
  form:
195
198
  tab:
199
+ appearance: Colore distintivo
196
200
  metadata: Descrizione
197
201
  participants: I partecipanti
198
202
  settings: impostazioni
@@ -212,7 +216,9 @@ it:
212
216
  title: I gestori
213
217
  type: genere
214
218
  form_participants:
219
+ add_group: Aggiungere gruppo
215
220
  add_participants: Aggiungi partecipanti
221
+ add_user: Aggiungi utente
216
222
  current_participants: Partecipanti attuali
217
223
  header: Partecipanti alla raccolta
218
224
  instructions: Puoi designare sia gruppi che utenti come creatori e gestori di raccolte di questo tipo
@@ -240,6 +246,7 @@ it:
240
246
  name: Nome
241
247
  multiple_membership_checker:
242
248
  error_preamble: 'Errore: hai specificato più di uno degli stessi tipi di raccolta a membro singolo'
249
+ error_type_and_collections: "(tipo: %{type}, collezioni: %{collections})"
243
250
  new:
244
251
  header: Crea un nuovo tipo di raccolta
245
252
  submit: Salvare
@@ -526,7 +533,6 @@ it:
526
533
  type_label: tipo di problema
527
534
  content_blocks:
528
535
  cancel: Annulla
529
- change_tab_message: Sei sicuro di voler lasciare questa scheda? Tutti i dati non salvati andranno persi.
530
536
  tabs:
531
537
  announcement_text: Testo annuncio
532
538
  featured_researcher: Ricercatore in primo piano
@@ -696,6 +702,10 @@ it:
696
702
  description: 'Descrizione:'
697
703
  edit_access: 'Modifica accesso:'
698
704
  groups: 'gruppi:'
705
+ managed_access:
706
+ deposit: Depositare
707
+ manage: Gestire
708
+ view: vista
699
709
  users: 'utenti:'
700
710
  collections: Le tue collezioni
701
711
  facet_label:
@@ -704,6 +714,7 @@ it:
704
714
  shared: 'Condivisione di filtri:'
705
715
  works: 'Funzioni di filtro:'
706
716
  heading:
717
+ access: Accesso
707
718
  action: Azioni
708
719
  collection_type: Tipo di raccolta
709
720
  date_modified: Ultima modifica
@@ -733,6 +744,7 @@ it:
733
744
  removed_relationship: "'%{child_title}' è stato rimosso da '%{parent_title}'"
734
745
  no_activity: L'utente non ha attività recenti
735
746
  no_notifications: L'utente non ha notifiche
747
+ no_proxies: Non ci sono proxy assegnati
736
748
  no_transfer_requests: Non hai ricevuto richieste di trasferimento di lavoro
737
749
  no_transfers: Non hai trasferito alcun lavoro
738
750
  proxy_activity: Attività proxy
@@ -911,6 +923,8 @@ it:
911
923
  single: È stato salvato.
912
924
  subject: Caricamento batch completato
913
925
  title: I file sono stati caricati correttamente
926
+ nav_safety:
927
+ change_tab_message: Sei sicuro di voler lasciare questa scheda? Tutti i dati non salvati andranno persi.
914
928
  pages:
915
929
  cancel: Annulla
916
930
  tabs:
@@ -1128,6 +1142,7 @@ it:
1128
1142
  allow_multiple_membership: MULTIPLE MEMBERSHIP
1129
1143
  assigns_visibility: VISIBILITÀ
1130
1144
  assigns_workflow: FLUSSO DI LAVORO
1145
+ badge_color: Colore distintivo
1131
1146
  brandable: IL BRANDING
1132
1147
  description: Tipo descrizione
1133
1148
  discoverable: SCOPERTA
@@ -49,6 +49,8 @@ pt-BR:
49
49
  new: Nova coleção
50
50
  delete: Excluir
51
51
  edit: Editar
52
+ less: Menos
53
+ more: Mais
52
54
  refresh: Atualizar
53
55
  remove: Remover
54
56
  work:
@@ -169,9 +171,10 @@ pt-BR:
169
171
  header: Criar novo conjunto administrativo
170
172
  show:
171
173
  breadcrumb: Conjunto de imagens
172
- confirm_delete: Tem certeza de que deseja excluir este conjunto administrativo? Essa ação não pode ser desfeita.
173
174
  header: Conjunto Administrativo
174
175
  item_list_header: Funciona neste conjunto
176
+ show_actions:
177
+ confirm_delete: Tem certeza de que deseja excluir este conjunto administrativo? Essa ação não pode ser desfeita.
175
178
  appearances:
176
179
  show:
177
180
  header: Aparência
@@ -193,6 +196,7 @@ pt-BR:
193
196
  not_empty: O tipo de coleção não pode ser alterado, pois tem coleções
194
197
  form:
195
198
  tab:
199
+ appearance: Cor do Emblema
196
200
  metadata: Descrição
197
201
  participants: Participantes
198
202
  settings: Configurações
@@ -212,7 +216,9 @@ pt-BR:
212
216
  title: Gerentes
213
217
  type: Tipo
214
218
  form_participants:
219
+ add_group: Adicionar grupo
215
220
  add_participants: Adicione participantes
221
+ add_user: Adicionar usuário
216
222
  current_participants: Participantes atuais
217
223
  header: Participantes da coleção
218
224
  instructions: Você pode designar grupos e usuários como criadores e gerentes de coleções desse tipo
@@ -240,6 +246,7 @@ pt-BR:
240
246
  name: Nome
241
247
  multiple_membership_checker:
242
248
  error_preamble: 'Erro: você especificou mais do que um dos mesmos tipos de coleção de associação única'
249
+ error_type_and_collections: "(tipo: %{type}, coleções: %{collections})"
243
250
  new:
244
251
  header: Criar novo tipo de coleção
245
252
  submit: Salve 
@@ -521,7 +528,6 @@ pt-BR:
521
528
  type_label: Tipo de problema
522
529
  content_blocks:
523
530
  cancel: Cancelar
524
- change_tab_message: Sei sicuro di voler lasciare questa scheda? Tutti i dati non salvati andranno persi.
525
531
  tabs:
526
532
  announcement_text: Texto de Anúncio
527
533
  featured_researcher: Pesquisador em destaque
@@ -691,6 +697,10 @@ pt-BR:
691
697
  description: 'Descrição:'
692
698
  edit_access: 'Editar acesso:'
693
699
  groups: 'Grupos:'
700
+ managed_access:
701
+ deposit: Depósito
702
+ manage: Gerir
703
+ view: Visão
694
704
  users: 'Comercial:'
695
705
  collections: Suas coleções
696
706
  facet_label:
@@ -699,6 +709,7 @@ pt-BR:
699
709
  shared: 'Compartilhamento de filtro:'
700
710
  works: 'Filtro funciona:'
701
711
  heading:
712
+ access: Acesso
702
713
  action: Ações
703
714
  collection_type: Tipo de Coleção
704
715
  date_modified: Última modificação
@@ -728,6 +739,7 @@ pt-BR:
728
739
  removed_relationship: "'%{child_title}' foi removido de '%{parent_title}'"
729
740
  no_activity: O usuário não tem atividade recente
730
741
  no_notifications: O usuário não possui notificações
742
+ no_proxies: Não há proxies designados
731
743
  no_transfer_requests: Você não recebeu nenhum pedido de transferência de trabalho
732
744
  no_transfers: Você não transferiu nenhum trabalho
733
745
  proxy_activity: Atividade de proxy
@@ -906,6 +918,8 @@ pt-BR:
906
918
  single: Foi salvo.
907
919
  subject: Carregamento em lote completo
908
920
  title: Arquivos carregados com sucesso
921
+ nav_safety:
922
+ change_tab_message: Sei sicuro di voler lasciare questa scheda? Tutti i dati non salvati andranno persi.
909
923
  pages:
910
924
  cancel: Cancelar
911
925
  tabs:
@@ -1123,6 +1137,7 @@ pt-BR:
1123
1137
  allow_multiple_membership: MEMBROS MÚLTIPLOS
1124
1138
  assigns_visibility: VISIBILIDADE
1125
1139
  assigns_workflow: FLUXO DE TRABALHO
1140
+ badge_color: Cor do Emblema
1126
1141
  brandable: MARCA
1127
1142
  description: Descrição do tipo
1128
1143
  discoverable: DESCOBERTA
@@ -49,6 +49,8 @@ zh:
49
49
  new: 新收藏集
50
50
  delete: 删除
51
51
  edit: 编辑
52
+ less: 减
53
+ more: 更多
52
54
  refresh: 刷新
53
55
  remove: 去掉
54
56
  work:
@@ -169,9 +171,10 @@ zh:
169
171
  header: 创建新的管理集
170
172
  show:
171
173
  breadcrumb: 观看集
172
- confirm_delete: 确定要删除吗?删除后不可复原。
173
174
  header: 管理集
174
175
  item_list_header: 集内作品
176
+ show_actions:
177
+ confirm_delete: 您确定要删除此管理集?此操作无法撤消。
175
178
  appearances:
176
179
  show:
177
180
  header: 表面
@@ -193,6 +196,7 @@ zh:
193
196
  not_empty: 集合类型不能更改,因为它具有集合
194
197
  form:
195
198
  tab:
199
+ appearance: 徽章颜色
196
200
  metadata: 描述
197
201
  participants: 参与者
198
202
  settings: 设置
@@ -212,7 +216,9 @@ zh:
212
216
  title: 经理
213
217
  type: 类型
214
218
  form_participants:
219
+ add_group: 添加组
215
220
  add_participants: 添加参与者
221
+ add_user: 添加用户
216
222
  current_participants: 当前参与者
217
223
  header: 收藏参与者
218
224
  instructions: 您可以将这两个组和用户指定为此类集合的创建者和管理者
@@ -240,6 +246,7 @@ zh:
240
246
  name: 名称
241
247
  multiple_membership_checker:
242
248
  error_preamble: 错误:您指定了多个相同的单一成员资格集合类型
249
+ error_type_and_collections: "(类型:%{type},集合:%{collections})"
243
250
  new:
244
251
  header: 创建新的集合类型
245
252
  submit: 保存
@@ -524,7 +531,6 @@ zh:
524
531
  type_label: 问题类型
525
532
  content_blocks:
526
533
  cancel: 取消
527
- change_tab_message: 你确定要离开这个标签吗?任何未保存的数据都将丢失。
528
534
  tabs:
529
535
  announcement_text: 公告文字
530
536
  featured_researcher: 特色研究员
@@ -694,6 +700,10 @@ zh:
694
700
  description: 描述:
695
701
  edit_access: 编辑访问:
696
702
  groups: '群:'
703
+ managed_access:
704
+ deposit: 存款
705
+ manage: 管理
706
+ view: 视图
697
707
  users: '用户:'
698
708
  collections: 你的收藏集
699
709
  facet_label:
@@ -702,6 +712,7 @@ zh:
702
712
  shared: '筛选您的分享:'
703
713
  works: '筛选作品:'
704
714
  heading:
715
+ access: 访问
705
716
  action: 行动
706
717
  collection_type: 集合类型
707
718
  date_modified: 上一次更改
@@ -731,6 +742,7 @@ zh:
731
742
  removed_relationship: "'%{child_title}'已从'%{parent_title}'中删除"
732
743
  no_activity: 用户最近没有活动
733
744
  no_notifications: 用户没有收到通知
745
+ no_proxies: 没有代理分配
734
746
  no_transfer_requests: 您没有收到任何在作品转让请求
735
747
  no_transfers: 您没有转让任何作品
736
748
  proxy_activity: 代理活动
@@ -909,6 +921,8 @@ zh:
909
921
  single: 已保存。
910
922
  subject: 批量上传完成
911
923
  title: 文件上传成功
924
+ nav_safety:
925
+ change_tab_message: 你确定要离开这个标签吗?任何未保存的数据都将丢失。
912
926
  pages:
913
927
  cancel: 取消
914
928
  tabs:
@@ -1126,6 +1140,7 @@ zh:
1126
1140
  allow_multiple_membership: 多会员
1127
1141
  assigns_visibility: 能见度
1128
1142
  assigns_workflow: 工作流程
1143
+ badge_color: 徽章颜色
1129
1144
  brandable: 品牌
1130
1145
  description: 类型描述
1131
1146
  discoverable: 发现
@@ -1,31 +1,10 @@
1
+ ---
1
2
  en:
2
3
  simple_form:
3
4
  error_notification:
4
- default_message: "Please review the problems below:"
5
- # Examples
6
- # labels:
7
- # defaults:
8
- # password: 'Password'
9
- # user:
10
- # new:
11
- # email: 'E-mail to sign in.'
12
- # edit:
13
- # email: 'E-mail.'
14
- # hints:
15
- # defaults:
16
- # username: 'User name to sign in.'
17
- # password: 'No special characters, please.'
18
- # include_blanks:
19
- # defaults:
20
- # age: 'Rather not say'
21
- # prompts:
22
- # defaults:
23
- # age: 'Select your age'
24
- "no": 'No'
5
+ default_message: 'Please review the problems below:'
6
+ 'no': 'No'
25
7
  required:
26
- mark: '*'
27
- # You can uncomment the line below if you need to overwrite the whole required html.
28
- # When using html, text and mark won't be used.
29
- # html: '<abbr title="required">*</abbr>'
30
- text: 'required'
31
- "yes": 'Yes'
8
+ mark: "*"
9
+ text: required
10
+ 'yes': 'Yes'
data/hyrax.gemspec CHANGED
@@ -71,7 +71,7 @@ SUMMARY
71
71
  spec.add_dependency 'redis-namespace', '~> 1.5'
72
72
  spec.add_dependency 'redlock', '>= 0.1.2'
73
73
  spec.add_dependency 'retriable', '>= 2.9', '< 4.0'
74
- spec.add_dependency 'samvera-nesting_indexer', '~> 1.0', '>= 1.0.1'
74
+ spec.add_dependency 'samvera-nesting_indexer', '~> 2.0'
75
75
  spec.add_dependency 'select2-rails', '~> 3.5'
76
76
  spec.add_dependency 'signet'
77
77
  spec.add_dependency 'tinymce-rails', '~> 4.1'
@@ -81,7 +81,7 @@ SUMMARY
81
81
  spec.add_development_dependency 'capybara-maleficent', '~> 0.2'
82
82
  spec.add_development_dependency "chromedriver-helper"
83
83
  spec.add_development_dependency 'database_cleaner', '~> 1.3'
84
- spec.add_development_dependency 'engine_cart', '~> 1.2'
84
+ spec.add_development_dependency 'engine_cart', '~> 2.0'
85
85
  spec.add_development_dependency "equivalent-xml", '~> 0.5'
86
86
  spec.add_development_dependency "factory_bot", '~> 4.4'
87
87
  spec.add_development_dependency 'fcrepo_wrapper', '~> 0.5', '>= 0.5.1'
@@ -25,6 +25,10 @@ class Hyrax::AssetsGenerator < Rails::Generators::Base
25
25
  end
26
26
  end
27
27
 
28
+ def copy_image_file
29
+ copy_file 'app/assets/images/unauthorized.png'
30
+ end
31
+
28
32
  private
29
33
 
30
34
  def hyrax_javascript_installed?