uc3-dmp-id 0.1.45 → 0.1.47
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 +2 -2
- 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: e2548c97edb7b838e0e0c04c681d85525884793a77db4af25de598726e1e70cb
|
4
|
+
data.tar.gz: 24534c9225ab84215d101717a604e76124dc1857c7243cd5dd5535b96ff7fc96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f34251ee1a1f47796edb4e1beb9d3c9379bbc4f8eaa893b14ad5074451554d892261c54fb71c461558197b5ed546e47c87704bfe32a590fe9dfa7b32a203002c
|
7
|
+
data.tar.gz: b4922c487d5a20fbceed64de0b63b6bbbab66fca7862edab9bf7130b8bf159d1b89145cba3f5ad9bcdc02ac0c335eb057dde3f0ac4544d4e39e9fed53c7ceacd
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -92,7 +92,7 @@ module Uc3DmpId
|
|
92
92
|
dmp = resp['dmp'].nil? ? resp : resp['dmp']
|
93
93
|
logger.info(message: 'Existing latest record', details: dmp) if logger.respond_to?(:debug)
|
94
94
|
raise UpdaterError, Helper::MSG_DMP_FORBIDDEN unless provenance.is_a?(Hash) && !provenance['PK'].nil? &&
|
95
|
-
provenance['PK'] == dmp['
|
95
|
+
provenance['PK'] == dmp['dmphub_provenance_id']
|
96
96
|
|
97
97
|
logger&.debug(message: "DMP Prior to narrative attachment", details: dmp)
|
98
98
|
|
@@ -138,7 +138,7 @@ module Uc3DmpId
|
|
138
138
|
logger.debug(message: 'Modifications before merge.', details: mods) if logger.respond_to?(:debug)
|
139
139
|
keys_to_retain = version.keys.select do |key|
|
140
140
|
(key.start_with?('dmphub_') && !%w[dmphub_modifications dmphub_versions].include?(key)) ||
|
141
|
-
key.start_with?('PK') || key.start_with?('SK')
|
141
|
+
key.start_with?('PK') || key.start_with?('SK') || key.start_with?('dmproadmap_related_identifiers')
|
142
142
|
end
|
143
143
|
keys_to_retain.each do |key|
|
144
144
|
mods[key] = version[key]
|
data/lib/uc3-dmp-id/version.rb
CHANGED