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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c0311ee13737f806f60f0a21392195a5a61cb8498b0e9b30549ea1f44ce3b65
4
- data.tar.gz: 95c4fbeda9c5b4a91a86477d0eebec6c4a1ba6875d45011cabef75beffa62edd
3
+ metadata.gz: 695e328f070a7c67f18304d29b91bd6eb02b4e4b8837920251992a8d4fb9f45e
4
+ data.tar.gz: 4b56c89bdac914e542632609197eeae093cf3044bbe042022fc854099fc4a7ec
5
5
  SHA512:
6
- metadata.gz: a300583a83d97b57c6344ecc7a623ebb4ea3b758583b0a6624ec3decf2da699d2f13145ad8d6d45e4dd707b55f4f131e6b87e7ba6fa065b8035480b28abc821f
7
- data.tar.gz: 7a152569e26ff816a4605b7f1787d33114005aa8a4183fc7a29d85788587136683621766886832ef02d5040d6a69ce6dd5f6434b8afb57cbd594430d409158ca
6
+ metadata.gz: 73df59ca0477908042b4856e133722141a1c34b6e5827e32984adcbce1b5073dd1a6aa2403c77386ec4cdfaecf5c9e7199fe0fa8b5980ffe21dd3961aade44a5
7
+ data.tar.gz: e3e1b86005ae9df9c6cf6e1438964fb6f4e0df1639ecec99d6568c7ffcee92767fd076a8b78900f1af941dbe776011f0904bed4aa2713ce55e316573c95081e5
@@ -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
- annotated = Helper.annotate_dmp_json(provenance:, p_key:, json: dmp['dmp'])
94
- annotated['dmproadmap_related_identifiers'] = [] if annotated['dmproadmap_related_identifiers'].nil?
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: annotated, logger:)
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: annotated)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.41'
4
+ VERSION = '0.1.42'
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.41
4
+ version: 0.1.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley