uc3-dmp-id 0.0.126 → 0.0.128

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: 73d2494e92230d95b9af70786a5d86c630d5b2173a6e33d61fe709a038324787
4
- data.tar.gz: 3bb154b98d213aa867ae91a94a4931773faa01131e14a13dcdcdfc50c4d75e6c
3
+ metadata.gz: 18be2194ff897e9c5ebca4913b8d6b10feb1ef7554d41ee7657a8785ec042ec9
4
+ data.tar.gz: a4dfe517fc697e7e67a96f2f06571b7a2a9edf750de572da1a749b7cfc3b6885
5
5
  SHA512:
6
- metadata.gz: d7e8cff85f91ba62b56063d1351632f39a0088ba14a7a9565c6dcd19784b3c091a2332cbc578e4805065bd70fc1a807099bb70d46b2844e3f5e14d7f18abeb5b
7
- data.tar.gz: 91811d73974c7664b6008824c4f5b7bc7a5d9414d750dfa6de29ee990c9d292b1b237735d7e38b33e1b5c81fdb52eb7ef0f0245d7bc1b141c4fb760180bf0621
6
+ metadata.gz: 91805e7dddf4e6283de8c8c11398f08058fe9cb4046e59c1a7d7b72b0c783ce68ed102e8e6ac2ec79fc1e987102461f635ad07c6f09c0721c4e95420fa5165af
7
+ data.tar.gz: '07680effbf1748bbcfdc528c937b0de657ceb167f5c2a714a558fb974106cdcec60141b3ede5c43b0dd722b7b19cdd3969cb31ac096a1ab31124692e18f5b842'
@@ -232,6 +232,16 @@ module Uc3DmpId
232
232
  end
233
233
  # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
234
234
 
235
+ # Extracts the related identifiers that we can fetch a citation for
236
+ def citable_related_identifiers(related_identifiers: [])
237
+ # Ignore the identifier that points to the narrative PDF document and any identifiers that
238
+ # we have already fetched the citation for
239
+ related_identifiers.reject do |id|
240
+ (id['work_type'] == 'output_management_plan' && id['descriptor'] == 'is_metadata_for') ||
241
+ (id['type'] == 'doi' && !id['citation'].nil?)
242
+ end
243
+ end
244
+
235
245
  # Ruby's clone/dup methods do not clone/dup the children, so we need to do it here
236
246
  # --------------------------------------------------------------
237
247
  # rubocop:disable Metrics/AbcSize
@@ -294,6 +294,7 @@ module Uc3DmpId
294
294
  "type": "string",
295
295
  "title": "The Funding Grant ID Type Schema",
296
296
  "enum": [
297
+ "doi",
297
298
  "url",
298
299
  "other"
299
300
  ],
@@ -1312,6 +1312,7 @@ module Uc3DmpId
1312
1312
  "type": "string",
1313
1313
  "title": "The Funding Grant ID Type Schema",
1314
1314
  "enum": [
1315
+ "doi",
1315
1316
  "url",
1316
1317
  "other"
1317
1318
  ],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.126'
4
+ VERSION = '0.0.128'
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.0.126
4
+ version: 0.0.128
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-08-07 00:00:00.000000000 Z
11
+ date: 2023-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json