lib/taxamatch_rb/parser.rb in dimus-taxamatch_rb-0.5.0 vs lib/taxamatch_rb/parser.rb in dimus-taxamatch_rb-0.5.1

- old
+ new

@@ -69,11 +69,12 @@ res[:years] << node[au]['exAuthorTeam']['year'] if node[au]['exAuthorTeam']['year'] end end end res[:authors].uniq! + res[:normalized_authors] = res[:authors].map {|a| Taxamatch::Normalizer.normalize_author(a)} res[:years].uniq! - @res[:all_authors] += res[:authors] if res[:authors].size > 0 + @res[:all_authors] += res[:normalized_authors] if res[:normalized_authors].size > 0 @res[:all_years] += res[:years] if res[:years].size > 0 end end end