uc3-dmp-id 0.1.48 → 0.1.50

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df1e41215a66fdffdf4dffce3cd952e97996488abd9e1b3a41ee7d8aecf7be85
4
- data.tar.gz: 86644b4c270a4817d156ffbe290e3d31ff168e30802e2528a548cba9778e88b6
3
+ metadata.gz: 7e3c4a8acb59e69dd223f10dab9ce2bcf8e7fa2ad131eed5bd6f04feced6e668
4
+ data.tar.gz: f8ad221d21001a798415ecced5dff904d20c5ca2d1e7021a7ed28a49f496f57f
5
5
  SHA512:
6
- metadata.gz: 7edcf7c6e2856935e19435b490a66593967d827a49a624fb6339cbbdd5a70ecd3d538aa5360601acdad05c66f6c474d3218f7848caa2427faec806b41565d13c
7
- data.tar.gz: fb72fa2a787456b7193d98275b4e08a0afc60881073c0b2c910e851dbf6ba01600e736fd3f4bc940ee1247f325fb7a16abad006a1767739470c026d3470fcfea
6
+ metadata.gz: 84157070699350225aac0549b2e5a2879dc3ee95e33aa7e9139124f071109e8a51ea6c7789c68520a52f498dfbf5cee24475cddc5c0b6724decbee60feb38e57
7
+ data.tar.gz: 13e96259e5668dd4ecfcbeebf5b07320b555d4c55db08aae60a3204e847c974f6efcbfb9a4e29747bbc6f647c23ec73775729152b4b17ca2d79b3c491ea2f7da
@@ -204,11 +204,19 @@ module Uc3DmpId
204
204
  # The `dmphub_modifications` array will ONLY ever have things the harvester mods know about
205
205
  # so just find them and update the status accordingly
206
206
  mods = resp.dup
207
+
208
+ puts 'MODIFICATIONS RECORD'
209
+ puts mods
210
+
211
+ puts 'INCOMING RECORD'
212
+ puts json['dmphub_modifications']
213
+
214
+
207
215
  json['dmphub_modifications'].each do |entry|
208
216
  next if entry.fetch('dmproadmap_related_identifiers', []).empty?
209
217
 
210
218
  entry['dmproadmap_related_identifiers'].each do |related|
211
- related_id = mods['related_works'][related&.identifier]
219
+ related_id = mods['related_works'][related.identifier] if related.respond_to?(:identifier)
212
220
  related_id = mods['related_works'][related['identifier']] if related_id.nil?
213
221
  next if related_id.nil?
214
222
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.48'
4
+ VERSION = '0.1.50'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.48
4
+ version: 0.1.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley