uc3-dmp-id 0.0.58 → 0.0.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-id/updater.rb +6 -6
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc2cccff208ffef601a91dc92d6cd2e3ed5b517fd47e09254ff7fea2572ea928
|
4
|
+
data.tar.gz: 32ed9cdab64dcc03154eacb748ad3fe9bde7ee61d4080874092381c3ffc59c09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c65520e657194a50a53c6fa88d5e5e43ae471c8d7ac5a56b5da1d3b16bbf0932b90eb42f01674141afbd3577ac071e02c77e8accb7d0e3c3eb150e8344a8bca7
|
7
|
+
data.tar.gz: 5ab9a028be14f33f10031ef3530d78e2f9d09fb496c9a8225f664fa307de50b8a3fb2fbb1615bc4e0226a3197273a440b3aa00bdf955e25b92dc117716cc905f
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -53,16 +53,16 @@ module Uc3DmpId
|
|
53
53
|
raise UpdaterError, errs if errs.is_a?(Array) && errs.any?
|
54
54
|
|
55
55
|
# Add the DMPHub specific attributes
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
56
|
+
dmp['dmp']['dmproadmap_related_identifiers'] = [] if dmp['dmp']['dmproadmap_related_identifiers'].nil?
|
57
|
+
dmp['dmp']['dmproadmap_related_identifiers'] << {
|
58
|
+
descriptor: 'is_metadata_for', work_type: 'output_management_plan', type: 'url', identifier: url
|
59
|
+
}
|
60
60
|
|
61
61
|
puts "Attached:"
|
62
|
-
puts
|
62
|
+
puts dmp
|
63
63
|
|
64
64
|
# Save the changes as the new latest version
|
65
|
-
resp = client.put_item(json:
|
65
|
+
resp = client.put_item(json: dmp['dmp'], debug: debug)
|
66
66
|
raise UpdaterError, MSG_DMP_UNABLE_TO_VERSION if resp.nil?
|
67
67
|
|
68
68
|
true
|
data/lib/uc3-dmp-id/version.rb
CHANGED