Skip to content

Commit

Permalink
fix parsing rich title content from XML
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Dec 19, 2024
1 parent b08c889 commit 52c9f5d
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.20.1".freeze
VERSION = "1.20.2".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 @@ -313,7 +313,7 @@ def ttitle(title)
return unless title

content = variants(title)
content = title.text unless content.any?
content = title.children.map { |n| n.text? ? n.content : n.to_xml }.join unless content.any?
TypedTitleString.new(
type: title[:type], content: content, language: title[:language],
script: title[:script], format: title[:format]
Expand Down

0 comments on commit 52c9f5d

Please sign in to comment.