From 74d0c2577426888df84e69d048e694439531b6bf Mon Sep 17 00:00:00 2001 From: Nick Nicholas Date: Fri, 29 Sep 2023 23:59:39 +1000 Subject: [PATCH] version bump --- lib/relaton/render/parse/parse_extract.rb | 3 ++- lib/relaton/render/version.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/relaton/render/parse/parse_extract.rb b/lib/relaton/render/parse/parse_extract.rb index 5f91eb9..5065417 100644 --- a/lib/relaton/render/parse/parse_extract.rb +++ b/lib/relaton/render/parse/parse_extract.rb @@ -119,11 +119,12 @@ def other_identifier_include end def doi(doc) - doc.docidentifier.each_with_object([]) do |id, ret| + out = doc.docidentifier.each_with_object([]) do |id, ret| type = id.type&.sub(/^(DOI)\..*$/i, "\\1") or next type.casecmp("doi").zero? or next ret << id.id end + out.empty? ? nil : out end def id_type_norm(id) diff --git a/lib/relaton/render/version.rb b/lib/relaton/render/version.rb index 7f40fc5..9fa1443 100644 --- a/lib/relaton/render/version.rb +++ b/lib/relaton/render/version.rb @@ -1,5 +1,5 @@ module Relaton module Render - VERSION = "0.5.14".freeze + VERSION = "0.5.15".freeze end end