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.
- checksums.yaml +4 -4
- data/.github/CODE_OF_CONDUCT.md +5 -5
- data/.github/CONTRIBUTING.md +2 -2
- data/.rubocop.yml +1 -0
- data/.rubocop_fixme.yml +2 -0
- data/Gemfile +1 -0
- data/README.md +3 -2
- data/app/actors/hyrax/actors/collections_membership_actor.rb +3 -0
- data/app/actors/hyrax/actors/create_with_remote_files_actor.rb +4 -3
- data/app/actors/hyrax/actors/default_admin_set_actor.rb +9 -6
- data/app/assets/javascripts/hyrax.js +3 -0
- data/app/assets/javascripts/hyrax/app.js.erb +14 -0
- data/app/assets/javascripts/hyrax/batch_edit.js +2 -1
- data/app/assets/javascripts/hyrax/collection_types.es6 +97 -36
- data/app/assets/javascripts/hyrax/collections.js +15 -49
- data/app/assets/javascripts/hyrax/collections_utils.es6 +116 -0
- data/app/assets/javascripts/hyrax/collections_v2.es6 +57 -0
- data/app/assets/javascripts/hyrax/content_blocks.js +1 -13
- data/app/assets/javascripts/hyrax/nav_safety.js +41 -0
- data/app/assets/javascripts/hyrax/turbolinks_events.js +3 -0
- data/app/assets/stylesheets/hyrax/_collection_types.scss +46 -2
- data/app/assets/stylesheets/hyrax/_work-show.scss +6 -9
- data/app/assets/stylesheets/hyrax/dashboard.scss +2 -0
- data/app/assets/stylesheets/hyrax/sidebar.scss +4 -0
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +10 -2
- data/app/controllers/hyrax/admin/admin_sets_controller.rb +2 -9
- data/app/controllers/hyrax/admin/collection_types_controller.rb +1 -1
- data/app/controllers/hyrax/batch_edits_controller.rb +30 -4
- data/app/controllers/hyrax/dashboard/collection_members_controller.rb +1 -0
- data/app/controllers/hyrax/dashboard/collections_controller.rb +4 -1
- data/app/controllers/hyrax/downloads_controller.rb +7 -1
- data/app/forms/hyrax/forms/admin/collection_type_form.rb +1 -1
- data/app/indexers/hyrax/repository_reindexer.rb +1 -1
- data/app/jobs/attach_files_to_work_job.rb +8 -4
- data/app/jobs/import_url_job.rb +11 -5
- data/app/models/admin_set.rb +25 -3
- data/app/models/concerns/hyrax/collection_behavior.rb +23 -11
- data/app/models/concerns/hyrax/collection_nesting.rb +22 -3
- data/app/models/hyrax/permission_template_access.rb +7 -4
- data/app/presenters/hyrax/admin_set_presenter.rb +21 -0
- data/app/presenters/hyrax/collection_presenter.rb +23 -1
- data/app/presenters/hyrax/dashboard/user_presenter.rb +4 -0
- data/app/presenters/hyrax/presents_attributes.rb +6 -2
- data/app/presenters/hyrax/work_show_presenter.rb +4 -0
- data/app/renderers/hyrax/renderers/attribute_renderer.rb +14 -0
- data/app/services/hyrax/adapters/nesting_index_adapter.rb +19 -39
- data/app/services/hyrax/admin_set_create_service.rb +1 -1
- data/app/services/hyrax/collection_types/create_service.rb +4 -0
- data/app/services/hyrax/collections/migration_service.rb +25 -2
- data/app/services/hyrax/collections/nested_collection_persistence_service.rb +8 -3
- data/app/services/hyrax/collections/nested_collection_query_service.rb +3 -3
- data/app/services/hyrax/default_middleware_stack.rb +3 -3
- data/app/services/hyrax/multiple_membership_checker.rb +4 -2
- data/app/views/catalog/_index_header_list_collection.html.erb +1 -1
- data/app/views/catalog/_search_form.html.erb +0 -4
- data/app/views/hyrax/admin/admin_sets/_show_actions.html.erb +27 -0
- data/app/views/hyrax/admin/admin_sets/show.html.erb +1 -25
- data/app/views/hyrax/admin/collection_types/_form.html.erb +17 -6
- data/app/views/hyrax/admin/collection_types/_form_appearance.html.erb +5 -0
- data/app/views/hyrax/admin/collection_types/_form_participant_table.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/_form_participants.html.erb +56 -52
- data/app/views/hyrax/admin/collection_types/edit.html.erb +9 -7
- data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
- data/app/views/hyrax/base/_attribute_rows.html.erb +15 -14
- data/app/views/hyrax/base/_form.html.erb +1 -0
- data/app/views/hyrax/base/_form_collections_error.html.erb +1 -0
- data/app/views/hyrax/base/_items.html.erb +3 -2
- data/app/views/hyrax/base/_metadata.html.erb +5 -7
- data/app/views/hyrax/base/_relationships.html.erb +3 -5
- data/app/views/hyrax/base/_relationships_parent_row.html.erb +4 -5
- data/app/views/hyrax/base/_relationships_parent_rows.html.erb +2 -1
- data/app/views/hyrax/base/_show_actions.html.erb +11 -1
- data/app/views/hyrax/batch_edits/edit.html.erb +57 -17
- data/app/views/hyrax/collections/_list_collections.html.erb +1 -1
- data/app/views/hyrax/collections/show.html.erb +1 -1
- data/app/views/hyrax/content_blocks/_form.html.erb +8 -7
- data/app/views/hyrax/dashboard/_index_partials/_current_proxy_rights.html.erb +17 -0
- data/app/views/hyrax/dashboard/collections/_collection_title.html.erb +1 -3
- data/app/views/hyrax/dashboard/collections/_default_group.html.erb +30 -0
- data/app/views/hyrax/dashboard/collections/_form_branding.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_form_for_select_collection.html.erb +1 -1
- data/app/views/hyrax/dashboard/collections/_form_share.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_list_collections.html.erb +13 -2
- data/app/views/hyrax/dashboard/show_user.html.erb +10 -9
- data/app/views/hyrax/my/collections/_list_collections.html.erb +10 -3
- data/app/views/hyrax/my/collections/_modal_add_subcollection.html.erb +1 -1
- data/app/views/hyrax/my/collections/_modal_add_to_collection.html.erb +1 -1
- data/app/views/hyrax/my/collections/_modal_delete_collections_deny.html.erb +14 -0
- data/app/views/hyrax/my/collections/index.html.erb +1 -0
- data/app/views/shared/_nav_safety_modal.html.erb +12 -0
- data/config/features.rb +4 -0
- data/config/initializers/samvera-nesting_indexer_initializer.rb +1 -0
- data/config/locales/hyrax.de.yml +26 -11
- data/config/locales/hyrax.en.yml +21 -6
- data/config/locales/hyrax.es.yml +17 -2
- data/config/locales/hyrax.fr.yml +17 -2
- data/config/locales/hyrax.it.yml +17 -2
- data/config/locales/hyrax.pt-BR.yml +17 -2
- data/config/locales/hyrax.zh.yml +17 -2
- data/config/locales/simple_form.en.yml +6 -27
- data/hyrax.gemspec +2 -2
- data/lib/generators/hyrax/assets_generator.rb +4 -0
- data/lib/generators/hyrax/install_generator.rb +10 -0
- data/lib/generators/hyrax/templates/app/assets/images/unauthorized.png +0 -0
- data/lib/generators/hyrax/templates/config/locales/hyrax.en.yml +6 -5
- data/lib/generators/hyrax/templates/config/tinymce.yml +12 -7
- data/lib/generators/hyrax/templates/db/migrate/20180406202557_add_badge_color_to_collection_types.rb.erb +5 -0
- data/lib/hyrax/configuration.rb +1 -1
- data/lib/hyrax/version.rb +1 -1
- data/spec/actors/hyrax/actors/collections_membership_actor_spec.rb +24 -0
- data/spec/actors/hyrax/actors/create_with_remote_files_actor_spec.rb +19 -1
- data/spec/actors/hyrax/actors/default_admin_set_actor_spec.rb +41 -8
- data/spec/actors/hyrax/actors/file_set_actor_spec.rb +4 -12
- data/spec/actors/hyrax/actors/generic_work_actor_spec.rb +3 -7
- data/spec/controllers/hyrax/admin/strategies_controller_spec.rb +13 -2
- data/spec/controllers/hyrax/batch_edits_controller_spec.rb +83 -8
- data/spec/controllers/hyrax/dashboard/collections_controller_spec.rb +3 -0
- data/spec/controllers/hyrax/downloads_controller_spec.rb +26 -5
- data/spec/controllers/hyrax/file_sets_controller_spec.rb +3 -6
- data/spec/controllers/hyrax/generic_works_controller_json_spec.rb +4 -4
- data/spec/controllers/hyrax/generic_works_controller_spec.rb +3 -23
- data/spec/controllers/hyrax/transfers_controller_spec.rb +1 -1
- data/spec/factories/admin_sets_lw.rb +215 -0
- data/spec/factories/collections.rb +10 -10
- data/spec/factory_tests/adminsets_factory_spec.rb +132 -0
- data/spec/factory_tests/collections_factory_spec.rb +3 -3
- data/spec/features/batch_create_spec.rb +5 -8
- data/spec/features/batch_edit_spec.rb +49 -2
- data/spec/features/collection_multi_membership_spec.rb +29 -14
- data/spec/features/collection_type_spec.rb +9 -2
- data/spec/features/create_work_admin_spec.rb +1 -1
- data/spec/features/create_work_spec.rb +1 -1
- data/spec/features/dashboard/collection_spec.rb +16 -12
- data/spec/features/edit_content_block_admin_spec.rb +29 -12
- data/spec/features/embargo_spec.rb +55 -0
- data/spec/features/proxy_spec.rb +3 -1
- data/spec/features/work_show_spec.rb +20 -4
- data/spec/forms/hyrax/forms/admin/collection_type_form_spec.rb +1 -0
- data/spec/indexers/hyrax/repository_reindexer_spec.rb +1 -1
- data/spec/jobs/attach_files_to_work_job_spec.rb +15 -3
- data/spec/jobs/batch_create_job_spec.rb +6 -6
- data/spec/jobs/create_work_job_spec.rb +1 -1
- data/spec/models/admin_set_spec.rb +10 -8
- data/spec/models/collection_spec.rb +1 -1
- data/spec/models/concerns/hyrax/collection_nesting_spec.rb +6 -3
- data/spec/models/flipflop_spec.rb +8 -0
- data/spec/models/hyrax/work_behavior_spec.rb +1 -1
- data/spec/presenters/hyrax/admin_set_presenter_spec.rb +70 -0
- data/spec/presenters/hyrax/collection_presenter_spec.rb +66 -0
- data/spec/renderers/hyrax/renderers/attribute_renderer_spec.rb +19 -0
- data/spec/services/hyrax/adapters/nesting_index_adapter_spec.rb +31 -21
- data/spec/services/hyrax/collection_types/create_service_spec.rb +7 -4
- data/spec/services/hyrax/collections/migration_service_spec.rb +204 -17
- data/spec/services/hyrax/collections/nested_collection_persistence_service_spec.rb +1 -1
- data/spec/services/hyrax/collections/permissions_create_service_spec.rb +1 -1
- data/spec/services/hyrax/collections/permissions_service_spec.rb +4 -0
- data/spec/services/hyrax/default_middleware_stack_spec.rb +1 -1
- data/spec/services/hyrax/multiple_membership_checker_spec.rb +4 -4
- data/spec/services/hyrax/workflow/grant_edit_to_depositor_spec.rb +1 -1
- data/spec/services/hyrax/workflow/grant_read_to_depositor_spec.rb +1 -1
- data/spec/services/hyrax/workflow/revoke_edit_from_depositor_spec.rb +1 -1
- data/spec/spec_helper.rb +35 -2
- data/spec/support/features/batch_edit_actions.rb +1 -1
- data/spec/support/selectors.rb +15 -0
- data/spec/views/hyrax/admin/admin_sets/_show_actions.html.erb_spec.rb +66 -0
- data/spec/views/hyrax/admin/admin_sets/show.html.erb_spec.rb +5 -34
- data/spec/views/hyrax/admin/collection_types/_form.html.erb_spec.rb +3 -1
- data/spec/views/hyrax/admin/collection_types/_form_appearance.html.erb_spec.rb +22 -0
- data/spec/views/hyrax/admin/collection_types/_form_participants.html.erb_spec.rb +11 -3
- data/spec/views/hyrax/base/_items.html.erb_spec.rb +46 -0
- data/spec/views/hyrax/base/_relationships.html.erb_spec.rb +1 -1
- data/spec/views/hyrax/base/_show_actions.html.erb_spec.rb +4 -2
- data/spec/views/hyrax/dashboard/collections/_default_group.html.erb_spec.rb +43 -0
- data/spec/views/hyrax/dashboard/collections/_list_collections.html.erb_spec.rb +51 -0
- data/spec/views/hyrax/dashboard/collections/show.html.erb_spec.rb +1 -0
- data/spec/views/hyrax/dashboard/show_user_spec.rb +5 -2
- data/spec/views/hyrax/my/collections/_list_collections.html.erb_spec.rb +2 -0
- data/template.rb +1 -1
- metadata +30 -13
- data/app/views/hyrax/content_blocks/_modal_content_block.html.erb +0 -15
@@ -77,7 +77,7 @@ RSpec.describe 'hyrax/base/relationships', type: :view do
|
|
77
77
|
it "renders using attribute_to_html" do
|
78
78
|
allow(controller).to receive(:current_user).and_return(user)
|
79
79
|
allow(solr_doc).to receive(:member_of_collection_ids).and_return([])
|
80
|
-
expect(presenter).to receive(:attribute_to_html).with(:admin_set, render_as: :faceted)
|
80
|
+
expect(presenter).to receive(:attribute_to_html).with(:admin_set, render_as: :faceted, html_dl: true)
|
81
81
|
render 'hyrax/base/relationships', presenter: presenter
|
82
82
|
end
|
83
83
|
|
@@ -16,9 +16,10 @@ RSpec.describe 'hyrax/base/_show_actions.html.erb', type: :view do
|
|
16
16
|
allow(presenter).to receive(:editor?).and_return(false)
|
17
17
|
render 'hyrax/base/show_actions.html.erb', presenter: presenter
|
18
18
|
end
|
19
|
-
it "doesn't show edit / delete links" do
|
19
|
+
it "doesn't show edit / delete / Add to collection links" do
|
20
20
|
expect(rendered).not_to have_link 'Edit'
|
21
21
|
expect(rendered).not_to have_link 'Delete'
|
22
|
+
expect(rendered).not_to have_link 'Add to collection'
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
@@ -34,9 +35,10 @@ RSpec.describe 'hyrax/base/_show_actions.html.erb', type: :view do
|
|
34
35
|
it "does not show file manager link" do
|
35
36
|
expect(rendered).not_to have_link 'File Manager'
|
36
37
|
end
|
37
|
-
it "shows edit / delete links" do
|
38
|
+
it "shows edit / delete / Add to collection links" do
|
38
39
|
expect(rendered).to have_link 'Edit'
|
39
40
|
expect(rendered).to have_link 'Delete'
|
41
|
+
expect(rendered).to have_button 'Add to collection'
|
40
42
|
end
|
41
43
|
end
|
42
44
|
context "when the work contains 1 child" do
|
@@ -0,0 +1,43 @@
|
|
1
|
+
RSpec.describe 'hyrax/dashboard/collections/_default_group.html.erb', type: :view do
|
2
|
+
let(:ability) { double }
|
3
|
+
|
4
|
+
before do
|
5
|
+
allow(view).to receive(:docs).and_return([])
|
6
|
+
allow(view).to receive(:current_ability).and_return(ability)
|
7
|
+
stub_template 'hyrax/my/_list_collections.html.erb' => 'collection row'
|
8
|
+
end
|
9
|
+
|
10
|
+
context 'Managed Collections' do
|
11
|
+
before do
|
12
|
+
allow(ability).to receive(:admin?).and_return(false)
|
13
|
+
render
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'shows collection table headings' do
|
17
|
+
expect(rendered).to have_text('Title')
|
18
|
+
expect(rendered).to have_text('Access')
|
19
|
+
expect(rendered).to have_text('Type')
|
20
|
+
expect(rendered).to have_text('Visibility')
|
21
|
+
expect(rendered).to have_text('Items')
|
22
|
+
expect(rendered).to have_text('Last modified')
|
23
|
+
expect(rendered).to have_text('Actions')
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'All Collections' do
|
28
|
+
before do
|
29
|
+
allow(ability).to receive(:admin?).and_return(true)
|
30
|
+
render
|
31
|
+
end
|
32
|
+
|
33
|
+
it "doesn't show access" do
|
34
|
+
expect(rendered).to have_text('Title')
|
35
|
+
expect(rendered).not_to have_text('Access')
|
36
|
+
expect(rendered).to have_text('Type')
|
37
|
+
expect(rendered).to have_text('Visibility')
|
38
|
+
expect(rendered).to have_text('Items')
|
39
|
+
expect(rendered).to have_text('Last modified')
|
40
|
+
expect(rendered).to have_text('Actions')
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
RSpec.describe 'hyrax/dashboard/collections/_list_collections.html.erb', type: :view do
|
2
|
+
let(:ability) { double }
|
3
|
+
let(:solr_document) { SolrDocument.new(collection_doc) }
|
4
|
+
let(:presenter) { Hyrax::CollectionPresenter.new(solr_document, ability) }
|
5
|
+
|
6
|
+
let(:collection_doc) do
|
7
|
+
{
|
8
|
+
id: '999',
|
9
|
+
'has_model_ssim' => ['Collection'],
|
10
|
+
'title_tesim' => ['Title 1'],
|
11
|
+
'date_created_tesim' => '2000-01-01'
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
before do
|
16
|
+
allow(view).to receive(:is_admin_set).and_return(false)
|
17
|
+
allow(view).to receive(:current_ability).and_return(ability)
|
18
|
+
allow(presenter).to receive(:available_parent_collections).and_return([])
|
19
|
+
allow(presenter).to receive(:collection_type_badge).and_return('A Collection Type')
|
20
|
+
allow(presenter).to receive(:total_viewable_items).and_return(3)
|
21
|
+
allow(ability).to receive(:can?).with(:edit, solr_document).and_return(false)
|
22
|
+
|
23
|
+
stub_template 'hyrax/my/_collection_action_menu.html.erb' => 'actions'
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'Managed Collections' do
|
27
|
+
before do
|
28
|
+
allow(ability).to receive(:admin?).and_return(false)
|
29
|
+
allow(presenter).to receive(:managed_access).and_return('Manage Access')
|
30
|
+
render('list_collections.html.erb', collection_presenter: presenter)
|
31
|
+
end
|
32
|
+
|
33
|
+
# NOTE: Real labels are Manage, Deposit, or View, but UI shows whatever label gets returned,
|
34
|
+
# so no need to test all conditions.
|
35
|
+
it 'shows access label as returned by presenter' do
|
36
|
+
expect(rendered).to have_text('Manage Access')
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
context 'All Collections' do
|
41
|
+
before do
|
42
|
+
allow(ability).to receive(:admin?).and_return(true)
|
43
|
+
allow(presenter).to receive(:managed_access).and_return('Manage')
|
44
|
+
render('list_collections.html.erb', collection_presenter: presenter)
|
45
|
+
end
|
46
|
+
|
47
|
+
it "doesn't show access" do
|
48
|
+
expect(rendered).not_to have_text('Manage')
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -28,6 +28,7 @@ RSpec.describe 'hyrax/dashboard/collections/show.html.erb', type: :view do
|
|
28
28
|
|
29
29
|
allow(collection_type).to receive(:nestable?).and_return(true)
|
30
30
|
allow(collection_type).to receive(:title).and_return("User Collection")
|
31
|
+
allow(collection_type).to receive(:badge_color).and_return("#ffa510")
|
31
32
|
|
32
33
|
assign(:presenter, presenter)
|
33
34
|
# Stub route because view specs don't handle engine routes
|
@@ -10,6 +10,7 @@ RSpec.describe "hyrax/dashboard/show_user.html.erb", type: :view do
|
|
10
10
|
render_recent_activity: 'recent activity',
|
11
11
|
render_recent_notifications: 'recent notifications',
|
12
12
|
link_to_additional_notifications: 'additional notifications',
|
13
|
+
link_to_manage_proxies: 'Manage Proxies',
|
13
14
|
transfers: transfer_presenter)
|
14
15
|
end
|
15
16
|
let(:transfer_presenter) do
|
@@ -40,7 +41,8 @@ RSpec.describe "hyrax/dashboard/show_user.html.erb", type: :view do
|
|
40
41
|
|
41
42
|
it 'renders proxy partial' do
|
42
43
|
render
|
43
|
-
expect(rendered).to match(/
|
44
|
+
expect(rendered).to match(/Current Proxies/)
|
45
|
+
expect(rendered).to match(/Manage Proxies/)
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
@@ -51,7 +53,8 @@ RSpec.describe "hyrax/dashboard/show_user.html.erb", type: :view do
|
|
51
53
|
|
52
54
|
it 'does not render proxy partial' do
|
53
55
|
render
|
54
|
-
expect(rendered).not_to match(/
|
56
|
+
expect(rendered).not_to match(/Current Proxies/)
|
57
|
+
expect(rendered).not_to match(/Manage Proxies/)
|
55
58
|
end
|
56
59
|
end
|
57
60
|
end
|
@@ -36,6 +36,7 @@ RSpec.describe 'hyrax/my/collections/_list_collections.html.erb', type: :view do
|
|
36
36
|
allow(collection).to receive(:id).and_return(id)
|
37
37
|
allow(collection).to receive(:member_of_collection_ids).and_return(["abc", "123"])
|
38
38
|
allow(collection_presenter).to receive(:collection_type_badge).and_return("User Collection")
|
39
|
+
allow(collection_presenter).to receive(:allow_batch?).and_return(true)
|
39
40
|
view.lookup_context.prefixes.push 'hyrax/my'
|
40
41
|
render 'hyrax/my/collections/list_collections', collection_presenter: collection_presenter, is_admin_set: doc.admin_set?
|
41
42
|
end
|
@@ -79,6 +80,7 @@ RSpec.describe 'hyrax/my/collections/_list_collections.html.erb', type: :view do
|
|
79
80
|
allow(view).to receive(:can?).with(:edit, doc).and_return(true)
|
80
81
|
allow(doc).to receive(:to_model).and_return(stub_model(AdminSet, id: id))
|
81
82
|
allow(collection_presenter).to receive(:collection_type_badge).and_return("Admin Set")
|
83
|
+
allow(collection_presenter).to receive(:allow_batch?).and_return(true)
|
82
84
|
view.lookup_context.prefixes.push 'hyrax/my'
|
83
85
|
|
84
86
|
render 'hyrax/my/collections/list_collections', collection_presenter: collection_presenter, is_admin_set: doc.admin_set?
|
data/template.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyrax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2018-04-
|
17
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|
@@ -620,20 +620,14 @@ dependencies:
|
|
620
620
|
requirements:
|
621
621
|
- - "~>"
|
622
622
|
- !ruby/object:Gem::Version
|
623
|
-
version: '
|
624
|
-
- - ">="
|
625
|
-
- !ruby/object:Gem::Version
|
626
|
-
version: 1.0.1
|
623
|
+
version: '2.0'
|
627
624
|
type: :runtime
|
628
625
|
prerelease: false
|
629
626
|
version_requirements: !ruby/object:Gem::Requirement
|
630
627
|
requirements:
|
631
628
|
- - "~>"
|
632
629
|
- !ruby/object:Gem::Version
|
633
|
-
version: '
|
634
|
-
- - ">="
|
635
|
-
- !ruby/object:Gem::Version
|
636
|
-
version: 1.0.1
|
630
|
+
version: '2.0'
|
637
631
|
- !ruby/object:Gem::Dependency
|
638
632
|
name: select2-rails
|
639
633
|
requirement: !ruby/object:Gem::Requirement
|
@@ -744,14 +738,14 @@ dependencies:
|
|
744
738
|
requirements:
|
745
739
|
- - "~>"
|
746
740
|
- !ruby/object:Gem::Version
|
747
|
-
version: '
|
741
|
+
version: '2.0'
|
748
742
|
type: :development
|
749
743
|
prerelease: false
|
750
744
|
version_requirements: !ruby/object:Gem::Requirement
|
751
745
|
requirements:
|
752
746
|
- - "~>"
|
753
747
|
- !ruby/object:Gem::Version
|
754
|
-
version: '
|
748
|
+
version: '2.0'
|
755
749
|
- !ruby/object:Gem::Dependency
|
756
750
|
name: equivalent-xml
|
757
751
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1122,6 +1116,8 @@ files:
|
|
1122
1116
|
- app/assets/javascripts/hyrax/collection_types.es6
|
1123
1117
|
- app/assets/javascripts/hyrax/collections.js
|
1124
1118
|
- app/assets/javascripts/hyrax/collections/editor.es6
|
1119
|
+
- app/assets/javascripts/hyrax/collections_utils.es6
|
1120
|
+
- app/assets/javascripts/hyrax/collections_v2.es6
|
1125
1121
|
- app/assets/javascripts/hyrax/config.js.erb
|
1126
1122
|
- app/assets/javascripts/hyrax/content_blocks.js
|
1127
1123
|
- app/assets/javascripts/hyrax/dashboard_actions.js
|
@@ -1139,6 +1135,7 @@ files:
|
|
1139
1135
|
- app/assets/javascripts/hyrax/ga_events.js
|
1140
1136
|
- app/assets/javascripts/hyrax/initialize.js
|
1141
1137
|
- app/assets/javascripts/hyrax/monkey_patch_turbolinks.js.coffee
|
1138
|
+
- app/assets/javascripts/hyrax/nav_safety.js
|
1142
1139
|
- app/assets/javascripts/hyrax/notification.es6
|
1143
1140
|
- app/assets/javascripts/hyrax/permissions.js
|
1144
1141
|
- app/assets/javascripts/hyrax/permissions/control.es6
|
@@ -1725,6 +1722,7 @@ files:
|
|
1725
1722
|
- app/views/hyrax/admin/admin_sets/_form_participants.html.erb
|
1726
1723
|
- app/views/hyrax/admin/admin_sets/_form_visibility.html.erb
|
1727
1724
|
- app/views/hyrax/admin/admin_sets/_form_workflow.erb
|
1725
|
+
- app/views/hyrax/admin/admin_sets/_show_actions.html.erb
|
1728
1726
|
- app/views/hyrax/admin/admin_sets/_show_document_list.html.erb
|
1729
1727
|
- app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb
|
1730
1728
|
- app/views/hyrax/admin/admin_sets/_sort_and_per_page.html.erb
|
@@ -1735,6 +1733,7 @@ files:
|
|
1735
1733
|
- app/views/hyrax/admin/admin_sets/show.html.erb
|
1736
1734
|
- app/views/hyrax/admin/appearances/show.html.erb
|
1737
1735
|
- app/views/hyrax/admin/collection_types/_form.html.erb
|
1736
|
+
- app/views/hyrax/admin/collection_types/_form_appearance.html.erb
|
1738
1737
|
- app/views/hyrax/admin/collection_types/_form_metadata.html.erb
|
1739
1738
|
- app/views/hyrax/admin/collection_types/_form_metadata_admin_set.html.erb
|
1740
1739
|
- app/views/hyrax/admin/collection_types/_form_participant_table.html.erb
|
@@ -1768,6 +1767,7 @@ files:
|
|
1768
1767
|
- app/views/hyrax/base/_file_manager_thumbnail.html.erb
|
1769
1768
|
- app/views/hyrax/base/_form.html.erb
|
1770
1769
|
- app/views/hyrax/base/_form_child_work_relationships.html.erb
|
1770
|
+
- app/views/hyrax/base/_form_collections_error.html.erb
|
1771
1771
|
- app/views/hyrax/base/_form_files.html.erb
|
1772
1772
|
- app/views/hyrax/base/_form_in_works.html.erb
|
1773
1773
|
- app/views/hyrax/base/_form_in_works_error.html.erb
|
@@ -1846,11 +1846,11 @@ files:
|
|
1846
1846
|
- app/views/hyrax/contact_form/new.html.erb
|
1847
1847
|
- app/views/hyrax/contact_mailer/contact.html.erb
|
1848
1848
|
- app/views/hyrax/content_blocks/_form.html.erb
|
1849
|
-
- app/views/hyrax/content_blocks/_modal_content_block.html.erb
|
1850
1849
|
- app/views/hyrax/content_blocks/edit.html.erb
|
1851
1850
|
- app/views/hyrax/content_blocks/templates/agreement.html.erb
|
1852
1851
|
- app/views/hyrax/content_blocks/templates/terms.html.erb
|
1853
1852
|
- app/views/hyrax/dashboard/_admin_sets.html.erb
|
1853
|
+
- app/views/hyrax/dashboard/_index_partials/_current_proxy_rights.html.erb
|
1854
1854
|
- app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
|
1855
1855
|
- app/views/hyrax/dashboard/_index_partials/_transfers.html.erb
|
1856
1856
|
- app/views/hyrax/dashboard/_sidebar.html.erb
|
@@ -1862,6 +1862,7 @@ files:
|
|
1862
1862
|
- app/views/hyrax/dashboard/collections/_button_for_update_collection.html.erb
|
1863
1863
|
- app/views/hyrax/dashboard/collections/_button_remove_from_collection.html.erb
|
1864
1864
|
- app/views/hyrax/dashboard/collections/_collection_title.html.erb
|
1865
|
+
- app/views/hyrax/dashboard/collections/_default_group.html.erb
|
1865
1866
|
- app/views/hyrax/dashboard/collections/_document_list.html.erb
|
1866
1867
|
- app/views/hyrax/dashboard/collections/_edit_actions.html.erb
|
1867
1868
|
- app/views/hyrax/dashboard/collections/_flash_msg.html.erb
|
@@ -1992,6 +1993,7 @@ files:
|
|
1992
1993
|
- app/views/hyrax/my/collections/_modal_delete_admin_set_deny.html.erb
|
1993
1994
|
- app/views/hyrax/my/collections/_modal_delete_collection.html.erb
|
1994
1995
|
- app/views/hyrax/my/collections/_modal_delete_collection_deny.html.erb
|
1996
|
+
- app/views/hyrax/my/collections/_modal_delete_collections_deny.html.erb
|
1995
1997
|
- app/views/hyrax/my/collections/_modal_delete_deny.html.erb
|
1996
1998
|
- app/views/hyrax/my/collections/_modal_delete_empty_collection.html.erb
|
1997
1999
|
- app/views/hyrax/my/collections/_modal_delete_selected_collections.html.erb
|
@@ -2077,6 +2079,7 @@ files:
|
|
2077
2079
|
- app/views/shared/_citations.html.erb
|
2078
2080
|
- app/views/shared/_footer.html.erb
|
2079
2081
|
- app/views/shared/_locale_picker.html.erb
|
2082
|
+
- app/views/shared/_nav_safety_modal.html.erb
|
2080
2083
|
- app/views/shared/_select_work_type_modal.html.erb
|
2081
2084
|
- artifacts/entity-relationship-diagram.dot
|
2082
2085
|
- artifacts/entity-relationship-diagram.pdf
|
@@ -2112,6 +2115,7 @@ files:
|
|
2112
2115
|
- lib/generators/hyrax/models_generator.rb
|
2113
2116
|
- lib/generators/hyrax/riiif_generator.rb
|
2114
2117
|
- lib/generators/hyrax/sample_data_generator.rb
|
2118
|
+
- lib/generators/hyrax/templates/app/assets/images/unauthorized.png
|
2115
2119
|
- lib/generators/hyrax/templates/app/assets/images/us_404.svg
|
2116
2120
|
- lib/generators/hyrax/templates/app/models/collection.rb
|
2117
2121
|
- lib/generators/hyrax/templates/app/models/file_set.rb
|
@@ -2190,6 +2194,7 @@ files:
|
|
2190
2194
|
- lib/generators/hyrax/templates/db/migrate/20171103080032_add_collection_type_sharing_options.rb.erb
|
2191
2195
|
- lib/generators/hyrax/templates/db/migrate/20171117153051_add_unique_constraint_to_permission_template_accesses.rb.erb
|
2192
2196
|
- lib/generators/hyrax/templates/db/migrate/20180302200051_add_branding_to_collection_type.rb.erb
|
2197
|
+
- lib/generators/hyrax/templates/db/migrate/20180406202557_add_badge_color_to_collection_types.rb.erb
|
2193
2198
|
- lib/generators/hyrax/templates/db/seeds.rb
|
2194
2199
|
- lib/generators/hyrax/templates/hyrax.scss
|
2195
2200
|
- lib/generators/hyrax/templates/hyrax_helper.rb
|
@@ -2370,6 +2375,7 @@ files:
|
|
2370
2375
|
- spec/conversions/power_converters/sipity_workflow_id_spec.rb
|
2371
2376
|
- spec/conversions/power_converters/sipity_workflow_state_spec.rb
|
2372
2377
|
- spec/factories/admin_sets.rb
|
2378
|
+
- spec/factories/admin_sets_lw.rb
|
2373
2379
|
- spec/factories/api_items.rb
|
2374
2380
|
- spec/factories/collection_branding_infos.rb
|
2375
2381
|
- spec/factories/collection_type_participants.rb
|
@@ -2392,6 +2398,7 @@ files:
|
|
2392
2398
|
- spec/factories/workflow_actions.rb
|
2393
2399
|
- spec/factories/workflow_states.rb
|
2394
2400
|
- spec/factories/workflows.rb
|
2401
|
+
- spec/factory_tests/adminsets_factory_spec.rb
|
2395
2402
|
- spec/factory_tests/collections_factory_spec.rb
|
2396
2403
|
- spec/features/admin_spec.rb
|
2397
2404
|
- spec/features/batch_create_spec.rb
|
@@ -2820,12 +2827,14 @@ files:
|
|
2820
2827
|
- spec/views/hyrax/admin/admin_sets/_form_participants.html.erb_spec.rb
|
2821
2828
|
- spec/views/hyrax/admin/admin_sets/_form_visibility.html.erb_spec.rb
|
2822
2829
|
- spec/views/hyrax/admin/admin_sets/_form_workflow.html.erb_spec.rb
|
2830
|
+
- spec/views/hyrax/admin/admin_sets/_show_actions.html.erb_spec.rb
|
2823
2831
|
- spec/views/hyrax/admin/admin_sets/_show_document_list.html.erb_spec.rb
|
2824
2832
|
- spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb
|
2825
2833
|
- spec/views/hyrax/admin/admin_sets/index.html.erb_spec.rb
|
2826
2834
|
- spec/views/hyrax/admin/admin_sets/index.json.erb_spec.rb
|
2827
2835
|
- spec/views/hyrax/admin/admin_sets/show.html.erb_spec.rb
|
2828
2836
|
- spec/views/hyrax/admin/collection_types/_form.html.erb_spec.rb
|
2837
|
+
- spec/views/hyrax/admin/collection_types/_form_appearance.html.erb_spec.rb
|
2829
2838
|
- spec/views/hyrax/admin/collection_types/_form_metadata.html.erb_spec.rb
|
2830
2839
|
- spec/views/hyrax/admin/collection_types/_form_metadata_admin_set.html.erb_spec.rb
|
2831
2840
|
- spec/views/hyrax/admin/collection_types/_form_participants.html.erb_spec.rb
|
@@ -2869,12 +2878,14 @@ files:
|
|
2869
2878
|
- spec/views/hyrax/collections/_subcollection_list.html.erb_spec.rb
|
2870
2879
|
- spec/views/hyrax/collections/show.html.erb_spec.rb
|
2871
2880
|
- spec/views/hyrax/dashboard/_sidebar.html.erb_spec.rb
|
2881
|
+
- spec/views/hyrax/dashboard/collections/_default_group.html.erb_spec.rb
|
2872
2882
|
- spec/views/hyrax/dashboard/collections/_form.html.erb_spec.rb
|
2873
2883
|
- spec/views/hyrax/dashboard/collections/_form_branding.html.erb_spec.rb
|
2874
2884
|
- spec/views/hyrax/dashboard/collections/_form_discovery.erb_spec.rb
|
2875
2885
|
- spec/views/hyrax/dashboard/collections/_form_for_select_collection.html.erb_spec.rb
|
2876
2886
|
- spec/views/hyrax/dashboard/collections/_form_share.erb_spec.rb
|
2877
2887
|
- spec/views/hyrax/dashboard/collections/_form_share_table.html.erb_spec.rb
|
2888
|
+
- spec/views/hyrax/dashboard/collections/_list_collections.html.erb_spec.rb
|
2878
2889
|
- spec/views/hyrax/dashboard/collections/_show_actions.html.erb_spec.rb
|
2879
2890
|
- spec/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb_spec.rb
|
2880
2891
|
- spec/views/hyrax/dashboard/collections/_show_descriptions.html.erb_spec.rb
|
@@ -3090,6 +3101,7 @@ test_files:
|
|
3090
3101
|
- spec/conversions/power_converters/sipity_workflow_id_spec.rb
|
3091
3102
|
- spec/conversions/power_converters/sipity_workflow_state_spec.rb
|
3092
3103
|
- spec/factories/admin_sets.rb
|
3104
|
+
- spec/factories/admin_sets_lw.rb
|
3093
3105
|
- spec/factories/api_items.rb
|
3094
3106
|
- spec/factories/collection_branding_infos.rb
|
3095
3107
|
- spec/factories/collection_type_participants.rb
|
@@ -3112,6 +3124,7 @@ test_files:
|
|
3112
3124
|
- spec/factories/workflow_actions.rb
|
3113
3125
|
- spec/factories/workflow_states.rb
|
3114
3126
|
- spec/factories/workflows.rb
|
3127
|
+
- spec/factory_tests/adminsets_factory_spec.rb
|
3115
3128
|
- spec/factory_tests/collections_factory_spec.rb
|
3116
3129
|
- spec/features/admin_spec.rb
|
3117
3130
|
- spec/features/batch_create_spec.rb
|
@@ -3540,12 +3553,14 @@ test_files:
|
|
3540
3553
|
- spec/views/hyrax/admin/admin_sets/_form_participants.html.erb_spec.rb
|
3541
3554
|
- spec/views/hyrax/admin/admin_sets/_form_visibility.html.erb_spec.rb
|
3542
3555
|
- spec/views/hyrax/admin/admin_sets/_form_workflow.html.erb_spec.rb
|
3556
|
+
- spec/views/hyrax/admin/admin_sets/_show_actions.html.erb_spec.rb
|
3543
3557
|
- spec/views/hyrax/admin/admin_sets/_show_document_list.html.erb_spec.rb
|
3544
3558
|
- spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb
|
3545
3559
|
- spec/views/hyrax/admin/admin_sets/index.html.erb_spec.rb
|
3546
3560
|
- spec/views/hyrax/admin/admin_sets/index.json.erb_spec.rb
|
3547
3561
|
- spec/views/hyrax/admin/admin_sets/show.html.erb_spec.rb
|
3548
3562
|
- spec/views/hyrax/admin/collection_types/_form.html.erb_spec.rb
|
3563
|
+
- spec/views/hyrax/admin/collection_types/_form_appearance.html.erb_spec.rb
|
3549
3564
|
- spec/views/hyrax/admin/collection_types/_form_metadata.html.erb_spec.rb
|
3550
3565
|
- spec/views/hyrax/admin/collection_types/_form_metadata_admin_set.html.erb_spec.rb
|
3551
3566
|
- spec/views/hyrax/admin/collection_types/_form_participants.html.erb_spec.rb
|
@@ -3589,12 +3604,14 @@ test_files:
|
|
3589
3604
|
- spec/views/hyrax/collections/_subcollection_list.html.erb_spec.rb
|
3590
3605
|
- spec/views/hyrax/collections/show.html.erb_spec.rb
|
3591
3606
|
- spec/views/hyrax/dashboard/_sidebar.html.erb_spec.rb
|
3607
|
+
- spec/views/hyrax/dashboard/collections/_default_group.html.erb_spec.rb
|
3592
3608
|
- spec/views/hyrax/dashboard/collections/_form.html.erb_spec.rb
|
3593
3609
|
- spec/views/hyrax/dashboard/collections/_form_branding.html.erb_spec.rb
|
3594
3610
|
- spec/views/hyrax/dashboard/collections/_form_discovery.erb_spec.rb
|
3595
3611
|
- spec/views/hyrax/dashboard/collections/_form_for_select_collection.html.erb_spec.rb
|
3596
3612
|
- spec/views/hyrax/dashboard/collections/_form_share.erb_spec.rb
|
3597
3613
|
- spec/views/hyrax/dashboard/collections/_form_share_table.html.erb_spec.rb
|
3614
|
+
- spec/views/hyrax/dashboard/collections/_list_collections.html.erb_spec.rb
|
3598
3615
|
- spec/views/hyrax/dashboard/collections/_show_actions.html.erb_spec.rb
|
3599
3616
|
- spec/views/hyrax/dashboard/collections/_show_add_items_actions.html.erb_spec.rb
|
3600
3617
|
- spec/views/hyrax/dashboard/collections/_show_descriptions.html.erb_spec.rb
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<div class="modal fade" id="change-tab-content-block" tabindex="-1" role="dialog">
|
2
|
-
<div class="modal-dialog" role="document">
|
3
|
-
<div class="modal-content">
|
4
|
-
<div class="delete-collection-form">
|
5
|
-
<div class="modal-body">
|
6
|
-
<%= t(:'hyrax.content_blocks.change_tab_message') %>
|
7
|
-
</div>
|
8
|
-
<div class="modal-footer">
|
9
|
-
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t('helpers.action.cancel') %></button>
|
10
|
-
<%= link_to 'OK', hyrax.edit_content_blocks_path, class: 'btn btn-default', id: "change-tab-btn" %>
|
11
|
-
</div>
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
</div>
|