lib/relaton_oasis/xml_parser.rb in relaton-oasis-1.18.1 vs lib/relaton_oasis/xml_parser.rb in relaton-oasis-1.19.0
- old
+ new
@@ -18,8 +18,12 @@
# @param item_hash [Hash]
# @return [RelatonBib::BibliographicItem]
def bib_item(item_hash)
OasisBibliographicItem.new(**item_hash)
end
+
+ def create_doctype(type)
+ DocumentType.new type: type.text, abbreviation: type[:abbreviation]
+ end
end
end
end