uc3-dmp-id 0.1.41 → 0.1.42
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 +4 -5
- 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: 695e328f070a7c67f18304d29b91bd6eb02b4e4b8837920251992a8d4fb9f45e
|
4
|
+
data.tar.gz: 4b56c89bdac914e542632609197eeae093cf3044bbe042022fc854099fc4a7ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73df59ca0477908042b4856e133722141a1c34b6e5827e32984adcbce1b5073dd1a6aa2403c77386ec4cdfaecf5c9e7199fe0fa8b5980ffe21dd3961aade44a5
|
7
|
+
data.tar.gz: e3e1b86005ae9df9c6cf6e1438964fb6f4e0df1639ecec99d6568c7ffcee92767fd076a8b78900f1af941dbe776011f0904bed4aa2713ce55e316573c95081e5
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -90,17 +90,16 @@ module Uc3DmpId
|
|
90
90
|
logger&.debug(message: "DMP Prior to narrative attachment", details: dmp)
|
91
91
|
|
92
92
|
# Add the download URl for the PDF as a related identifier on the DMP ID record
|
93
|
-
|
94
|
-
|
95
|
-
annotated['dmproadmap_related_identifiers'] << JSON.parse({
|
93
|
+
dmp['dmproadmap_related_identifiers'] = [] if dmp['dmproadmap_related_identifiers'].nil?
|
94
|
+
dmp['dmproadmap_related_identifiers'] << JSON.parse({
|
96
95
|
descriptor: 'is_metadata_for', work_type: 'output_management_plan', type: 'url', identifier: url
|
97
96
|
}.to_json)
|
98
97
|
|
99
98
|
# Save the changes without creating a new version!
|
100
|
-
resp = client.put_item(json:
|
99
|
+
resp = client.put_item(json: dmp, logger:)
|
101
100
|
raise UpdaterError, Helper::MSG_DMP_UNABLE_TO_VERSION if resp.nil?
|
102
101
|
|
103
|
-
logger&.debug(message: "Added DMP ID narrative for PK: #{p_key}, Narrative: #{url}", details:
|
102
|
+
logger&.debug(message: "Added DMP ID narrative for PK: #{p_key}, Narrative: #{url}", details: dmp)
|
104
103
|
true
|
105
104
|
end
|
106
105
|
# rubocop:enable Metrics/AbcSize
|
data/lib/uc3-dmp-id/version.rb
CHANGED