class AnyStyle::Normalizer::Journal

Public Instance Methods

normalize(item, **opts) click to toggle source
   # File lib/anystyle/normalizer/journal.rb
 4 def normalize(item, **opts)
 5   if item.key?(:journal)
 6     item[:type] = 'article-journal'
 7     item[:journal].each { |journal| append item, :'container-title', journal }
 8     item.delete(:journal)
 9   end
10   item
11 end