Skip to content

Commit

Permalink
fix parsing rich IDs from XML
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Dec 19, 2024
1 parent 83b6a38 commit 46d90e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/relaton_bib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RelatonBib
VERSION = "1.19.6".freeze
VERSION = "1.19.7".freeze
end
2 changes: 1 addition & 1 deletion lib/relaton_bib/xml_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def create_doctype(type)
def fetch_docid(item)
item.xpath("./docidentifier").map do |id|
args = id.to_h.transform_keys(&:to_sym)
args[:id] = id.text
args[:id] = id.children.map { |n| n.text? ? n.content : n.to_xml }.join
args[:primary] = id[:primary] == "true" ? true : nil
create_docid(**args)
end
Expand Down

0 comments on commit 46d90e8

Please sign in to comment.