uc3-dmp-id 0.1.14 → 0.1.16

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: 7ae3b97965d06d3157328d0c23441eb32b63013b52d78f631cb8bd5a9459eebd
4
- data.tar.gz: 4d731209d7649e2ed868d00cb7f69b061545edd75f36b73e7e0356aadae34a41
3
+ metadata.gz: 645e3c7bb9339eb12533c0fab00686046b0176c3fa71475e2a19435fd7563b19
4
+ data.tar.gz: 82b3bfc2d60dae7f154f8fc09f8d5ea5fcf3132ab3049bae6ba817e31922a9d3
5
5
  SHA512:
6
- metadata.gz: 236e174f59feb0b53bf812c7baf81eaa505e041e01fc9e5b5a689f402b746c9b53652aff506742a1210b9265e5341119d1e52d816e2fce99fac58e59132cf427
7
- data.tar.gz: 3daabef6a600a9b490100b6a09db742c7e44e28368a9e936914371b34d25c8f2df996fbe3a19577cb64973c8f5a38a4c2d784563ceed4acd147779785277ee4b
6
+ metadata.gz: b1d4d719b882f070ae63f4e730c83a838ebca9a9ee5cfbc3c2118412a664c283c50b17d49aec73e9e78d974ce34a9067add4fcdbe44745000de457306c74d2c1
7
+ data.tar.gz: 2725feb16c32f277471f495bb14e7ca8649fc9371e75400db2fc47a553a00e89bfd0557b53b03c959ff8938401327369b56754665a5c438f532c20bac65b06b4
@@ -42,7 +42,7 @@ module Uc3DmpId
42
42
 
43
43
  work_hash = _work_to_mod_entry(type: work_type[0..work_type.length - 2], work:)
44
44
  mod_hash.fetch('dmproadmap_related_identifiers', []) << work_hash unless work_hash.nil?
45
- fundings = publication.fetch('fundingReferences', [])
45
+ fundings = work.fetch('fundingReferences', [])
46
46
  next unless fundings.any?
47
47
 
48
48
  award_hash = fundings.map { |funding| _funding_to_mod_entry(work:, funding:) }
@@ -283,7 +283,7 @@ module Uc3DmpId
283
283
  last_names_matched = _compare_arrays(array_a: @details_hash.fetch(:last_names, []), array_b: last_names)
284
284
  rors_matched = _compare_arrays(array_a: @details_hash.fetch(:affiliation_ids, []), array_b: rors)
285
285
  affil_names_matched = _compare_arrays(array_a: @details_hash.fetch(:affiliations, []), array_b: affil_names)
286
- return response if last_names_matched <= 0 && rors_matched <= 0 && affil_names_matched <= 0
286
+ return response if last_names_matched <= 0
287
287
 
288
288
  response[:score] += last_names_matched + rors_matched + affil_names_matched
289
289
  response[:notes] << 'contributor names and affiliations matched'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.14'
4
+ VERSION = '0.1.16'
5
5
  end
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.14
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-02 00:00:00.000000000 Z
11
+ date: 2023-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json