Skip to content

Commit 59a8003

Browse files
committed
Tweak delta idea description.
1 parent 4e93bbf commit 59a8003

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

jupiter_output_scripts/jupiter_delta.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ def perform()
1313
CSV.open(@output_file, 'wb') do |csv|
1414
csv << ['type', 'id', 'changed at', 'event', 'delta']
1515
PaperTrail::Version.where(created_at: @date..).find_each do |row|
16-
# change delta for Item & Thesis type converting end result
17-
# to DSpace/Scholaris key/value by extending the linked method
18-
# test if the key exsists in the object_changes and creating a new
19-
# structure in a new column listing the Scholaris key/value pairs to update
16+
# How to communicate key/value mapping differences from Jupiter to DSpace?
17+
# First part, add documentation describing how to use the output
18+
# Second part, add a new column that lists the new Scholaris key plus the newly transformed value 9if applicable)
19+
# Psuedocode: take the change delta for Item & Thesis type converting end result
20+
# to DSpace/Scholaris key/value by extending this method and class:
2021
# https://gist.github.com/lagoan/839cf8ce997fa17b529d84776b91cdac#file-export_collections_csv-rb-L181-L196
22+
# I.e., test if the key exists in the object_changes and creating a new
23+
# structure in a new column listing the Scholaris key/value pairs to update
2124
csv << [row.item_type, row.item_id, row.created_at, row.event, row.object_changes]
2225
end
2326
end

0 commit comments

Comments
 (0)