lib/ieee/idams/pub_model.rb in ieee-idams-0.2.10 vs lib/ieee/idams/pub_model.rb in ieee-idams-0.2.11

- old
+ new

@@ -78,10 +78,12 @@ url = "https://ieeexplore.ieee.org/document/#{id}" [block_given? ? yield(url) : url] end def keyword - volume.article.articleinfo.keywordset[0]&.keyword&.map(&:keywordterm) + volume.article.articleinfo.keywordset.inject([]) do |acc, keywordset| + acc + keywordset.keyword.map(&:keywordterm) + end.uniq end def ics return [] unless publicationinfo.ics_codes