Skip to content

Commit

Permalink
Update XML parser
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Feb 1, 2024
1 parent b18bb64 commit f287e0b
Show file tree
Hide file tree
Showing 2 changed files with 6 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.18.1".freeze
VERSION = "1.18.2".freeze
end
6 changes: 5 additions & 1 deletion lib/relaton_bib/xml_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,11 @@ def fetch_doctype(ext)
dt = ext&.at("doctype")
return unless dt

DocumentType.new type: dt.text, abbreviation: dt[:abbreviation]
create_doctype dt
end

def create_doctype(type)
DocumentType.new type: type.text, abbreviation: type[:abbreviation]
end

# @param item [Nokogiri::XML::Element]
Expand Down

0 comments on commit f287e0b

Please sign in to comment.