uc3-dmp-id 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c486be80d903bf0a84eb05a414d4654bc4e89e54486ee8daee6a451c18c4fd5
4
- data.tar.gz: f7fad411d4c5118dacd0e40d169de08465e97bddeb0a7985a2c320a95004eccf
3
+ metadata.gz: 2d988ee80dfa85fc4f592a30bb6d53cb20b47e64998b06111e441343e286c5f9
4
+ data.tar.gz: 86c974744aee06dd4d5b790159e018f63399438d46a9f131e56babf02cef51e6
5
5
  SHA512:
6
- metadata.gz: 317feb916c8d16e49b34b560d13f553f46969dfdec67bebf55a2a8afd98b5a59668f5b7f7ce0cb25a1a05c9cd11539e3af0aecc29ee3fb7396f4f869c5eb255e
7
- data.tar.gz: 3cd7d6ae9a8485b1ded6782db3e2b2ba01fc2f7afdc9cf8414200f9827084e42567418686fb4d153b14188971cb86ad41d0876cceea1ec1606c19d78e5e53576
6
+ metadata.gz: 9aad86fe76210fc8255b0513d74737e31884fe7827aa6a66edabf2fa24aaae8ed99eb8f7fabfd34a2f04a340b2a127d2f26d4bdac3ceabf596e115e925e54748
7
+ data.tar.gz: 7496d05bcc65128c8ff645280994a2e430f0b7ca9ee80224defe1331ea27033af4e29c7ddcdcc3815df5640a9f02e41bad7b13036114fdda18a3a6f4f486dec9
@@ -3,6 +3,8 @@
3
3
  require 'bibtex'
4
4
  require 'securerandom'
5
5
 
6
+ require 'uc3-dmp-citation'
7
+
6
8
  module Uc3DmpId
7
9
  class AugmenterError < StandardError; end
8
10
 
@@ -89,6 +91,7 @@ module Uc3DmpId
89
91
  }
90
92
  work_type = work.fetch('type', 'Text')&.downcase&.strip
91
93
  ret[:work_type] = work_type == 'text' ? type : work_type
94
+ @logger&.debug(message: "Assessing Work: #{work['id']} (pre citation)", details: ret)
92
95
  return JSON.parse(ret.to_json) if work['bibtex'].nil?
93
96
 
94
97
  ret[:citation] = Uc3DmpCitation::Citer.bibtex_to_citation(bibtex_as_string: work['bibtex'])
@@ -123,6 +126,7 @@ module Uc3DmpId
123
126
  }
124
127
  }
125
128
  funder_id = funding['funderIdentifier']
129
+ @logger&.debug(message: "Assessing Work: #{work['id']} (pre funder_id)", details: ret)
126
130
  return JSON.parse(ret.to_json) if funder_id.nil?
127
131
 
128
132
  ret[:funder_id] = {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.1.9'
4
+ VERSION = '0.1.10'
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley