curate 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (431) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +9 -0
  3. data/app/assets/javascripts/curate.js +2 -0
  4. data/app/assets/javascripts/curate/link_groups.js.coffee +123 -0
  5. data/app/assets/javascripts/curate/link_users.js.coffee +29 -10
  6. data/app/assets/stylesheets/curate.css.scss +1 -0
  7. data/app/assets/stylesheets/curate/linkedGroups.css.scss +16 -0
  8. data/app/assets/stylesheets/curate/linkedUsers.css.scss +4 -0
  9. data/app/assets/stylesheets/modules.scss +2 -1
  10. data/app/assets/stylesheets/modules/forms.css.scss +5 -0
  11. data/app/assets/stylesheets/modules/profile.css.scss +51 -0
  12. data/app/controllers/catalog_controller.rb +37 -7
  13. data/app/controllers/curate/collections_controller.rb +15 -0
  14. data/app/controllers/curate/people_controller.rb +17 -4
  15. data/app/controllers/curation_concern/generic_works_controller.rb +26 -2
  16. data/app/controllers/curation_concern/linked_resources_controller.rb +1 -1
  17. data/app/controllers/curation_concern/permissions_controller.rb +2 -1
  18. data/app/controllers/hydramata/groups_controller.rb +119 -0
  19. data/app/controllers/registrations_controller.rb +33 -0
  20. data/app/controllers/users_controller.rb +23 -0
  21. data/app/helpers/curate/catalog_helper.rb +14 -0
  22. data/app/helpers/curate/collections_helper.rb +20 -9
  23. data/app/helpers/curate_helper.rb +12 -5
  24. data/app/helpers/hydramata/groups_helper.rb +12 -0
  25. data/app/models/account.rb +17 -0
  26. data/app/models/concerns/curate/ability.rb +1 -5
  27. data/app/models/curate/user_behavior/base.rb +6 -5
  28. data/app/repository_datastreams/group_metadata_datastream.rb +20 -0
  29. data/app/repository_models/collection.rb +49 -1
  30. data/app/repository_models/curation_concern/model.rb +5 -1
  31. data/app/repository_models/curation_concern/with_generic_files.rb +4 -3
  32. data/app/repository_models/curation_concern/work.rb +38 -1
  33. data/app/repository_models/curation_concern/work_permission.rb +54 -0
  34. data/app/repository_models/hydramata/group.rb +87 -0
  35. data/app/repository_models/hydramata/group_membership_form.rb +72 -0
  36. data/app/repository_models/person.rb +37 -1
  37. data/app/repository_models/profile_section.rb +0 -1
  38. data/app/services/curation_concern/work_permission_action_parser.rb +78 -0
  39. data/app/services/hydramata/group_membership_action_parser.rb +65 -0
  40. data/app/views/catalog/_facets.html.erb +3 -1
  41. data/app/views/catalog/index.html.erb +3 -0
  42. data/app/views/curate/collections/_form.html.erb +10 -0
  43. data/app/views/curate/collections/show.html.erb +1 -0
  44. data/app/views/curate/people/_profile_image.html.erb +2 -2
  45. data/app/views/curate/people/show.html.erb +46 -34
  46. data/app/views/curation_concern/articles/_attributes.html.erb +1 -0
  47. data/app/views/curation_concern/base/_form.html.erb +1 -0
  48. data/app/views/curation_concern/base/_form_descriptive_fields.erb +9 -0
  49. data/app/views/curation_concern/base/_linked_editors.html.erb +47 -0
  50. data/app/views/curation_concern/base/_linked_groups.html.erb +45 -0
  51. data/app/views/curation_concern/base/_persons_edit_access.html.erb +44 -0
  52. data/app/views/curation_concern/documents/_attributes.html.erb +1 -0
  53. data/app/views/curation_concern/etds/_attributes.html.erb +1 -0
  54. data/app/views/curation_concern/etds/_form_descriptive_fields.erb +2 -0
  55. data/app/views/curation_concern/generic_works/_attributes.html.erb +1 -0
  56. data/app/views/{curate/organizations/_organization.html.erb → curation_concern/hydramata/groups/_group.html.erb} +6 -6
  57. data/app/views/curation_concern/images/_attributes.html.erb +1 -0
  58. data/app/views/curation_concern/images/_form_descriptive_fields.erb +2 -0
  59. data/app/views/hydramata/groups/_button_create_group.html.erb +1 -0
  60. data/app/views/{curate/organizations → hydramata/groups}/_document_list.html.erb +0 -0
  61. data/app/views/{curate/organizations → hydramata/groups}/_form.html.erb +28 -10
  62. data/app/views/hydramata/groups/_group.html.erb +24 -0
  63. data/app/views/hydramata/groups/_linked_members.html.erb +96 -0
  64. data/app/views/hydramata/groups/edit.html.erb +4 -0
  65. data/app/views/hydramata/groups/index.html.erb +11 -0
  66. data/app/views/{curate/organizations → hydramata/groups}/new.html.erb +1 -1
  67. data/app/views/hydramata/groups/show.html.erb +36 -0
  68. data/app/views/layouts/boilerplate.html.erb +1 -1
  69. data/app/views/registrations/_form_account_deactivation.html.erb +1 -1
  70. data/app/views/registrations/_form_attributes.html.erb +3 -5
  71. data/app/views/registrations/_form_password_management.html.erb +11 -9
  72. data/app/views/registrations/edit.html.erb +8 -5
  73. data/app/views/shared/_add_content.html.erb +1 -1
  74. data/app/views/shared/_my_actions.html.erb +1 -0
  75. data/lib/curate/configuration.rb +6 -0
  76. data/lib/curate/rails/routes.rb +7 -1
  77. data/lib/curate/spec_support.rb +1 -1
  78. data/lib/curate/version.rb +1 -1
  79. data/lib/generators/curate/application_template.rb +10 -2
  80. data/lib/generators/curate/curate_generator.rb +16 -0
  81. data/lib/generators/curate/predicate_mapping/predicate_mappings.yml +64 -0
  82. data/lib/generators/curate/search_config/search_config_generator.rb +177 -0
  83. data/lib/generators/curate/soft_delete/active_fedora_soft_delete_monkey_patch.rb +14 -4
  84. data/spec/abilities/generic_file_abilities_spec.rb +1 -0
  85. data/spec/abilities/generic_work_abilities_spec.rb +1 -0
  86. data/spec/controllers/catalog_controller_spec.rb +21 -0
  87. data/spec/controllers/curate/collections_controller_spec.rb +1 -1
  88. data/spec/controllers/curation_concern/linked_resources_controller_spec.rb +1 -1
  89. data/spec/controllers/curation_concern/permissions_controller_spec.rb +1 -1
  90. data/spec/controllers/hydamata/groups_controller_spec.rb +133 -0
  91. data/spec/factories/group_factory.rb +20 -0
  92. data/spec/features/article_spec.rb +3 -2
  93. data/spec/features/catalog_search_spec.rb +19 -2
  94. data/spec/features/collections_spec.rb +23 -7
  95. data/spec/features/dataset_spec.rb +3 -2
  96. data/spec/features/end_to_end_spec.rb +9 -8
  97. data/spec/features/etd_spec.rb +3 -2
  98. data/spec/features/generic_work_spec.rb +6 -3
  99. data/spec/features/image_spec.rb +3 -2
  100. data/spec/features/manager_profile_workflow_spec.rb +56 -0
  101. data/spec/features/person_profile_spec.rb +4 -4
  102. data/spec/features/user_profile_workflow_spec.rb +1 -7
  103. data/spec/fixtures/cassettes/remotely_identified_doi_mint_generic_work.yml +3 -3
  104. data/spec/fixtures/cassettes/remotely_identified_doi_mint_spam.yml +47 -0
  105. data/spec/helpers/curate/catalog_helper.rb +29 -0
  106. data/spec/internal/Gemfile +23 -4
  107. data/spec/internal/Gemfile.lock +410 -14
  108. data/spec/internal/app/assets/images/blacklight/bg.png +0 -0
  109. data/spec/internal/app/assets/images/blacklight/border.png +0 -0
  110. data/spec/internal/app/assets/images/blacklight/bul_sq_gry.gif +0 -0
  111. data/spec/internal/app/assets/images/blacklight/checkmark.gif +0 -0
  112. data/spec/internal/app/assets/images/blacklight/logo.png +0 -0
  113. data/spec/internal/app/assets/images/blacklight/magnifying_glass.gif +0 -0
  114. data/spec/internal/app/assets/images/blacklight/remove.gif +0 -0
  115. data/spec/internal/app/assets/images/blacklight/separator.gif +0 -0
  116. data/spec/internal/app/assets/images/blacklight/start_over.gif +0 -0
  117. data/spec/internal/app/assets/javascripts/application.js +4 -0
  118. data/spec/internal/app/assets/stylesheets/application.css +1 -0
  119. data/spec/internal/app/controllers/application_controller.rb +9 -0
  120. data/spec/internal/app/controllers/curation_concern/spams_controller.rb +6 -0
  121. data/spec/internal/app/models/ability.rb +20 -0
  122. data/spec/internal/app/models/solr_document.rb +38 -0
  123. data/spec/internal/app/models/user.rb +23 -0
  124. data/spec/internal/app/repository_datastreams/spam_rdf_datastream.rb +78 -0
  125. data/spec/internal/app/repository_models/spam.rb +47 -0
  126. data/spec/internal/app/services/curation_concern/spam_actor.rb +6 -0
  127. data/spec/internal/app/views/curation_concern/spams/_spam.html.erb +2 -0
  128. data/spec/internal/config/SolrMarc/config-test.properties +37 -0
  129. data/spec/internal/config/SolrMarc/config.properties +37 -0
  130. data/spec/internal/config/SolrMarc/index.properties +97 -0
  131. data/spec/internal/config/SolrMarc/index_scripts/dewey.bsh +47 -0
  132. data/spec/internal/config/SolrMarc/index_scripts/format.bsh +126 -0
  133. data/spec/internal/config/SolrMarc/translation_maps/README_MAPS +1 -0
  134. data/spec/internal/config/SolrMarc/translation_maps/callnumber_map.properties +407 -0
  135. data/spec/internal/config/SolrMarc/translation_maps/composition_era_map.properties +56 -0
  136. data/spec/internal/config/SolrMarc/translation_maps/country_map.properties +379 -0
  137. data/spec/internal/config/SolrMarc/translation_maps/format_map.properties +50 -0
  138. data/spec/internal/config/SolrMarc/translation_maps/instrument_map.properties +101 -0
  139. data/spec/internal/config/SolrMarc/translation_maps/language_map.properties +490 -0
  140. data/spec/internal/config/application.rb +6 -0
  141. data/spec/internal/config/doi.yml +5 -0
  142. data/spec/internal/config/environments/test.rb +2 -1
  143. data/spec/internal/config/fedora.yml +14 -0
  144. data/spec/internal/config/initializers/action_dispatch_http_upload_monkey_patch.rb +12 -0
  145. data/spec/internal/config/initializers/curate_config.rb +30 -0
  146. data/spec/internal/config/initializers/devise.rb +256 -0
  147. data/spec/internal/config/initializers/hydra-remote_identifier_config.rb +29 -0
  148. data/spec/internal/config/initializers/hydra_config.rb +28 -0
  149. data/spec/internal/config/initializers/mailboxer.rb +17 -0
  150. data/spec/internal/config/initializers/mime_types.rb +8 -1
  151. data/spec/internal/config/initializers/redis_config.rb +32 -0
  152. data/spec/internal/config/initializers/resque_admin.rb +10 -0
  153. data/spec/internal/config/initializers/resque_config.rb +5 -0
  154. data/spec/internal/config/initializers/secret_token.rb +1 -1
  155. data/spec/internal/config/initializers/sufia.rb +81 -0
  156. data/spec/internal/config/jetty.yml +5 -0
  157. data/spec/internal/config/locales/devise.en.yml +59 -0
  158. data/spec/internal/config/locales/en.yml +11 -20
  159. data/spec/internal/config/manager_usernames.yml +9 -0
  160. data/spec/internal/config/predicate_mappings.yml +64 -0
  161. data/spec/internal/config/recipients_list.yml +2 -0
  162. data/spec/internal/config/redis.yml +6 -0
  163. data/spec/internal/config/role_map_cucumber.yml +10 -0
  164. data/spec/internal/config/role_map_development.yml +12 -0
  165. data/spec/internal/config/role_map_production.yml +2 -0
  166. data/spec/internal/config/role_map_test.yml +15 -0
  167. data/spec/internal/config/routes.rb +8 -0
  168. data/spec/internal/config/search_config.yml +9 -0
  169. data/spec/internal/config/solr.yml +10 -0
  170. data/spec/internal/db/development.sqlite3 +0 -0
  171. data/spec/internal/db/migrate/20140328183252_devise_create_users.rb +42 -0
  172. data/spec/internal/db/migrate/20140328183257_add_devise_guests_to_users.rb +15 -0
  173. data/spec/internal/db/migrate/20140328183258_create_searches.rb +16 -0
  174. data/spec/internal/db/migrate/20140328183259_create_bookmarks.rb +18 -0
  175. data/spec/internal/db/migrate/20140328183260_remove_editable_fields_from_bookmarks.rb +12 -0
  176. data/spec/internal/db/migrate/20140328183261_add_user_types_to_bookmarks_searches.rb +16 -0
  177. data/spec/internal/db/migrate/20140328183262_acts_as_follower_migration.rb +17 -0
  178. data/spec/internal/db/migrate/20140328183263_add_social_to_users.rb +13 -0
  179. data/spec/internal/db/migrate/20140328183264_create_single_use_links.rb +12 -0
  180. data/spec/internal/db/migrate/20140328183265_add_ldap_attrs_to_user.rb +27 -0
  181. data/spec/internal/db/migrate/20140328183266_add_avatars_to_users.rb +9 -0
  182. data/spec/internal/db/migrate/20140328183267_create_checksum_audit_logs.rb +20 -0
  183. data/spec/internal/db/migrate/20140328183268_create_version_committers.rb +15 -0
  184. data/spec/internal/db/migrate/20140328183269_add_groups_to_users.rb +11 -0
  185. data/spec/internal/db/migrate/20140328183270_create_local_authorities.rb +50 -0
  186. data/spec/internal/db/migrate/20140328183271_create_trophies.rb +10 -0
  187. data/spec/internal/db/migrate/20140328183331_create_mailboxer.mailboxer_engine.rb +62 -0
  188. data/spec/internal/db/migrate/20140328183332_add_notified_object.mailboxer_engine.rb +18 -0
  189. data/spec/internal/db/migrate/20140328183333_add_notification_code.mailboxer_engine.rb +14 -0
  190. data/spec/internal/db/migrate/20140328183334_add_attachments.mailboxer_engine.rb +10 -0
  191. data/spec/internal/db/migrate/20140328183335_rename_receipts_read.mailboxer_engine.rb +10 -0
  192. data/spec/internal/db/migrate/20140328183336_add_global_notification_support.mailboxer_engine.rb +10 -0
  193. data/spec/internal/db/migrate/20140328183340_add_terms_of_service_to_user.curate_engine.rb +6 -0
  194. data/spec/internal/db/migrate/20140328183341_add_user_force_update_profile.curate_engine.rb +9 -0
  195. data/spec/internal/db/migrate/20140328183342_create_help_requests.curate_engine.rb +23 -0
  196. data/spec/internal/db/migrate/20140328183343_add_repository_id_to_user.curate_engine.rb +7 -0
  197. data/spec/internal/db/migrate/20140328183344_create_curate_proxy_deposit_rights.curate_engine.rb +12 -0
  198. data/spec/internal/db/migrate/20140328183345_change_display_name_to_name.curate_engine.rb +7 -0
  199. data/spec/internal/db/schema.rb +216 -1
  200. data/spec/internal/db/test.sqlite3 +0 -0
  201. data/spec/internal/fedora_conf/conf/development/fedora.fcfg +953 -0
  202. data/spec/internal/fedora_conf/conf/test/fedora.fcfg +953 -0
  203. data/spec/internal/lib/generators/test_app_generator.rb +23 -2
  204. data/spec/internal/log/development.log +322 -4
  205. data/spec/internal/log/test.log +117837 -0
  206. data/spec/internal/solr_conf/conf/schema.xml +273 -0
  207. data/spec/internal/solr_conf/conf/solrconfig.xml +167 -0
  208. data/spec/internal/solr_conf/solr.xml +35 -0
  209. data/spec/internal/spec/controllers/curation_concern/spams_controller_spec.rb +7 -0
  210. data/spec/internal/spec/factories/spams_factory.rb +40 -0
  211. data/spec/internal/spec/repository_models/spam_spec.rb +16 -0
  212. data/spec/internal/spec/services/curation_concern/spam_actor_spec.rb +7 -0
  213. data/spec/internal/test/models/user_test.rb +7 -0
  214. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_blacklight_base.css.scssc +0 -0
  215. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_bookmark.css.scssc +0 -0
  216. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_catalog.css.scssc +0 -0
  217. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_dropdown.css.scssc +0 -0
  218. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_facets.css.scssc +0 -0
  219. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_footer.css.scssc +0 -0
  220. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_group.css.scssc +0 -0
  221. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_header.css.scssc +0 -0
  222. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_layout.css.scssc +0 -0
  223. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_modal.css.scssc +0 -0
  224. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_print.css.scssc +0 -0
  225. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_responsive.css.scssc +0 -0
  226. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/_search_history.css.scssc +0 -0
  227. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/blacklight.css.scssc +0 -0
  228. data/spec/internal/tmp/cache/assets/test/sass/0f223a129cc26de35ff59298da93dd57d598447a/blacklight_defaults.css.scssc +0 -0
  229. data/spec/internal/tmp/cache/assets/test/sass/108fdfe10ba83060a2164fe91a5d70f57ff08f38/linkedGroups.css.scssc +0 -0
  230. data/spec/internal/tmp/cache/assets/test/sass/108fdfe10ba83060a2164fe91a5d70f57ff08f38/linkedUsers.css.scssc +0 -0
  231. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/accessibility.css.scssc +0 -0
  232. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/accordion.css.scssc +0 -0
  233. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/attributes.css.scssc +0 -0
  234. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/classify_work.css.scssc +0 -0
  235. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/collections.css.scssc +0 -0
  236. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/emphatic_action_area.css.scssc +0 -0
  237. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/forms.css.scssc +0 -0
  238. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/multi_value_fields.css.scssc +0 -0
  239. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/pagination.css.scssc +0 -0
  240. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/profile.css.scssc +0 -0
  241. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/search_results.css.scssc +0 -0
  242. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/site_actions.css.scssc +0 -0
  243. data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/site_search.css.scssc +0 -0
  244. data/spec/internal/tmp/cache/assets/test/sass/3540212d3e8f12f14e3d57e312ff13dc248a7b03/bootstrap-modal.cssc +0 -0
  245. data/spec/internal/tmp/cache/assets/test/sass/393de91b02495e7f60ccd919368de37af38618da/bootstrap-datepicker.cssc +0 -0
  246. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_accordion.scssc +0 -0
  247. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_alerts.scssc +0 -0
  248. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_breadcrumbs.scssc +0 -0
  249. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_button-groups.scssc +0 -0
  250. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_buttons.scssc +0 -0
  251. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_carousel.scssc +0 -0
  252. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_close.scssc +0 -0
  253. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_code.scssc +0 -0
  254. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_component-animations.scssc +0 -0
  255. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_dropdowns.scssc +0 -0
  256. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_forms.scssc +0 -0
  257. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_grid.scssc +0 -0
  258. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_hero-unit.scssc +0 -0
  259. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_labels-badges.scssc +0 -0
  260. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_layouts.scssc +0 -0
  261. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_media.scssc +0 -0
  262. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_mixins.scssc +0 -0
  263. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_modals.scssc +0 -0
  264. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_navbar.scssc +0 -0
  265. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_navs.scssc +0 -0
  266. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_pager.scssc +0 -0
  267. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_pagination.scssc +0 -0
  268. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_popovers.scssc +0 -0
  269. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_progress-bars.scssc +0 -0
  270. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_reset.scssc +0 -0
  271. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_responsive-1200px-min.scssc +0 -0
  272. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_responsive-767px-max.scssc +0 -0
  273. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_responsive-768px-979px.scssc +0 -0
  274. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_responsive-navbar.scssc +0 -0
  275. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_responsive-utilities.scssc +0 -0
  276. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_scaffolding.scssc +0 -0
  277. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_sprites.scssc +0 -0
  278. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_tables.scssc +0 -0
  279. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_thumbnails.scssc +0 -0
  280. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_tooltip.scssc +0 -0
  281. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_type.scssc +0 -0
  282. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_utilities.scssc +0 -0
  283. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_variables.scssc +0 -0
  284. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/_wells.scssc +0 -0
  285. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/bootstrap.scssc +0 -0
  286. data/spec/internal/tmp/cache/assets/test/sass/51b00c7d39146f73896d987722a019852fb2ca5e/responsive.scssc +0 -0
  287. data/spec/internal/tmp/cache/assets/test/sass/6a8f3b19bc293c20ed8d8faf81b13284c10818d6/_catalog.css.scssc +0 -0
  288. data/spec/internal/tmp/cache/assets/test/sass/6a8f3b19bc293c20ed8d8faf81b13284c10818d6/_facets.css.scssc +0 -0
  289. data/spec/internal/tmp/cache/assets/test/sass/6a8f3b19bc293c20ed8d8faf81b13284c10818d6/_header.css.scssc +0 -0
  290. data/spec/internal/tmp/cache/assets/test/sass/953d624c1831fcea22a3be549290f4c654726e96/positioning.css.scssc +0 -0
  291. data/spec/internal/tmp/cache/assets/test/sass/b95751effdfef9cdba38bc1d169b6196172155ed/theme.css.scssc +0 -0
  292. data/spec/internal/tmp/cache/assets/test/sass/b95751effdfef9cdba38bc1d169b6196172155ed/typography.css.scssc +0 -0
  293. data/spec/internal/tmp/cache/assets/test/sass/e653ebc579903efbaf96508ec20b97304a2a14a0/token-input-facebook.cssc +0 -0
  294. data/spec/internal/tmp/cache/assets/test/sass/e9808fc781dff3e3e7170d18d009c46cb33a75c5/curate.css.scssc +0 -0
  295. data/spec/internal/tmp/cache/assets/test/sass/e9808fc781dff3e3e7170d18d009c46cb33a75c5/global-variables.scssc +0 -0
  296. data/spec/internal/tmp/cache/assets/test/sass/e9808fc781dff3e3e7170d18d009c46cb33a75c5/modules.scssc +0 -0
  297. data/spec/internal/tmp/cache/assets/test/sass/ef004a21da8f6e485bf56e67090fd7b67164e2d4/bootstrap-responsive.scssc +0 -0
  298. data/spec/internal/tmp/cache/assets/test/sass/ef004a21da8f6e485bf56e67090fd7b67164e2d4/bootstrap.scssc +0 -0
  299. data/spec/internal/tmp/cache/assets/test/sprockets/022df81faa4bf7df68048b690ef7c85c +0 -0
  300. data/spec/internal/tmp/cache/assets/test/sprockets/04a9cbc691396f514e6b88c05724f9cc +0 -0
  301. data/spec/internal/tmp/cache/assets/test/sprockets/070263a383619079784e4ce15cf15443 +0 -0
  302. data/spec/internal/tmp/cache/assets/test/sprockets/091e4dfe4ed53798289eecba25675954 +0 -0
  303. data/spec/internal/tmp/cache/assets/test/sprockets/0b4f161bc175df6a24a070de15ef8070 +0 -0
  304. data/spec/internal/tmp/cache/assets/test/sprockets/0d6ccd45e1a5bb30040987a5817f5ca7 +0 -0
  305. data/spec/internal/tmp/cache/assets/test/sprockets/1114f56d5a4f05583b0351978456c150 +0 -0
  306. data/spec/internal/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  307. data/spec/internal/tmp/cache/assets/test/sprockets/163665b72c8e98b0c88c19896f080bc4 +0 -0
  308. data/spec/internal/tmp/cache/assets/test/sprockets/169842bd6ce5ed610c32403ca2ed06d6 +0 -0
  309. data/spec/internal/tmp/cache/assets/test/sprockets/19465db808fbe15048554cecb70ad7cf +0 -0
  310. data/spec/internal/tmp/cache/assets/test/sprockets/1a591a26fdf3ed78b25b5ab792d76b7e +0 -0
  311. data/spec/internal/tmp/cache/assets/test/sprockets/1c1167e9384b80e15359a663448a3196 +0 -0
  312. data/spec/internal/tmp/cache/assets/test/sprockets/1d084625b16ac691b3ac53f7c3af9383 +0 -0
  313. data/spec/internal/tmp/cache/assets/test/sprockets/1d2f8185792ec3fccced5ea4e4dd7ff2 +0 -0
  314. data/spec/internal/tmp/cache/assets/test/sprockets/1eeefbd68878e39bf538ca5fb6816827 +0 -0
  315. data/spec/internal/tmp/cache/assets/test/sprockets/1f3f013d8df49445e8f6d26abe4bd0c3 +0 -0
  316. data/spec/internal/tmp/cache/assets/test/sprockets/22589c57b7736c35f126b70fa4f6838d +0 -0
  317. data/spec/internal/tmp/cache/assets/test/sprockets/2458a8aab642c987741b9e5dbadc40be +0 -0
  318. data/spec/internal/tmp/cache/assets/test/sprockets/25c858866fd7a2ca6719b8f57b7da784 +0 -0
  319. data/spec/internal/tmp/cache/assets/test/sprockets/272deddade92ef016e309a2eb7b775cc +0 -0
  320. data/spec/internal/tmp/cache/assets/test/sprockets/293f9259ef62e6c2afde9949c46f0b36 +0 -0
  321. data/spec/internal/tmp/cache/assets/test/sprockets/2b89cef6265da9c35a9c68f4672c7ff5 +0 -0
  322. data/spec/internal/tmp/cache/assets/test/sprockets/2e0105bbafec2286e09b62e5471f4c73 +0 -0
  323. data/spec/internal/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  324. data/spec/internal/tmp/cache/assets/test/sprockets/30980d53fa21cb948c92faff2cf90991 +0 -0
  325. data/spec/internal/tmp/cache/assets/test/sprockets/30b468617659dbbfc89c910dcb076662 +0 -0
  326. data/spec/internal/tmp/cache/assets/test/sprockets/31f03bdc9721687fd98c2b12c036e8a2 +0 -0
  327. data/spec/internal/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  328. data/spec/internal/tmp/cache/assets/test/sprockets/3b707f5b5654437450eb8d718b602724 +0 -0
  329. data/spec/internal/tmp/cache/assets/test/sprockets/4132e961bdf0f2ffa2f96a4c7822e209 +0 -0
  330. data/spec/internal/tmp/cache/assets/test/sprockets/41dd5dbd03cfa3f49e2d7569ffd03f8d +0 -0
  331. data/spec/internal/tmp/cache/assets/test/sprockets/42ad0d7de425a02e6ad4b53f8f96e73a +0 -0
  332. data/spec/internal/tmp/cache/assets/test/sprockets/4749d0a94ef75f86eebb5f638b83188c +0 -0
  333. data/spec/internal/tmp/cache/assets/test/sprockets/47d1bee927ac2da38db4c61acd85d648 +0 -0
  334. data/spec/internal/tmp/cache/assets/test/sprockets/483d9b04ae722b59d47428990e5d67a3 +0 -0
  335. data/spec/internal/tmp/cache/assets/test/sprockets/49dddc872622de1d975f563d9d10d6c9 +0 -0
  336. data/spec/internal/tmp/cache/assets/test/sprockets/49f85e65ad619dd02dc51988e77723d2 +0 -0
  337. data/spec/internal/tmp/cache/assets/test/sprockets/4b1fc3a748e34199e72958c656cc06cf +0 -0
  338. data/spec/internal/tmp/cache/assets/test/sprockets/4c5e67849a42922256c692cebe3625ae +0 -0
  339. data/spec/internal/tmp/cache/assets/test/sprockets/5141429549bc789c5a18f47a631ee310 +0 -0
  340. data/spec/internal/tmp/cache/assets/test/sprockets/541a8ef4d67b7e50312977c96e423051 +0 -0
  341. data/spec/internal/tmp/cache/assets/test/sprockets/55e3bb68ac9cf584a33a458f8a2b1676 +0 -0
  342. data/spec/internal/tmp/cache/assets/test/sprockets/5d53e364ada0619aa4fb30c112b6b102 +0 -0
  343. data/spec/internal/tmp/cache/assets/test/sprockets/611235bfd282813bdfbc998bcbe798e8 +0 -0
  344. data/spec/internal/tmp/cache/assets/test/sprockets/671dbbf33392960f4dfc8dc63bd7019b +0 -0
  345. data/spec/internal/tmp/cache/assets/test/sprockets/6e0879a87dae322b4e32263452ba6b4e +0 -0
  346. data/spec/internal/tmp/cache/assets/test/sprockets/6ff6303a1f21708f6bd3a328290e5d24 +0 -0
  347. data/spec/internal/tmp/cache/assets/test/sprockets/72d162018f00a25977df702c0c32873f +0 -0
  348. data/spec/internal/tmp/cache/assets/test/sprockets/7685f208e89b90425bf76796648ebc28 +0 -0
  349. data/spec/internal/tmp/cache/assets/test/sprockets/7d0dafd1bea0f4da00c580f0f6d664b8 +0 -0
  350. data/spec/internal/tmp/cache/assets/test/sprockets/7d4fe23150294500a7bcd2630667e5c8 +0 -0
  351. data/spec/internal/tmp/cache/assets/test/sprockets/7e48304ca1d04f24b1a3ddfd0e762248 +0 -0
  352. data/spec/internal/tmp/cache/assets/test/sprockets/7e6843e999995e7a8a28abe25d44de70 +0 -0
  353. data/spec/internal/tmp/cache/assets/test/sprockets/7f1cb34f019f0890927d422814194b01 +0 -0
  354. data/spec/internal/tmp/cache/assets/test/sprockets/80fbd1f419ec2c1133c164b09a4faa41 +0 -0
  355. data/spec/internal/tmp/cache/assets/test/sprockets/81ecd9c94638acd3ece19ecac462a723 +0 -0
  356. data/spec/internal/tmp/cache/assets/test/sprockets/82f457826b6170c0fd009ef469f31e16 +0 -0
  357. data/spec/internal/tmp/cache/assets/test/sprockets/8401fd13fe82bb392806930ed02005e1 +0 -0
  358. data/spec/internal/tmp/cache/assets/test/sprockets/89051a85201a06056a8d2b0c9f86cc67 +0 -0
  359. data/spec/internal/tmp/cache/assets/test/sprockets/8b503f71e2ed168eb20ff8cfc20ff3d4 +0 -0
  360. data/spec/internal/tmp/cache/assets/test/sprockets/8c7f3211b77d6699db8521f074d3e871 +0 -0
  361. data/spec/internal/tmp/cache/assets/test/sprockets/967c4a151c00ff79d54eab287c5a949b +0 -0
  362. data/spec/internal/tmp/cache/assets/test/sprockets/9a96d61233d5cc5799c7fc16fd9655c3 +0 -0
  363. data/spec/internal/tmp/cache/assets/test/sprockets/9c4023aaef54415afaf4892ced299f30 +0 -0
  364. data/spec/internal/tmp/cache/assets/test/sprockets/9d2b8824bdb90dbf4cc8b238820f5536 +0 -0
  365. data/spec/internal/tmp/cache/assets/test/sprockets/a16e48f0f9253ddceef37908141e96c3 +0 -0
  366. data/spec/internal/tmp/cache/assets/test/sprockets/a58efe476f9446653ee3ae72f0a61fad +0 -0
  367. data/spec/internal/tmp/cache/assets/test/sprockets/a5b14fb35b6609fda372da27bcd729a7 +0 -0
  368. data/spec/internal/tmp/cache/assets/test/sprockets/a9a428b52df1827450a88aa09e03c638 +0 -0
  369. data/spec/internal/tmp/cache/assets/test/sprockets/a9e4b0d4e6cb29a1cbc5e016fbcc0fb9 +0 -0
  370. data/spec/internal/tmp/cache/assets/test/sprockets/ada353bb8ffe3eb0f2dd479e6d869a70 +0 -0
  371. data/spec/internal/tmp/cache/assets/test/sprockets/aed5b98e50f137ce9635dd1ec2e825ae +0 -0
  372. data/spec/internal/tmp/cache/assets/test/sprockets/b148a5e98ff09a12b6a2139af1e62e46 +0 -0
  373. data/spec/internal/tmp/cache/assets/test/sprockets/b3b3d7f6ecf32ce8216b40eccc5da386 +0 -0
  374. data/spec/internal/tmp/cache/assets/test/sprockets/b9d7d32e6982bd30b74f8e53b9217c17 +0 -0
  375. data/spec/internal/tmp/cache/assets/test/sprockets/baf77fc130c9f3d5a5aa7fb780485a04 +0 -0
  376. data/spec/internal/tmp/cache/assets/test/sprockets/bbb1efb94f355bd05863c07b6f552c58 +0 -0
  377. data/spec/internal/tmp/cache/assets/test/sprockets/bd0dea58c57774fef248f0b0844a4654 +0 -0
  378. data/spec/internal/tmp/cache/assets/test/sprockets/bd4a5121c6495d513075e759f8cca6ed +0 -0
  379. data/spec/internal/tmp/cache/assets/test/sprockets/c052b51dcc86bc3909b8d1f00ec52063 +0 -0
  380. data/spec/internal/tmp/cache/assets/test/sprockets/c6d2f8432ae24aaa27e3c17827d59e9a +0 -0
  381. data/spec/internal/tmp/cache/assets/test/sprockets/c89f789c6b72000300327021b7d4c5c2 +0 -0
  382. data/spec/internal/tmp/cache/assets/test/sprockets/cbb27eb65bd8fb970a233e18ba352e8f +0 -0
  383. data/spec/internal/tmp/cache/assets/test/sprockets/cdf8872264f5f8dd811cdf810f6875a7 +0 -0
  384. data/spec/internal/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  385. data/spec/internal/tmp/cache/assets/test/sprockets/d0196b42a14494523f6911335f616faf +0 -0
  386. data/spec/internal/tmp/cache/assets/test/sprockets/d2473a08bfca80032fc2b63d1b701155 +0 -0
  387. data/spec/internal/tmp/cache/assets/test/sprockets/d510daa6eb0cd4805bff7fd0990dfdb5 +0 -0
  388. data/spec/internal/tmp/cache/assets/test/sprockets/d610f39602b6149ca02638c1728778b5 +0 -0
  389. data/spec/internal/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  390. data/spec/internal/tmp/cache/assets/test/sprockets/d91f67015353a832fa2e3833f735348c +0 -0
  391. data/spec/internal/tmp/cache/assets/test/sprockets/da3f0c774f5df0a1a089c222895df846 +0 -0
  392. data/spec/internal/tmp/cache/assets/test/sprockets/db2cddc1e711c9846ddae11154b7e021 +0 -0
  393. data/spec/internal/tmp/cache/assets/test/sprockets/dc85d6ffbe7a752fa33121a762c54962 +0 -0
  394. data/spec/internal/tmp/cache/assets/test/sprockets/e0e4f218b157ae599e12a247a4cf8710 +0 -0
  395. data/spec/internal/tmp/cache/assets/test/sprockets/e1b5310fd1def23fa4153a98c6f4ec94 +0 -0
  396. data/spec/internal/tmp/cache/assets/test/sprockets/e214f7e5fca115c8dd417b1756b6c74e +0 -0
  397. data/spec/internal/tmp/cache/assets/test/sprockets/e33bc43550b9803eb105d236a57226ae +0 -0
  398. data/spec/internal/tmp/cache/assets/test/sprockets/e60245101cbc86285dea16c630966171 +0 -0
  399. data/spec/internal/tmp/cache/assets/test/sprockets/e9c2a0f2fa471ace3f7ed3a1f1b9ffc5 +0 -0
  400. data/spec/internal/tmp/cache/assets/test/sprockets/ea0ece5befbce765051e27cf991cc805 +0 -0
  401. data/spec/internal/tmp/cache/assets/test/sprockets/ea537228e3763da36f19f836971837bf +0 -0
  402. data/spec/internal/tmp/cache/assets/test/sprockets/eb8e9f5bc31c8df8014af288cf304fa2 +0 -0
  403. data/spec/internal/tmp/cache/assets/test/sprockets/ee98c5174937598bf3cc6cbd06de1930 +0 -0
  404. data/spec/internal/tmp/cache/assets/test/sprockets/efcc92e2af63ff01bdb496a5cd405447 +0 -0
  405. data/spec/internal/tmp/cache/assets/test/sprockets/f43e6de318148b8815fa65c6fd6ea092 +0 -0
  406. data/spec/internal/tmp/cache/assets/test/sprockets/f4dfad893ed757565a389ceceeadcbc1 +0 -0
  407. data/spec/internal/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  408. data/spec/internal/tmp/cache/assets/test/sprockets/f96152606fbc5602cd65176f6098f69a +0 -0
  409. data/spec/internal/tmp/cache/assets/test/sprockets/fb0dfe7bc7417e1329d9cc6c913584e9 +0 -0
  410. data/spec/internal/tmp/cache/assets/test/sprockets/fb4a42a3e047a7a0d87f3ad55c8d267a +0 -0
  411. data/spec/internal/tmp/cache/assets/test/sprockets/fd9f0ae81e726ff65daa70db0055de1a +0 -0
  412. data/spec/internal/tmp/cache/assets/test/sprockets/fecd72966f3f2994e3d5894e05d76bd8 +0 -0
  413. data/spec/internal/tmp/cache/assets/test/sprockets/ff775ea5449360537913ffb102837dfa +0 -0
  414. data/spec/repository_models/generic_work_spec.rb +92 -0
  415. data/spec/repository_models/hydramata/group_membership_form_spec.rb +86 -0
  416. data/spec/repository_models/hydramata/group_spec.rb +91 -0
  417. data/spec/repository_models/person_spec.rb +44 -0
  418. data/spec/support/shared/shared_examples_is_a_curation_concern_controller.rb +23 -1
  419. data/spec/support/shared/shared_examples_remotely_identified.rb +10 -2
  420. metadata +640 -21
  421. data/app/controllers/curate/organizations_controller.rb +0 -96
  422. data/app/helpers/curate/organizations_helper.rb +0 -13
  423. data/app/repository_models/organization.rb +0 -17
  424. data/app/views/curate/organizations/_button_create_organization.html.erb +0 -1
  425. data/app/views/curate/organizations/edit.html.erb +0 -4
  426. data/app/views/curate/organizations/index.html.erb +0 -11
  427. data/app/views/curate/organizations/show.html.erb +0 -27
  428. data/app/views/organizations/_organization.html.erb +0 -30
  429. data/spec/controllers/curate/organizations_controller_spec.rb +0 -50
  430. data/spec/factories/organizations_factory.rb +0 -21
  431. data/spec/repository_models/organization_spec.rb +0 -66
@@ -19,5 +19,6 @@
19
19
  </td>
20
20
  </tr>
21
21
  <%= curation_concern_attribute_to_html(curation_concern, :embargo_release_date, "Embargo Release Date") %>
22
+ <%= curation_concern_attribute_to_html(curation_concern, :rights, "Content License") %>
22
23
  </tbody>
23
24
  </table>
@@ -16,5 +16,6 @@
16
16
  </td>
17
17
  </tr>
18
18
  <%= curation_concern_attribute_to_html(curation_concern, :embargo_release_date, "Embargo Release Date") %>
19
+ <%= curation_concern_attribute_to_html(curation_concern, :rights, "Content License") %>
19
20
  </tbody>
20
21
  </table>
@@ -23,6 +23,8 @@
23
23
 
24
24
  <div class="span6">
25
25
  <%= render partial: 'linked_contributors', locals: {f: f, label: 'Creator'} %>
26
+ <%= render partial: 'linked_editors', locals: {f: f, curation_concern: curation_concern, label: 'Editor'} %>
27
+ <%= render partial: 'linked_groups', locals: {f: f, curation_concern: curation_concern, label: "Editor Group"} %>
26
28
 
27
29
  <%= f.input :subject,
28
30
  as: :multi_value,
@@ -18,5 +18,6 @@
18
18
  </td>
19
19
  </tr>
20
20
  <%= curation_concern_attribute_to_html(curation_concern, :embargo_release_date, "Embargo Release Date") %>
21
+ <%= curation_concern_attribute_to_html(curation_concern, :rights, "Content License") %>
21
22
  </tbody>
22
23
  </table>
@@ -1,24 +1,24 @@
1
1
  <tr>
2
2
  <td>
3
- <%= link_to organization.title, organization_path(organization) %>
3
+ <%= link_to group.title, hydramata_group_path(group) %>
4
4
  </td>
5
5
  <td>
6
- <% if can? :edit, organization %>
6
+ <% if can? :edit, group %>
7
7
 
8
8
  <%= button_to(
9
9
  "Delete",
10
10
  {
11
11
  action: :destroy,
12
- controller: :organizations,
13
- id: organization.id
12
+ controller: "hydramata/groups",
13
+ id: group.id
14
14
  },
15
- data: {confirm: 'Are you sure you want to delete this organization?'},
15
+ data: {confirm: 'Are you sure you want to delete this group?'},
16
16
  class: 'btn',
17
17
  form_class: 'button-to pull-right',
18
18
  method: :delete
19
19
  )%>
20
20
 
21
- <%= link_to "Edit", edit_organization_path(organization), class: 'btn pull-right' %>
21
+ <%= link_to "Edit", edit_hydramata_group_path(group), class: 'btn pull-right' %>
22
22
  <% end %>
23
23
  </td>
24
24
  </tr>
@@ -17,5 +17,6 @@
17
17
  </td>
18
18
  </tr>
19
19
  <%= curation_concern_attribute_to_html(curation_concern, :embargo_release_date, "Embargo Release Date") %>
20
+ <%= curation_concern_attribute_to_html(curation_concern, :rights, "Content License") %>
20
21
  </tbody>
21
22
  </table>
@@ -9,6 +9,8 @@
9
9
  %>
10
10
 
11
11
  <%= render partial: 'linked_contributors', locals: {f: f, label: 'Creator'} %>
12
+ <%= render partial: 'linked_editors', locals: {f: f, curation_concern: curation_concern, label: 'Editor'} %>
13
+ <%= render partial: 'linked_groups', locals: {f: f, curation_concern: curation_concern, label: "Editor Group"} %>
12
14
 
13
15
  <%= f.input :date_created,
14
16
  as: :multi_value
@@ -0,0 +1 @@
1
+ <%= button_to label, new_hydramata_group_path, :method=>:get, :class=>"btn btn-primary collection-add submits-batches", 'data-behavior'=>'hydra-collections', :id=>'hydra-organization-add' %>
@@ -1,12 +1,22 @@
1
1
  <div class="container">
2
2
  <%-# This syntax [collections, @collection] tells form_for to use the routes from the engine named collections %>
3
- <%= form_for @organization do |f| %>
4
- <% if @organization.errors.any? %>
3
+ <% if @group_membership %>
4
+ <div id="error_explanation">
5
+ <h2><%= pluralize(@group_membership.errors.count, "error") %> prohibited this topic from being saved:</h2>
6
+ <ul>
7
+ <% @group_membership.errors.full_messages.each do |msg| %>
8
+ <li><%= msg %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+ <%= form_for @group do |f| %>
14
+ <% if @group.errors.any? %>
5
15
  <div id="error_explanation">
6
- <h2><%= pluralize(@organization.errors.count, "error") %> prohibited this topic from being saved:</h2>
16
+ <h2><%= pluralize(@group.errors.count, "error") %> prohibited this topic from being saved:</h2>
7
17
 
8
18
  <ul>
9
- <% @organization.errors.full_messages.each do |msg| %>
19
+ <% @group.errors.full_messages.each do |msg| %>
10
20
  <li><%= msg %></li>
11
21
  <% end %>
12
22
  </ul>
@@ -17,10 +27,10 @@
17
27
  NOTE: We're just making it _look_ like we're using simple_form here. Refactor at will.
18
28
  ALSO: Title isn't _actually_ required. The form is lying (but it means well and is probably right).
19
29
  %>
20
- <div class="control-group string required organization_title">
30
+ <div class="control-group string required group_title">
21
31
  <span class="control-label">
22
- <label class="string required" for="organization_title">
23
- <abbr title="" data-original-title="required">*</abbr> Title
32
+ <label class="string required" for="group_title">
33
+ <abbr title="" data-original-title="required">*</abbr>Group Name
24
34
  </label>
25
35
  </span>
26
36
  <div class="controls">
@@ -28,7 +38,7 @@
28
38
  </div>
29
39
  </div>
30
40
 
31
- <div class="control-group string required collection_description">
41
+ <div class="control-group string required group_description">
32
42
  <span class="control-label">
33
43
  <%= f.label :description %>
34
44
  </span>
@@ -37,10 +47,18 @@
37
47
  </div>
38
48
  </div>
39
49
 
50
+ <div class="row">
51
+ <div class="span6" >
52
+ <fieldset >
53
+ <%= render partial: 'linked_members', locals: {f: f} %>
54
+ </fieldset>
55
+ </div>
56
+ </div>
57
+
40
58
  <div class="form-actions">
41
59
  <%= f.submit class: 'btn btn-primary' %>
42
- <%- if @organization.persisted? -%>
43
- <%= link_to 'Cancel', organization_path(@organization), class: 'btn btn-link' %>
60
+ <%- if @group.persisted? -%>
61
+ <%= link_to 'Cancel', hydramata_group_path(@group), class: 'btn btn-link' %>
44
62
  <% else %>
45
63
  <%= link_to 'Cancel', root_path, class: 'btn btn-link' %>
46
64
  <% end %>
@@ -0,0 +1,24 @@
1
+ <tr>
2
+ <td>
3
+ <%= link_to group.title, hydramata_group_path(group) %>
4
+ </td>
5
+ <td>
6
+ <% if can? :edit, group %>
7
+
8
+ <%= button_to(
9
+ "Delete",
10
+ {
11
+ action: :destroy,
12
+ controller: "hydramata/groups",
13
+ id: group.id
14
+ },
15
+ data: {confirm: 'Are you sure you want to delete this group?'},
16
+ class: 'btn',
17
+ form_class: 'button-to pull-right',
18
+ method: :delete
19
+ )%>
20
+
21
+ <%= link_to "Edit", edit_hydramata_group_path(group), class: 'btn pull-right' %>
22
+ <% end %>
23
+ </td>
24
+ </tr>
@@ -0,0 +1,96 @@
1
+ <% label ||= 'Members' %>
2
+ <div class="control-group required link-users" id="members">
3
+ <div class="row">
4
+ <div class="span4">
5
+ <span class="control-label">
6
+ <label class="required" for="<%=f.object_name.downcase%>_members_attributes_0_name">
7
+ <%= label %>
8
+ </label>
9
+ </span>
10
+ </div>
11
+ <div class="span2 text-center">
12
+ Can edit group
13
+ </div>
14
+ </div>
15
+ <div class="controls">
16
+ <% prefix = f.object_name.downcase %>
17
+
18
+ <script id="entry-template" type="text/x-handlebars-template">
19
+ <li class="field-wrapper input-append">
20
+ <div class="row">
21
+ <div class="span4">
22
+ <input class="input-xlarge autocomplete-users" data-url="/people" id="<%=prefix %>_members_attributes_{{index}}_name" name="<%=prefix %>[members_attributes][{{index}}][name]" type="text" value="" />
23
+ <span class="field-controls">
24
+ <button class="btn btn-success add">
25
+ <i class="icon-white icon-plus"></i>
26
+ <span>Add</span>
27
+ </button>
28
+ </span>
29
+ </div>
30
+ <div class="span2 text-center">
31
+ <label class="checkbox inline-checkbox"><%= check_box_tag "group_member[edit_users_ids][]", false %></label>
32
+ <input id="<%=prefix %>_members_attributes_{{index}}_id" name="<%=prefix %>[members_attributes][{{index}}][id]" type="hidden" value="" />
33
+ </div>
34
+ </div>
35
+ </li>
36
+ </script>
37
+ <script id="existing-user-template" type="text/x-handlebars-template">
38
+ <li class="field-wrapper input-append">
39
+ <div class="row">
40
+ <div class="span4">
41
+ <span class="linked-user">
42
+ <a href="/people/{{value}}" target="_new">{{label}}</a>
43
+ </span>
44
+ <input type="hidden" name="<%=prefix %>[members_attributes][{{index}}][id]" value="{{value}}">
45
+ <span class="field-controls">
46
+ <button class="btn btn-danger remove">
47
+ <i class="icon-white icon-minus"></i>
48
+ <span>Remove</span>
49
+ </button>
50
+ </span>
51
+ </div>
52
+ <div class="span2 text-center">
53
+ <label class="checkbox inline-checkbox"><%= check_box_tag "group_member[edit_users_ids][]", "{{value}}", @group.edit_users.include?("{{value}}") %></label>
54
+ </div>
55
+ </div>
56
+ </li>
57
+ </script>
58
+
59
+ <ul class="listing">
60
+ <% if !@group.nil? && @group.members != [] %>
61
+ <%= f.fields_for :members do |memberField| %>
62
+ <li class="field-wrapper input-append">
63
+ <div class="row">
64
+ <%= memberField.hidden_field :id %>
65
+ <%= memberField.hidden_field :_destroy %>
66
+ <div class="span4">
67
+ <% if memberField.object.persisted? %>
68
+ <% if (current_user.repository_id == memberField.object.id) %>
69
+ <span class="linked-user current-user"><%=link_to memberField.object.name, memberField.object, target: '_new' %></span>
70
+ <% else %>
71
+ <span class="linked-user"><%=link_to memberField.object.name, memberField.object, target: '_new' %></span>
72
+ <% end %>
73
+ <% else %>
74
+ <%= memberField.text_field :name, class: 'input-xlarge autocomplete-users', 'data-url' => people_path, required: memberField.index == 0 %>
75
+ <% end %>
76
+ <% if (current_user.repository_id != memberField.object.id) %>
77
+ <span class="field-controls"></span>
78
+ <% end %>
79
+ </div>
80
+ <div class="span2 text-center">
81
+ <label class="checkbox inline-checkbox">
82
+ <% if (current_user.repository_id == memberField.object.id) %>
83
+ <%= check_box_tag "current_user_disabled", 'checked', true, disabled: true %>
84
+ <%= hidden_field_tag "group_member[edit_users_ids][]", @group.edit_users.include?(memberField.object.depositor) %>
85
+ <% else %>
86
+ <%= check_box_tag "group_member[edit_users_ids][]", memberField.object.id, @group.edit_users.include?(memberField.object.depositor) %>
87
+ <% end %>
88
+ </label>
89
+ </div>
90
+ </div>
91
+ </li>
92
+ <% end %>
93
+ <% end %>
94
+ </ul>
95
+ </div>
96
+ </div>
@@ -0,0 +1,4 @@
1
+ <% content_for :page_header do %>
2
+ <h1><%= @group %> <span class="human_readable_type">(<%= @group.human_readable_type %>)</span></h1>
3
+ <% end %>
4
+ <%= render 'form' %>
@@ -0,0 +1,11 @@
1
+ <%- if has_any_group? %>
2
+ <%= render_document_index %>
3
+ <%- else %>
4
+ <div class="span12 main-header">
5
+ <p>You have no groups yet.</p>
6
+ </div>
7
+ <%- end %>
8
+
9
+ <% if can? :create, Hydramata::Group %>
10
+ <%= button_for_create_new_group %>
11
+ <% end %>
@@ -1,4 +1,4 @@
1
1
  <% content_for :page_header do %>
2
- <h1>Create a New Organization</h1>
2
+ <h1>Create a New Group</h1>
3
3
  <% end %>
4
4
  <%= render 'form' %>
@@ -0,0 +1,36 @@
1
+ <% content_for :page_title, curation_concern_page_title(@group) %>
2
+ <% content_for :page_header do %>
3
+ <h1> <%= @group.title %> </h1>
4
+ <% end %>
5
+ <% if can? :edit, @group %>
6
+ <% content_for :page_actions do %>
7
+
8
+ <%= button_to(
9
+ "Delete",
10
+ {
11
+ action: :destroy,
12
+ controller: "hydramata/groups",
13
+ id: @group.id
14
+ },
15
+ data: {confirm: 'Are you sure you want to delete this group?'},
16
+ class: 'btn',
17
+ form_class: 'button-to pull-right',
18
+ method: :delete
19
+ )%>
20
+
21
+ <%= link_to 'Edit', edit_hydramata_group_path(@group), class: 'btn' %>
22
+ <% end %>
23
+ <% end %>
24
+ <div class="group-description">
25
+ <%= @group.description %>
26
+ </div>
27
+
28
+ <h3> Members of this group: </h3>
29
+ <div class="group-members">
30
+ <ul class="collection-listing">
31
+ <% @group.members.each do |member| %>
32
+ <li class='collection-member'><%= link_to member.name, person_path(member) %></li>
33
+ <% end %>
34
+ </ul>
35
+ </div>
36
+
@@ -11,6 +11,7 @@
11
11
  <%= csrf_meta_tag %>
12
12
 
13
13
  <%= stylesheet_link_tag 'application' %>
14
+ <%= javascript_include_tag 'application' %>
14
15
  <%= javascript_include_tag 'modernizr' %>
15
16
  <%= render :partial => '/ga', :formats => [:html] -%>
16
17
  </head>
@@ -18,7 +19,6 @@
18
19
 
19
20
  <%= content_for?(:body) ? yield(:body) : yield %>
20
21
 
21
- <%= javascript_include_tag 'application' %>
22
22
 
23
23
  <% unless Rails.env.production? %>
24
24
  <!-- Rendered through: <%= yield(:layout_name) %>boilerplate -->
@@ -2,6 +2,6 @@
2
2
 
3
3
  <div class="row">
4
4
  <div class="span12 form-actions">
5
- <%= button_to "Cancel My Account", cancel_registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger' %>
5
+ <%= button_to "Cancel Account", cancel_registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger' %>
6
6
  </div>
7
7
  </div>
@@ -4,9 +4,7 @@
4
4
  <legend>Personal Information</legend>
5
5
 
6
6
  <%= f.input :name %>
7
- <%= f.input :date_of_birth %>
8
- <%= f.input :gender %>
9
- <%= f.input :title %>
7
+ <%= f.input :title, label: 'Job Title' %>
10
8
  <%= f.input :personal_webpage %>
11
9
  <%= f.input :blog %>
12
10
 
@@ -33,9 +31,9 @@
33
31
  <div class="span12">
34
32
  <fieldset class="required">
35
33
  <legend>
36
- Attach your profile image
34
+ Attach <%= current_user.manager? ? User.find(params[:id]).name + "'s" : 'your' %> profile image
37
35
  </legend>
38
- <%= f.input :files, as: :file, label: 'Upload your file' %>
36
+ <%= f.input :files, as: :file, label: 'Upload the file' %>
39
37
  </fieldset>
40
38
  </div>
41
39
  </div>
@@ -1,20 +1,22 @@
1
1
  <div class="row">
2
2
 
3
3
  <fieldset class="span12">
4
- <legend>Change Your Password</legend>
4
+ <legend>Change <%= current_user.manager? ? User.find(params[:id]).name + "'s" : 'Your' %> Password</legend>
5
5
 
6
6
  <%= f.input :password, label: "New password", input_html: { autocomplete: "off" } %>
7
- <%= f.input :password_confirmation, label: "Repeat your new password", input_html: { autocomplete: "off" } %>
7
+ <%= f.input :password_confirmation, label: "Repeat the new password", input_html: { autocomplete: "off" } %>
8
8
  </fieldset>
9
9
 
10
10
  </div>
11
11
 
12
- <div class="row">
13
- <fieldset class="span12">
14
- <legend>Authorize Your Changes</legend>
15
- <p><em>Enter your current password to confirm your changes</em></p>
12
+ <% unless current_user.manager? %>
13
+ <div class="row">
14
+ <fieldset class="span12">
15
+ <legend>Authorize Your Changes</legend>
16
+ <p><em>Enter your current password to confirm your changes</em></p>
16
17
 
17
- <%= f.input :current_password, required: true %>
18
+ <%= f.input :current_password, required: true %>
18
19
 
19
- </fieldset>
20
- </div>
20
+ </fieldset>
21
+ </div>
22
+ <% end %>
@@ -3,24 +3,27 @@
3
3
  <% end %>
4
4
 
5
5
  <%= simple_form_for(resource, :as => resource_name, :url => user_registration_path, :html => { :method => :put }) do |f| %>
6
- <% if f.error_notification -%>
6
+
7
+ <%= f.hidden_field :id %>
8
+
9
+ <% if f.error_notification -%>
7
10
  <div class="alert alert-error fade in">
8
11
  <strong>Wait don't go!</strong> There was a problem with your submission. Please review the errors below:
9
12
  <a class="close" data-dismiss="alert" href="#">&times;</a>
10
13
  </div>
11
14
  <% end -%>
12
15
 
13
- <%= render partial: 'form_attributes', locals: {f: f} %>
16
+ <%= render partial: 'registrations/form_attributes', locals: {f: f} %>
14
17
 
15
- <%= render partial: 'form_password_management', locals: {f: f} %>
18
+ <%= render partial: 'registrations/form_password_management', locals: {f: f} %>
16
19
 
17
20
  <div class="row">
18
21
  <div class="span12 form-actions">
19
- <%= f.submit class: 'btn btn-primary', value: 'Update My Account' %>
22
+ <%= f.submit class: 'btn btn-primary', value: 'Update Account' %>
20
23
  <%= link_to 'Cancel', person_path(current_user.person), class: 'btn btn-link' %>
21
24
  </div>
22
25
  </div>
23
26
 
24
27
  <% end %>
25
28
 
26
- <%= render partial: 'form_account_deactivation', locals: { resource_name: resource_name } %>
29
+ <%= render partial: 'registrations/form_account_deactivation', locals: { resource_name: resource_name } %>