uc3-dmp-id 0.1.18 → 0.1.19

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: c1307ce8ca80ee4f57ab605dc5804d2318593c8042b9f59ac9b4907bf370a87b
4
- data.tar.gz: 00e3ae0ff4a083240274a413c14234e6287f223fa7d936bcc36ad6087a890872
3
+ metadata.gz: 0375f36323f6e846bd14ad18a345a0ef42cc29ad9255e26c926f4d18c0960515
4
+ data.tar.gz: b9f5cf963f505420438731225b2663bf4d85dae6683386104d8466808588a804
5
5
  SHA512:
6
- metadata.gz: 958040bdec6799e3b02e02caf399c0135d546fc8c5e8535129bf641970076e1c6524f4bf0c525ff830ec7efe9db905b8abee76db168b6115c4d8f65b9d221ca0
7
- data.tar.gz: 97091e9049ac3e8dccd069b69d35504a41f1bc24d6295b99054587336bcfc327fe5d9c15a38852f86352fc14edc311169ba026a185395c6af8d1866c884c255b
6
+ metadata.gz: 783bb2a9de8175a6c4cd57c879e6dc8a1ae0070e6e25bc344e3fbebb5791ca1cdb25718031c91d078fcba5a94f7e058cf84d4394e3bab0877d7b402a8109a95f
7
+ data.tar.gz: b75ab3c52824b16fd8bd2452272b0defd5a2663e2a62980eb405e5f323089f26ac7e65f4aee2eae2cefacf3fb209e85ff00a391e4a32623e6abfd9ce70d48acb
@@ -95,7 +95,9 @@ module Uc3DmpId
95
95
  }
96
96
  work_type = work.fetch('type', 'Text')&.downcase&.strip
97
97
  ret[:work_type] = work_type == 'text' ? type : work_type
98
- ret[:citation] = work['citation'] unless work['citation'].nil?
98
+ citation_in = work.fetch('dmproadmap_related_identifier', {})['citation']
99
+ ret[:citation] = citation_in unless citation_in.nil?
100
+
99
101
  @logger&.debug(message: "Assessing Work: #{work['id']} (pre citation)", details: ret)
100
102
  return JSON.parse(ret.to_json) unless ret[:citation].nil? && !work['bibtex'].nil?
101
103
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.18'
4
+ VERSION = '0.1.19'
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley