app/models/referent.rb in umlaut-4.0.1 vs app/models/referent.rb in umlaut-4.0.2

- old
+ new

@@ -242,10 +242,14 @@ end def oclcnum return get_oclcnum(self) end + + def doi + return get_doi(self) + end # Creates an OpenURL::ContextObject assembling all the data in this # referrent. def to_context_object co = OpenURL::ContextObject.new @@ -348,9 +352,13 @@ key = self.format if key.blank? key = key.downcase if key == "journal" && metadata['atitle'].present? key = 'article' + end + + if key == "book" && metadata['atitle'].present? + key = "bookitem" end label = I18n.t(key, :scope => "umlaut.citation.genre", :default => "") label = nil if label.blank?