app/models/hierarchy_entry.rb
# This is essentially a non-italicized, non-attributed title for the entry.
This is essentially a non-italicized, non-attributed title for the entry.
This is essentially a non - italicized non - attributed title for the entry .
def title_canonical
    return @title_canonical unless @title_canonical.nil?
    if name.is_surrogate_or_hybrid? || name.is_subgenus?
      @title_canonical = name.string.firstcap
    elsif name.ranked_canonical_form && !name.ranked_canonical_form.string.blank?
      @title_canonical = name.ranked_canonical_form.string.firstcap
    elsif name.canonical_form && !name.canonical_form.string.blank?
      @title_canonical = name.canonical_form.string.firstcap
    elsif name
      @title_canonical = name.string.firstcap
    else
      ""
    end
    @title_canonical
  end
def title_canonical return @title_canonical unless @title_canonical . nil? if name . is_surrogate_or_hybrid? || name . is_subgenus? @title_canonical = name . string . firstcap elsif name . ranked_canonical_form && ! name . ranked_canonical_form . string . blank? @title_canonical = name . ranked_canonical_form . string . firstcap elsif name . canonical_form && ! name . canonical_form . string . blank? @title_canonical = name . canonical_form . string . firstcap elsif name @title_canonical = name . string . firstcap else "" end @title_canonical end
This is essentially a non-italicized, non-attributed title for the entry.
This is essentially a non - italicized non - attributed title for the entry .
# used the ranked version first # otherwise bare canonical form # finally just the name string