hyrax 2.3.3 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.github/stale.yml +19 -0
- data/README.md +2 -2
- data/app/actors/hyrax/actors/apply_permission_template_actor.rb +2 -4
- data/app/actors/hyrax/actors/create_with_files_ordered_members_actor.rb +45 -0
- data/app/actors/hyrax/actors/create_with_remote_files_ordered_members_actor.rb +96 -0
- data/app/actors/hyrax/actors/file_set_ordered_members_actor.rb +16 -0
- data/app/actors/hyrax/actors/ordered_members_actor.rb +28 -0
- data/app/assets/javascripts/hyrax/collections.js +2 -0
- data/app/assets/stylesheets/hyrax/_file-listing.scss +2 -1
- data/app/assets/stylesheets/hyrax/_work-show.scss +4 -0
- data/app/controllers/concerns/hyrax/embargoes_controller_behavior.rb +1 -1
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +5 -2
- data/app/controllers/hyrax/dashboard/nest_collections_controller.rb +2 -9
- data/app/helpers/hyrax/batch_edits_helper.rb +0 -1
- data/app/helpers/hyrax/hyrax_helper_behavior.rb +1 -0
- data/app/helpers/hyrax/iiif_helper.rb +12 -0
- data/app/jobs/attach_files_to_work_with_ordered_members_job.rb +41 -0
- data/app/presenters/hyrax/work_show_presenter.rb +29 -2
- data/app/services/hyrax/permission_template_applicator.rb +48 -0
- data/app/views/hyrax/admin/collection_types/_form_settings.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
- data/app/views/hyrax/base/_form_rendering.html.erb +7 -5
- data/app/views/hyrax/base/_form_representative.html.erb +4 -2
- data/app/views/hyrax/base/_form_thumbnail.html.erb +4 -2
- data/app/views/hyrax/base/_member.html.erb +1 -1
- data/app/views/hyrax/base/_representative_media.html.erb +1 -4
- data/app/views/hyrax/base/_show_actions.html.erb +6 -4
- data/app/views/hyrax/base/iiif_viewers/_universal_viewer.html.erb +4 -0
- data/app/views/hyrax/base/show.html.erb +2 -2
- data/app/views/hyrax/dashboard/works/_default_group.html.erb +1 -1
- data/app/views/hyrax/file_sets/_file_set_title.erb +2 -2
- data/app/views/hyrax/homepage/_featured.html.erb +0 -3
- data/app/views/hyrax/my/_collection_action_menu.html.erb +1 -0
- data/app/views/hyrax/my/collections/_default_group.html.erb +1 -9
- data/app/views/hyrax/my/collections/_list_collections.html.erb +1 -1
- data/app/views/hyrax/users/_activity_log.html.erb +1 -1
- data/config/locales/hyrax.de.yml +2 -0
- data/config/locales/hyrax.en.yml +2 -0
- data/config/locales/hyrax.es.yml +2 -0
- data/config/locales/hyrax.fr.yml +2 -0
- data/config/locales/hyrax.it.yml +2 -0
- data/config/locales/hyrax.pt-BR.yml +2 -0
- data/config/locales/hyrax.zh.yml +2 -0
- data/hyrax.gemspec +1 -0
- data/lib/generators/hyrax/templates/config/initializers/hyrax.rb +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.de.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.en.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.es.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.fr.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.it.yml +1 -1
- data/lib/generators/hyrax/templates/config/locales/hyrax.zh.yml +1 -1
- data/lib/hyrax/configuration.rb +1 -1
- data/lib/hyrax/transactions.rb +23 -0
- data/lib/hyrax/transactions/container.rb +63 -0
- data/lib/hyrax/transactions/create_work.rb +47 -0
- data/lib/hyrax/transactions/steps/apply_permission_template.rb +29 -0
- data/lib/hyrax/transactions/steps/ensure_admin_set.rb +23 -0
- data/lib/hyrax/transactions/steps/ensure_permission_template.rb +27 -0
- data/lib/hyrax/transactions/steps/save_work.rb +35 -0
- data/lib/hyrax/transactions/steps/set_default_admin_set.rb +25 -0
- data/lib/hyrax/transactions/steps/set_modified_date.rb +25 -0
- data/lib/hyrax/transactions/steps/set_uploaded_date.rb +28 -0
- data/lib/hyrax/version.rb +1 -1
- data/spec/actors/hyrax/actors/create_with_files_ordered_members_actor_spec.rb +41 -0
- data/spec/actors/hyrax/actors/create_with_remote_files_ordered_members_actor_spec.rb +49 -0
- data/spec/actors/hyrax/actors/file_set_ordered_members_actor_spec.rb +35 -0
- data/spec/actors/hyrax/actors/ordered_members_actor_spec.rb +59 -0
- data/spec/controllers/hyrax/embargoes_controller_spec.rb +2 -0
- data/spec/controllers/hyrax/generic_works_controller_spec.rb +6 -1
- data/spec/factories/generic_works.rb +6 -0
- data/spec/features/collection_multi_membership_spec.rb +6 -6
- data/spec/features/work_show_spec.rb +58 -5
- data/spec/helpers/hyrax/batch_edits_helper_spec.rb +4 -2
- data/spec/helpers/hyrax/iiif_helper_spec.rb +44 -0
- data/spec/hyrax/transactions/create_work_spec.rb +155 -0
- data/spec/hyrax/transactions/steps/apply_permission_template_spec.rb +72 -0
- data/spec/hyrax/transactions/steps/ensure_admin_set_spec.rb +25 -0
- data/spec/hyrax/transactions/steps/ensure_permission_template_spec.rb +33 -0
- data/spec/hyrax/transactions/steps/save_work_spec.rb +32 -0
- data/spec/hyrax/transactions/steps/set_default_admin_set_spec.rb +38 -0
- data/spec/hyrax/transactions/steps/set_modified_date_spec.rb +22 -0
- data/spec/hyrax/transactions/steps/set_uploaded_date_spec.rb +32 -0
- data/spec/jobs/attach_files_to_work_with_ordered_members_job_spec.rb +13 -0
- data/spec/presenters/hyrax/presenter_renderer_spec.rb +4 -2
- data/spec/presenters/hyrax/work_show_presenter_spec.rb +46 -2
- data/spec/services/hyrax/permission_template_applicator_spec.rb +69 -0
- data/spec/spec_helper.rb +13 -2
- data/spec/views/catalog/index.html.erb_spec.rb +7 -4
- data/spec/views/hyrax/admin/admin_sets/_show_actions.html.erb_spec.rb +2 -0
- data/spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb +4 -1
- data/spec/views/hyrax/admin/admin_sets/index.html.erb_spec.rb +6 -2
- data/spec/views/hyrax/admin/admin_sets/index.json.erb_spec.rb +1 -2
- data/spec/views/hyrax/admin/collection_types/_form_metadata_admin_set.html.erb_spec.rb +1 -1
- data/spec/views/hyrax/admin/collection_types/_form_settings.html.erb_spec.rb +5 -26
- data/spec/views/hyrax/admin/collection_types/index.html.erb_spec.rb +26 -5
- data/spec/views/hyrax/admin/stats/show.html.erb_spec.rb +1 -0
- data/spec/views/hyrax/base/_attribute_rows.html.erb_spec.rb +5 -1
- data/spec/views/hyrax/base/_attributes.html.erb_spec.rb +1 -0
- data/spec/views/hyrax/base/_form_rendering.html.erb_spec.rb +5 -1
- data/spec/views/hyrax/base/_items.html.erb_spec.rb +2 -0
- data/spec/views/hyrax/base/_relationships.html.erb_spec.rb +2 -1
- data/spec/views/hyrax/base/_show_actions.html.erb_spec.rb +71 -0
- data/spec/views/hyrax/base/file_manager.html.erb_spec.rb +11 -14
- data/spec/views/hyrax/base/show.html.erb_spec.rb +2 -2
- data/spec/views/hyrax/base/show.json.jbuilder_spec.rb +3 -1
- data/spec/views/hyrax/collections/_show_document_list_row.html.erb_spec.rb +6 -1
- data/spec/views/hyrax/collections/_show_parent_collections.html.erb_spec.rb +5 -5
- data/spec/views/hyrax/collections/_subcollection_list.html.erb_spec.rb +1 -1
- data/spec/views/hyrax/collections/show.html.erb_spec.rb +3 -2
- data/spec/views/hyrax/dashboard/collections/_form_share.erb_spec.rb +1 -1
- data/spec/views/hyrax/dashboard/collections/_form_share_table.html.erb_spec.rb +1 -1
- data/spec/views/hyrax/dashboard/collections/_show_document_list_row.html.erb_spec.rb +6 -1
- data/spec/views/hyrax/dashboard/collections/_subcollection_list.html.erb_spec.rb +1 -1
- data/spec/views/hyrax/dashboard/collections/edit.html.erb_spec.rb +3 -1
- data/spec/views/hyrax/dashboard/profiles/show.html.erb_spec.rb +2 -3
- data/spec/views/hyrax/file_sets/_show_characterization_details.html.erb_spec.rb +1 -2
- data/spec/views/hyrax/file_sets/_single_use_links.html.erb_spec.rb +1 -2
- data/spec/views/hyrax/homepage/_sortable_featured.html.erb_spec.rb +1 -1
- data/spec/views/hyrax/my/_collection_action_menu.html.erb_spec.rb +5 -5
- data/spec/views/hyrax/my/collections/_list_collections.html.erb_spec.rb +11 -8
- data/spec/views/hyrax/users/index.html.erb_spec.rb +1 -0
- data/spec/views/hyrax/users/show.html.erb_spec.rb +3 -0
- data/template.rb +1 -1
- metadata +65 -3
- data/app/views/hyrax/dashboard/collections/_form_default_group_delt.html.erb +0 -27
@@ -1,7 +1,7 @@
|
|
1
1
|
RSpec.describe 'hyrax/dashboard/collections/_subcollection_list.html.erb', type: :view do
|
2
2
|
let(:user) { create :user }
|
3
3
|
let(:ability) { instance_double("Ability") }
|
4
|
-
let(:collection) {
|
4
|
+
let(:collection) { stub_model(Collection, id: '123') }
|
5
5
|
let(:subject) { render('subcollection_list.html.erb', id: collection.id, collection: subcollection) }
|
6
6
|
|
7
7
|
before do
|
@@ -1,10 +1,12 @@
|
|
1
1
|
RSpec.describe 'hyrax/dashboard/collections/edit.html.erb', type: :view do
|
2
|
-
let(:
|
2
|
+
let(:collection_type) { stub_model(Hyrax::CollectionType) }
|
3
|
+
let(:collection) { stub_model(Collection, id: 'xyz123z4', title: ["Make Collections Great Again"]) }
|
3
4
|
let(:form) { Hyrax::Forms::CollectionForm.new(collection, double, double) }
|
4
5
|
|
5
6
|
before do
|
6
7
|
assign(:collection, collection)
|
7
8
|
assign(:form, form)
|
9
|
+
allow(collection).to receive(:collection_type).and_return(collection_type)
|
8
10
|
stub_template '_form.html.erb' => 'my-edit-form partial'
|
9
11
|
stub_template '_flash_msg.html.erb' => 'flash_msg partial'
|
10
12
|
|
@@ -8,6 +8,8 @@ RSpec.describe 'hyrax/dashboard/profiles/show.html.erb', type: :view do
|
|
8
8
|
allow(view).to receive(:signed_in?).and_return(true)
|
9
9
|
allow(view).to receive(:current_user).and_return(user)
|
10
10
|
allow(view).to receive(:can?).and_return(true)
|
11
|
+
allow(view).to receive(:number_of_collections).and_return(3)
|
12
|
+
allow(view).to receive(:number_of_works).and_return(5)
|
11
13
|
assign(:user, user)
|
12
14
|
assign(:presenter, presenter)
|
13
15
|
end
|
@@ -21,9 +23,6 @@ RSpec.describe 'hyrax/dashboard/profiles/show.html.erb', type: :view do
|
|
21
23
|
end
|
22
24
|
|
23
25
|
before do
|
24
|
-
allow(view).to receive(:search_session).and_return({})
|
25
|
-
allow(view).to receive(:blacklight_config).and_return(CatalogController.blacklight_config)
|
26
|
-
allow(view).to receive(:current_search_session).and_return(nil)
|
27
26
|
allow(presenter).to receive(:trophies).and_return([trophy_presenter])
|
28
27
|
end
|
29
28
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
RSpec.describe 'hyrax/file_sets/_show_characterization_details.html.erb', type: :view do
|
2
|
-
let(:
|
3
|
-
let(:solr_document) { SolrDocument.new(file.to_solr) }
|
2
|
+
let(:solr_document) { SolrDocument.new({}) }
|
4
3
|
let(:ability) { double "Ability" }
|
5
4
|
let(:presenter) { Hyrax::FileSetPresenter.new(solr_document, ability) }
|
6
5
|
let(:mock_metadata) do
|
@@ -1,7 +1,6 @@
|
|
1
1
|
RSpec.describe 'hyrax/file_sets/_single_use_links.html.erb', type: :view do
|
2
2
|
let(:user) { create(:user) }
|
3
|
-
let(:
|
4
|
-
let(:solr_document) { SolrDocument.new(file_set.to_solr) }
|
3
|
+
let(:solr_document) { SolrDocument.new(id: '1234', 'has_model_ssim' => 'FileSet') }
|
5
4
|
let(:ability) { Ability.new(user) }
|
6
5
|
let(:presenter) { Hyrax::FileSetPresenter.new(solr_document, ability) }
|
7
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
RSpec.describe 'hyrax/homepage/_sortable_featured.html.erb', type: :view do
|
2
2
|
let(:form_builder) { double }
|
3
|
-
let(:work) {
|
3
|
+
let(:work) { stub_model(GenericWork, id: "99", title: ['Foo']) }
|
4
4
|
let(:featured_work) { FeaturedWork.create(work_id: "99", presenter: presenter) }
|
5
5
|
let(:presenter) { Hyrax::WorkShowPresenter.new(work, nil) }
|
6
6
|
let(:page) { rendered }
|
@@ -1,9 +1,6 @@
|
|
1
1
|
RSpec.describe 'hyrax/my/_collection_action_menu.html.erb' do
|
2
2
|
let(:id) { '123' }
|
3
|
-
let(:
|
4
|
-
let(:collection_doc) { SolrDocument.new(id: id, has_model_ssim: 'Collection', collection_type_gid_ssim: collection.collection_type_gid) }
|
5
|
-
let(:collection_type) { create(:collection_type) }
|
6
|
-
let(:user_collection_type) { create(:user_collection_type) }
|
3
|
+
let(:collection_doc) { SolrDocument.new(id: id, has_model_ssim: 'Collection') }
|
7
4
|
let(:user) { build(:user) }
|
8
5
|
let(:ability) { instance_double("Ability") }
|
9
6
|
let(:collection_presenter) { Hyrax::CollectionPresenter.new(collection_doc, ability, nil) }
|
@@ -12,7 +9,10 @@ RSpec.describe 'hyrax/my/_collection_action_menu.html.erb' do
|
|
12
9
|
allow(view).to receive(:current_user).and_return(user)
|
13
10
|
allow(view).to receive(:collection_presenter).and_return(collection_presenter)
|
14
11
|
allow(collection_presenter).to receive(:id).and_return(id)
|
15
|
-
allow(collection_presenter).to receive(:
|
12
|
+
allow(collection_presenter).to receive(:total_items).and_return(0)
|
13
|
+
allow(collection_presenter).to receive(:collection_type_is_require_membership?).and_return(false)
|
14
|
+
allow(collection_presenter).to receive(:collection_type_is_nestable?).and_return(false)
|
15
|
+
|
16
16
|
allow(view).to receive(:can?).with(:read, collection_doc).and_return(true)
|
17
17
|
allow(view).to receive(:can?).with(:edit, collection_doc).and_return(true)
|
18
18
|
end
|
@@ -23,20 +23,21 @@ RSpec.describe 'hyrax/my/collections/_list_collections.html.erb', type: :view do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
let(:doc) { SolrDocument.new(attributes) }
|
26
|
-
let(:
|
27
|
-
let(:collection_type) { create(:collection_type) }
|
26
|
+
let(:collection_type) { build(:collection_type) }
|
28
27
|
let(:collection_presenter) { Hyrax::CollectionPresenter.new(doc, Ability.new(build(:user)), nil) }
|
29
28
|
|
30
29
|
before do
|
31
|
-
allow(view).to receive(:current_user).and_return(stub_model(User))
|
32
30
|
allow(view).to receive(:can?).with(:edit, doc).and_return(true)
|
33
31
|
allow(view).to receive(:can?).with(:read, doc).and_return(true)
|
34
|
-
allow(
|
35
|
-
allow(Collection).to receive(:find).with(id).and_return(collection)
|
36
|
-
allow(collection).to receive(:id).and_return(id)
|
37
|
-
allow(collection).to receive(:member_of_collection_ids).and_return(["abc", "123"])
|
32
|
+
allow(Hyrax::CollectionType).to receive(:any_nestable?).and_return(true)
|
38
33
|
allow(collection_presenter).to receive(:collection_type_badge).and_return("User Collection")
|
39
34
|
allow(collection_presenter).to receive(:allow_batch?).and_return(true)
|
35
|
+
allow(collection_presenter).to receive(:total_viewable_items).and_return(0)
|
36
|
+
allow(collection_presenter).to receive(:total_items).and_return(0)
|
37
|
+
allow(collection_presenter).to receive(:collection_type_is_require_membership?).and_return(true)
|
38
|
+
allow(collection_presenter).to receive(:collection_type_is_nestable?).and_return(true)
|
39
|
+
allow(collection_presenter).to receive(:available_parent_collections).and_return([mock_model(Collection)])
|
40
|
+
|
40
41
|
view.lookup_context.prefixes.push 'hyrax/my'
|
41
42
|
render 'hyrax/my/collections/list_collections', collection_presenter: collection_presenter, is_admin_set: doc.admin_set?
|
42
43
|
end
|
@@ -72,7 +73,7 @@ RSpec.describe 'hyrax/my/collections/_list_collections.html.erb', type: :view do
|
|
72
73
|
|
73
74
|
let(:doc) { SolrDocument.new(attributes) }
|
74
75
|
let(:admin_set) { mock_model(AdminSet) }
|
75
|
-
let(:collection_type) {
|
76
|
+
let(:collection_type) { build(:admin_set_collection_type) }
|
76
77
|
let(:collection_presenter) { Hyrax::AdminSetPresenter.new(doc, Ability.new(build(:user)), nil) }
|
77
78
|
|
78
79
|
before do
|
@@ -81,6 +82,8 @@ RSpec.describe 'hyrax/my/collections/_list_collections.html.erb', type: :view do
|
|
81
82
|
allow(doc).to receive(:to_model).and_return(stub_model(AdminSet, id: id))
|
82
83
|
allow(collection_presenter).to receive(:collection_type_badge).and_return("Admin Set")
|
83
84
|
allow(collection_presenter).to receive(:allow_batch?).and_return(true)
|
85
|
+
allow(collection_presenter).to receive(:total_viewable_items).and_return(0)
|
86
|
+
allow(collection_presenter).to receive(:total_items).and_return(0)
|
84
87
|
view.lookup_context.prefixes.push 'hyrax/my'
|
85
88
|
|
86
89
|
render 'hyrax/my/collections/list_collections', collection_presenter: collection_presenter, is_admin_set: doc.admin_set?
|
@@ -9,6 +9,7 @@ RSpec.describe 'hyrax/users/index.html.erb', type: :view do
|
|
9
9
|
allow(relation).to receive(:limit_value).and_return(10)
|
10
10
|
allow(relation).to receive(:current_page).and_return(1)
|
11
11
|
allow(relation).to receive(:total_pages).and_return(3)
|
12
|
+
allow(view).to receive(:number_of_works).and_return(0)
|
12
13
|
assign(:users, relation)
|
13
14
|
end
|
14
15
|
|
@@ -9,6 +9,9 @@ RSpec.describe 'hyrax/users/show.html.erb', type: :view do
|
|
9
9
|
allow(view).to receive(:signed_in?).and_return(true)
|
10
10
|
allow(view).to receive(:current_user).and_return(current_user)
|
11
11
|
allow(view).to receive(:can?).and_return(true)
|
12
|
+
allow(view).to receive(:number_of_collections).and_return(0)
|
13
|
+
allow(view).to receive(:number_of_works).and_return(0)
|
14
|
+
allow(presenter).to receive(:trophies).and_return([])
|
12
15
|
assign(:user, user)
|
13
16
|
assign(:presenter, presenter)
|
14
17
|
end
|
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.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2018-
|
17
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|
@@ -190,6 +190,20 @@ dependencies:
|
|
190
190
|
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '0.1'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: dry-transaction
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0.11'
|
200
|
+
type: :runtime
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0.11'
|
193
207
|
- !ruby/object:Gem::Dependency
|
194
208
|
name: dry-validation
|
195
209
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1079,6 +1093,7 @@ files:
|
|
1079
1093
|
- ".github/ISSUE_TEMPLATE.md"
|
1080
1094
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
1081
1095
|
- ".github/SUPPORT.md"
|
1096
|
+
- ".github/stale.yml"
|
1082
1097
|
- ".gitignore"
|
1083
1098
|
- ".hound.yml"
|
1084
1099
|
- ".rspec"
|
@@ -1101,18 +1116,22 @@ files:
|
|
1101
1116
|
- app/actors/hyrax/actors/cleanup_trophies_actor.rb
|
1102
1117
|
- app/actors/hyrax/actors/collections_membership_actor.rb
|
1103
1118
|
- app/actors/hyrax/actors/create_with_files_actor.rb
|
1119
|
+
- app/actors/hyrax/actors/create_with_files_ordered_members_actor.rb
|
1104
1120
|
- app/actors/hyrax/actors/create_with_remote_files_actor.rb
|
1121
|
+
- app/actors/hyrax/actors/create_with_remote_files_ordered_members_actor.rb
|
1105
1122
|
- app/actors/hyrax/actors/default_admin_set_actor.rb
|
1106
1123
|
- app/actors/hyrax/actors/embargo_actor.rb
|
1107
1124
|
- app/actors/hyrax/actors/environment.rb
|
1108
1125
|
- app/actors/hyrax/actors/featured_work_actor.rb
|
1109
1126
|
- app/actors/hyrax/actors/file_actor.rb
|
1110
1127
|
- app/actors/hyrax/actors/file_set_actor.rb
|
1128
|
+
- app/actors/hyrax/actors/file_set_ordered_members_actor.rb
|
1111
1129
|
- app/actors/hyrax/actors/initialize_workflow_actor.rb
|
1112
1130
|
- app/actors/hyrax/actors/interpret_visibility_actor.rb
|
1113
1131
|
- app/actors/hyrax/actors/lease_actor.rb
|
1114
1132
|
- app/actors/hyrax/actors/model_actor.rb
|
1115
1133
|
- app/actors/hyrax/actors/optimistic_lock_validator.rb
|
1134
|
+
- app/actors/hyrax/actors/ordered_members_actor.rb
|
1116
1135
|
- app/actors/hyrax/actors/terminator.rb
|
1117
1136
|
- app/actors/hyrax/actors/transactional_request.rb
|
1118
1137
|
- app/actors/hyrax/actors/transfer_request_actor.rb
|
@@ -1381,6 +1400,7 @@ files:
|
|
1381
1400
|
- app/helpers/hyrax/embargo_helper.rb
|
1382
1401
|
- app/helpers/hyrax/file_set_helper.rb
|
1383
1402
|
- app/helpers/hyrax/hyrax_helper_behavior.rb
|
1403
|
+
- app/helpers/hyrax/iiif_helper.rb
|
1384
1404
|
- app/helpers/hyrax/lease_helper.rb
|
1385
1405
|
- app/helpers/hyrax/permissions_helper.rb
|
1386
1406
|
- app/helpers/hyrax/title_helper.rb
|
@@ -1401,6 +1421,7 @@ files:
|
|
1401
1421
|
- app/inputs/multi_value_select_input.rb
|
1402
1422
|
- app/inputs/multifile_input.rb
|
1403
1423
|
- app/jobs/attach_files_to_work_job.rb
|
1424
|
+
- app/jobs/attach_files_to_work_with_ordered_members_job.rb
|
1404
1425
|
- app/jobs/batch_create_job.rb
|
1405
1426
|
- app/jobs/characterize_job.rb
|
1406
1427
|
- app/jobs/content_delete_event_job.rb
|
@@ -1672,6 +1693,7 @@ files:
|
|
1672
1693
|
- app/services/hyrax/microdata.rb
|
1673
1694
|
- app/services/hyrax/multiple_membership_checker.rb
|
1674
1695
|
- app/services/hyrax/noid.rb
|
1696
|
+
- app/services/hyrax/permission_template_applicator.rb
|
1675
1697
|
- app/services/hyrax/persist_derivatives.rb
|
1676
1698
|
- app/services/hyrax/persist_directly_contained_output_file_service.rb
|
1677
1699
|
- app/services/hyrax/qa_select_service.rb
|
@@ -1844,6 +1866,7 @@ files:
|
|
1844
1866
|
- app/views/hyrax/base/_workflow_actions_widget.erb
|
1845
1867
|
- app/views/hyrax/base/edit.html.erb
|
1846
1868
|
- app/views/hyrax/base/file_manager.html.erb
|
1869
|
+
- app/views/hyrax/base/iiif_viewers/_universal_viewer.html.erb
|
1847
1870
|
- app/views/hyrax/base/inspect_work.html.erb
|
1848
1871
|
- app/views/hyrax/base/new.html.erb
|
1849
1872
|
- app/views/hyrax/base/show.html.erb
|
@@ -1908,7 +1931,6 @@ files:
|
|
1908
1931
|
- app/views/hyrax/dashboard/collections/_flash_msg.html.erb
|
1909
1932
|
- app/views/hyrax/dashboard/collections/_form.html.erb
|
1910
1933
|
- app/views/hyrax/dashboard/collections/_form_branding.html.erb
|
1911
|
-
- app/views/hyrax/dashboard/collections/_form_default_group_delt.html.erb
|
1912
1934
|
- app/views/hyrax/dashboard/collections/_form_discovery.html.erb
|
1913
1935
|
- app/views/hyrax/dashboard/collections/_form_for_select_collection.html.erb
|
1914
1936
|
- app/views/hyrax/dashboard/collections/_form_share.html.erb
|
@@ -2296,6 +2318,16 @@ files:
|
|
2296
2318
|
- lib/hyrax/specs/shared_specs.rb
|
2297
2319
|
- lib/hyrax/specs/shared_specs/derivative_service.rb
|
2298
2320
|
- lib/hyrax/specs/shared_specs/workflow_method.rb
|
2321
|
+
- lib/hyrax/transactions.rb
|
2322
|
+
- lib/hyrax/transactions/container.rb
|
2323
|
+
- lib/hyrax/transactions/create_work.rb
|
2324
|
+
- lib/hyrax/transactions/steps/apply_permission_template.rb
|
2325
|
+
- lib/hyrax/transactions/steps/ensure_admin_set.rb
|
2326
|
+
- lib/hyrax/transactions/steps/ensure_permission_template.rb
|
2327
|
+
- lib/hyrax/transactions/steps/save_work.rb
|
2328
|
+
- lib/hyrax/transactions/steps/set_default_admin_set.rb
|
2329
|
+
- lib/hyrax/transactions/steps/set_modified_date.rb
|
2330
|
+
- lib/hyrax/transactions/steps/set_uploaded_date.rb
|
2299
2331
|
- lib/hyrax/version.rb
|
2300
2332
|
- lib/hyrax/zotero.rb
|
2301
2333
|
- lib/hyrax/zotero/config.rb
|
@@ -2329,18 +2361,22 @@ files:
|
|
2329
2361
|
- spec/actors/hyrax/actors/cleanup_trophies_actor_spec.rb
|
2330
2362
|
- spec/actors/hyrax/actors/collections_membership_actor_spec.rb
|
2331
2363
|
- spec/actors/hyrax/actors/create_with_files_actor_spec.rb
|
2364
|
+
- spec/actors/hyrax/actors/create_with_files_ordered_members_actor_spec.rb
|
2332
2365
|
- spec/actors/hyrax/actors/create_with_remote_files_actor_spec.rb
|
2366
|
+
- spec/actors/hyrax/actors/create_with_remote_files_ordered_members_actor_spec.rb
|
2333
2367
|
- spec/actors/hyrax/actors/default_admin_set_actor_spec.rb
|
2334
2368
|
- spec/actors/hyrax/actors/embargo_actor_spec.rb
|
2335
2369
|
- spec/actors/hyrax/actors/featured_work_actor_spec.rb
|
2336
2370
|
- spec/actors/hyrax/actors/file_actor_spec.rb
|
2337
2371
|
- spec/actors/hyrax/actors/file_set_actor_spec.rb
|
2372
|
+
- spec/actors/hyrax/actors/file_set_ordered_members_actor_spec.rb
|
2338
2373
|
- spec/actors/hyrax/actors/generic_work_actor_spec.rb
|
2339
2374
|
- spec/actors/hyrax/actors/initialize_workflow_actor_spec.rb
|
2340
2375
|
- spec/actors/hyrax/actors/interpret_visibility_actor_spec.rb
|
2341
2376
|
- spec/actors/hyrax/actors/lease_actor_spec.rb
|
2342
2377
|
- spec/actors/hyrax/actors/model_actor_spec.rb
|
2343
2378
|
- spec/actors/hyrax/actors/optimistic_lock_validator_spec.rb
|
2379
|
+
- spec/actors/hyrax/actors/ordered_members_actor_spec.rb
|
2344
2380
|
- spec/actors/hyrax/actors/transactional_request_spec.rb
|
2345
2381
|
- spec/actors/hyrax/actors/transfer_request_actor_spec.rb
|
2346
2382
|
- spec/authorities/qa/authorities/collections_spec.rb
|
@@ -2529,8 +2565,17 @@ files:
|
|
2529
2565
|
- spec/helpers/hyrax/content_block_helper_spec.rb
|
2530
2566
|
- spec/helpers/hyrax/dashboard_helper_behavior_spec.rb
|
2531
2567
|
- spec/helpers/hyrax/file_set_helper_spec.rb
|
2568
|
+
- spec/helpers/hyrax/iiif_helper_spec.rb
|
2532
2569
|
- spec/helpers/hyrax/trophy_helper_spec.rb
|
2533
2570
|
- spec/helpers/hyrax_helper_spec.rb
|
2571
|
+
- spec/hyrax/transactions/create_work_spec.rb
|
2572
|
+
- spec/hyrax/transactions/steps/apply_permission_template_spec.rb
|
2573
|
+
- spec/hyrax/transactions/steps/ensure_admin_set_spec.rb
|
2574
|
+
- spec/hyrax/transactions/steps/ensure_permission_template_spec.rb
|
2575
|
+
- spec/hyrax/transactions/steps/save_work_spec.rb
|
2576
|
+
- spec/hyrax/transactions/steps/set_default_admin_set_spec.rb
|
2577
|
+
- spec/hyrax/transactions/steps/set_modified_date_spec.rb
|
2578
|
+
- spec/hyrax/transactions/steps/set_uploaded_date_spec.rb
|
2534
2579
|
- spec/indexers/hyrax/collection_indexer_spec.rb
|
2535
2580
|
- spec/indexers/hyrax/file_set_indexer_spec.rb
|
2536
2581
|
- spec/indexers/hyrax/generic_work_indexer_spec.rb
|
@@ -2569,6 +2614,7 @@ files:
|
|
2569
2614
|
- spec/javascripts/uploaded_files_spec.js
|
2570
2615
|
- spec/javascripts/visibility_component_spec.js
|
2571
2616
|
- spec/jobs/attach_files_to_work_job_spec.rb
|
2617
|
+
- spec/jobs/attach_files_to_work_with_ordered_members_job_spec.rb
|
2572
2618
|
- spec/jobs/batch_create_job_spec.rb
|
2573
2619
|
- spec/jobs/characterize_job_spec.rb
|
2574
2620
|
- spec/jobs/content_delete_event_job_spec.rb
|
@@ -2790,6 +2836,7 @@ files:
|
|
2790
2836
|
- spec/services/hyrax/microdata_spec.rb
|
2791
2837
|
- spec/services/hyrax/multiple_membership_checker_spec.rb
|
2792
2838
|
- spec/services/hyrax/noid_spec.rb
|
2839
|
+
- spec/services/hyrax/permission_template_applicator_spec.rb
|
2793
2840
|
- spec/services/hyrax/persist_derivatives_spec.rb
|
2794
2841
|
- spec/services/hyrax/persist_directly_contained_output_file_service_spec.rb
|
2795
2842
|
- spec/services/hyrax/qa_select_service_spec.rb
|
@@ -3061,18 +3108,22 @@ test_files:
|
|
3061
3108
|
- spec/actors/hyrax/actors/cleanup_trophies_actor_spec.rb
|
3062
3109
|
- spec/actors/hyrax/actors/collections_membership_actor_spec.rb
|
3063
3110
|
- spec/actors/hyrax/actors/create_with_files_actor_spec.rb
|
3111
|
+
- spec/actors/hyrax/actors/create_with_files_ordered_members_actor_spec.rb
|
3064
3112
|
- spec/actors/hyrax/actors/create_with_remote_files_actor_spec.rb
|
3113
|
+
- spec/actors/hyrax/actors/create_with_remote_files_ordered_members_actor_spec.rb
|
3065
3114
|
- spec/actors/hyrax/actors/default_admin_set_actor_spec.rb
|
3066
3115
|
- spec/actors/hyrax/actors/embargo_actor_spec.rb
|
3067
3116
|
- spec/actors/hyrax/actors/featured_work_actor_spec.rb
|
3068
3117
|
- spec/actors/hyrax/actors/file_actor_spec.rb
|
3069
3118
|
- spec/actors/hyrax/actors/file_set_actor_spec.rb
|
3119
|
+
- spec/actors/hyrax/actors/file_set_ordered_members_actor_spec.rb
|
3070
3120
|
- spec/actors/hyrax/actors/generic_work_actor_spec.rb
|
3071
3121
|
- spec/actors/hyrax/actors/initialize_workflow_actor_spec.rb
|
3072
3122
|
- spec/actors/hyrax/actors/interpret_visibility_actor_spec.rb
|
3073
3123
|
- spec/actors/hyrax/actors/lease_actor_spec.rb
|
3074
3124
|
- spec/actors/hyrax/actors/model_actor_spec.rb
|
3075
3125
|
- spec/actors/hyrax/actors/optimistic_lock_validator_spec.rb
|
3126
|
+
- spec/actors/hyrax/actors/ordered_members_actor_spec.rb
|
3076
3127
|
- spec/actors/hyrax/actors/transactional_request_spec.rb
|
3077
3128
|
- spec/actors/hyrax/actors/transfer_request_actor_spec.rb
|
3078
3129
|
- spec/authorities/qa/authorities/collections_spec.rb
|
@@ -3261,8 +3312,17 @@ test_files:
|
|
3261
3312
|
- spec/helpers/hyrax/content_block_helper_spec.rb
|
3262
3313
|
- spec/helpers/hyrax/dashboard_helper_behavior_spec.rb
|
3263
3314
|
- spec/helpers/hyrax/file_set_helper_spec.rb
|
3315
|
+
- spec/helpers/hyrax/iiif_helper_spec.rb
|
3264
3316
|
- spec/helpers/hyrax/trophy_helper_spec.rb
|
3265
3317
|
- spec/helpers/hyrax_helper_spec.rb
|
3318
|
+
- spec/hyrax/transactions/create_work_spec.rb
|
3319
|
+
- spec/hyrax/transactions/steps/apply_permission_template_spec.rb
|
3320
|
+
- spec/hyrax/transactions/steps/ensure_admin_set_spec.rb
|
3321
|
+
- spec/hyrax/transactions/steps/ensure_permission_template_spec.rb
|
3322
|
+
- spec/hyrax/transactions/steps/save_work_spec.rb
|
3323
|
+
- spec/hyrax/transactions/steps/set_default_admin_set_spec.rb
|
3324
|
+
- spec/hyrax/transactions/steps/set_modified_date_spec.rb
|
3325
|
+
- spec/hyrax/transactions/steps/set_uploaded_date_spec.rb
|
3266
3326
|
- spec/indexers/hyrax/collection_indexer_spec.rb
|
3267
3327
|
- spec/indexers/hyrax/file_set_indexer_spec.rb
|
3268
3328
|
- spec/indexers/hyrax/generic_work_indexer_spec.rb
|
@@ -3301,6 +3361,7 @@ test_files:
|
|
3301
3361
|
- spec/javascripts/uploaded_files_spec.js
|
3302
3362
|
- spec/javascripts/visibility_component_spec.js
|
3303
3363
|
- spec/jobs/attach_files_to_work_job_spec.rb
|
3364
|
+
- spec/jobs/attach_files_to_work_with_ordered_members_job_spec.rb
|
3304
3365
|
- spec/jobs/batch_create_job_spec.rb
|
3305
3366
|
- spec/jobs/characterize_job_spec.rb
|
3306
3367
|
- spec/jobs/content_delete_event_job_spec.rb
|
@@ -3522,6 +3583,7 @@ test_files:
|
|
3522
3583
|
- spec/services/hyrax/microdata_spec.rb
|
3523
3584
|
- spec/services/hyrax/multiple_membership_checker_spec.rb
|
3524
3585
|
- spec/services/hyrax/noid_spec.rb
|
3586
|
+
- spec/services/hyrax/permission_template_applicator_spec.rb
|
3525
3587
|
- spec/services/hyrax/persist_derivatives_spec.rb
|
3526
3588
|
- spec/services/hyrax/persist_directly_contained_output_file_service_spec.rb
|
3527
3589
|
- spec/services/hyrax/qa_select_service_spec.rb
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<%# This was renamed from _default_group to prevent if from being used for All Collection index which needs to use my/collections/_default_group %>
|
2
|
-
<%# TODO: This partial is obsolete and has been renamed for now. Needs cleanup of this and other referenced unneeded items. %>
|
3
|
-
|
4
|
-
<table class="table table-striped">
|
5
|
-
<caption class="sr-only"><%= t("hyrax.dashboard.my.sr.listing") %> <%= application_name %></caption>
|
6
|
-
<thead>
|
7
|
-
<tr>
|
8
|
-
<th class="check-all"><label for="check_all" class="sr-only"><%= t("hyrax.dashboard.my.sr.check_all_label") %></label><%= render_check_all %></th>
|
9
|
-
<th><%= t("hyrax.dashboard.my.heading.title") %></th>
|
10
|
-
<th class="sorts-dash"><i id="<%= CatalogController.uploaded_field %>" class="<%= params[:sort] == "#{CatalogController.uploaded_field} desc" ? 'caret' : params[:sort] == "#{CatalogController.uploaded_field} asc" ? 'caret up' : '' %>"></i><%= t("hyrax.dashboard.my.heading.date_uploaded") %></th>
|
11
|
-
<th><%= t("hyrax.dashboard.my.heading.visibility") %></th>
|
12
|
-
<th><%= t("hyrax.dashboard.my.heading.action") %></th>
|
13
|
-
</tr>
|
14
|
-
</thead>
|
15
|
-
<tbody>
|
16
|
-
<% docs.each_with_index do |document, counter| %>
|
17
|
-
<% # Collection members may be collections or works %>
|
18
|
-
<% if document.collection? %>
|
19
|
-
<%= render 'list_collections', document: document, counter: counter %>
|
20
|
-
<% else %>
|
21
|
-
<%= render 'list_works', document: document, counter: counter, presenter: Hyrax::WorkShowPresenter.new(document, current_ability) %>
|
22
|
-
<% end %>
|
23
|
-
<% end %>
|
24
|
-
</tbody>
|
25
|
-
</table>
|
26
|
-
<%= render 'modal_delete_collection_deny' %>
|
27
|
-
<%= render 'modal_edit_deny' %>
|