uc3-dmp-id 0.1.46 → 0.1.48
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 +5 -3
- data/lib/uc3-dmp-id/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: df1e41215a66fdffdf4dffce3cd952e97996488abd9e1b3a41ee7d8aecf7be85
|
4
|
+
data.tar.gz: 86644b4c270a4817d156ffbe290e3d31ff168e30802e2528a548cba9778e88b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7edcf7c6e2856935e19435b490a66593967d827a49a624fb6339cbbdd5a70ecd3d538aa5360601acdad05c66f6c474d3218f7848caa2427faec806b41565d13c
|
7
|
+
data.tar.gz: fb72fa2a787456b7193d98275b4e08a0afc60881073c0b2c910e851dbf6ba01600e736fd3f4bc940ee1247f325fb7a16abad006a1767739470c026d3470fcfea
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -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]
|
@@ -208,9 +208,11 @@ module Uc3DmpId
|
|
208
208
|
next if entry.fetch('dmproadmap_related_identifiers', []).empty?
|
209
209
|
|
210
210
|
entry['dmproadmap_related_identifiers'].each do |related|
|
211
|
-
|
211
|
+
related_id = mods['related_works'][related&.identifier]
|
212
|
+
related_id = mods['related_works'][related['identifier']] if related_id.nil?
|
213
|
+
next if related_id.nil?
|
212
214
|
|
213
|
-
mods['related_works'][
|
215
|
+
mods['related_works'][related_id]['status'] = related['status']
|
214
216
|
end
|
215
217
|
end
|
216
218
|
|
data/lib/uc3-dmp-id/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uc3-dmp-id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
|
-
rubygems_version: 3.
|
153
|
+
rubygems_version: 3.5.13
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: DMPTool gem that provides support for DMP ID records
|