bulkrax 9.3.1 → 9.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/factories/bulkrax/valkyrie_object_factory.rb +2 -2
- data/app/jobs/bulkrax/create_relationships_job.rb +1 -0
- data/app/models/bulkrax/csv_entry.rb +2 -0
- data/app/models/bulkrax/status.rb +4 -3
- data/app/views/hyrax/dashboard/sidebar/_repository_content.html.erb +22 -18
- data/lib/bulkrax/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12b212c61299bd31b4cdf78e54895a068097af7f5c5c30d50c495fa81c98583c
|
|
4
|
+
data.tar.gz: 661c7618a2192917b675c07c4313405f68c4c087eec82b3b4acb0be4418a37c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f559bbefefc1b8aed77af9853b7e9cd02fde566614990c05738dc70769ae45d340912fc945dc79eb0ff4a68783867bfda37b75a4cff087511740a0c7e7db7020
|
|
7
|
+
data.tar.gz: a9ed1877ed0aa0e36cedc66bd753126f338b8a21a4e4439ce5cdf3b45ea7c13e9e1d2fd6367796e7f63a8d22d9c088a3f97d0bac5450a2cd8d7914d09c7913e7
|
|
@@ -108,7 +108,7 @@ module Bulkrax
|
|
|
108
108
|
def self.add_child_to_parent_work(parent:, child:)
|
|
109
109
|
parent = self.find(parent.id)
|
|
110
110
|
return true if parent.member_ids.include?(child.id)
|
|
111
|
-
parent.member_ids
|
|
111
|
+
parent.member_ids += [child.id]
|
|
112
112
|
Hyrax.persister.save(resource: parent)
|
|
113
113
|
end
|
|
114
114
|
|
|
@@ -116,7 +116,7 @@ module Bulkrax
|
|
|
116
116
|
# The resource added to a collection can be either a work or another collection.
|
|
117
117
|
def self.add_resource_to_collection(collection:, resource:, user:)
|
|
118
118
|
resource = self.find(resource.id)
|
|
119
|
-
resource.member_of_collection_ids
|
|
119
|
+
resource.member_of_collection_ids += [collection.id]
|
|
120
120
|
save!(resource: resource, user: user)
|
|
121
121
|
end
|
|
122
122
|
|
|
@@ -189,6 +189,7 @@ module Bulkrax
|
|
|
189
189
|
|
|
190
190
|
# save record if members were added
|
|
191
191
|
if @parent_record_members_added
|
|
192
|
+
Bulkrax.object_factory.save!(resource: parent_record, user: user)
|
|
192
193
|
reloaded_parent = Bulkrax.object_factory.find(parent_record.id)
|
|
193
194
|
Bulkrax.object_factory.update_index(resources: [reloaded_parent])
|
|
194
195
|
Bulkrax.object_factory.publish(event: 'object.membership.updated', object: reloaded_parent, user: @user)
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
module Bulkrax
|
|
4
4
|
class Status < ApplicationRecord
|
|
5
|
-
belongs_to :statusable, polymorphic: true, denormalize: { fields: %i[status_message error_class], if: :latest? }
|
|
6
|
-
belongs_to :runnable, polymorphic: true
|
|
7
|
-
|
|
8
5
|
if Rails.version < '7.1'
|
|
6
|
+
belongs_to :statusable, polymorphic: true, denormalize: { fields: %i[status_message error_class], if: :latest? }
|
|
7
|
+
belongs_to :runnable, polymorphic: true
|
|
9
8
|
serialize :error_backtrace, Array
|
|
10
9
|
else
|
|
10
|
+
belongs_to :statusable, polymorphic: true, denormalize: { fields: %i[status_message error_class], if: :latest? }, optional: true
|
|
11
|
+
belongs_to :runnable, polymorphic: true, optional: true
|
|
11
12
|
serialize :error_backtrace, coder: YAML, type: Array
|
|
12
13
|
end
|
|
13
14
|
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
<%# Conditionally override Hyrax's partial if we can't use the sidebar insertion of the menu options %>
|
|
2
|
+
<% use_hyrax_partial = defined?(::Hyrax::DashboardController) && ::Hyrax::DashboardController.respond_to?(:sidebar_partials) %>
|
|
3
|
+
<% hyrax_partial_path = use_hyrax_partial ? Hyrax::Engine.root.join('app/views/hyrax/dashboard/sidebar/_repository_content.html.erb') : nil %>
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
<% if use_hyrax_partial && hyrax_partial_path && File.exist?(hyrax_partial_path) %>
|
|
6
|
+
<%= render inline: File.read(hyrax_partial_path), type: :erb, locals: { menu: menu } %>
|
|
7
|
+
<% else %>
|
|
8
|
+
<%# Original Bulkrax partial content below %>
|
|
9
|
+
<li class="h5 nav-item"><%= t('hyrax.admin.sidebar.repository_objects') %></li>
|
|
10
|
+
<%= menu.nav_link(hyrax.my_collections_path,
|
|
11
|
+
class: "nav-link",
|
|
12
|
+
onclick: "dontChangeAccordion(event);",
|
|
13
|
+
also_active_for: hyrax.dashboard_collections_path,
|
|
14
|
+
title: t('hyrax.admin.sidebar.collections')) do %>
|
|
15
|
+
<span class="fa fa-folder-open" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collections') %></span>
|
|
16
|
+
<% end %>
|
|
10
17
|
|
|
11
|
-
<%= menu.nav_link(hyrax.my_works_path,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<% end %>
|
|
18
|
+
<%= menu.nav_link(hyrax.my_works_path,
|
|
19
|
+
class: "nav-link",
|
|
20
|
+
onclick: "dontChangeAccordion(event);",
|
|
21
|
+
also_active_for: hyrax.dashboard_works_path,
|
|
22
|
+
title: t('hyrax.admin.sidebar.works')) do %>
|
|
23
|
+
<span class="fa fa-file" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.works') %></span>
|
|
24
|
+
<% end %>
|
|
18
25
|
|
|
19
|
-
<% if ::Hyrax::DashboardController&.respond_to?(:sidebar_partials) %>
|
|
20
|
-
<%= render 'hyrax/dashboard/sidebar/menu_partials', menu: menu, section: :repository_content %>
|
|
21
|
-
<% else %>
|
|
22
26
|
<% if current_ability.can_import_works? %>
|
|
23
27
|
<%= menu.nav_link(bulkrax.importers_path) do %>
|
|
24
28
|
<span class="fa fa-cloud-upload" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('bulkrax.admin.sidebar.importers') %></span>
|
data/lib/bulkrax/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bulkrax
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.3.
|
|
4
|
+
version: 9.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rob Kaufman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -527,7 +527,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
527
527
|
- !ruby/object:Gem::Version
|
|
528
528
|
version: '0'
|
|
529
529
|
requirements: []
|
|
530
|
-
rubygems_version: 3.
|
|
530
|
+
rubygems_version: 3.5.3
|
|
531
531
|
signing_key:
|
|
532
532
|
specification_version: 4
|
|
533
533
|
summary: Import and export tool for Hyrax and Hyku
|