app/models/data_object.rb
# NOTE - if you plan on calling this, you are behooved by adding object_title
# and data_type_id to your selects. TODO: THIS IS A VIEW HELPER, not an
# instance method. :| :| :| :|
if you plan on calling this, you are behooved by adding object_title
and data_type_id to your selects. TODO: THIS IS A VIEW HELPER, not an
instance method.
if you plan on calling this you are behooved by adding object_title and data_type_id to your selects . TODO : THIS IS A VIEW HELPER not an instance method .
def best_title(taxon_name = nil)
    safe_title = safe_object_title
    return safe_title.html_safe unless safe_title.blank?
    toc_title = usable_toc_title
    return usable_toc_title.html_safe if usable_toc_title
    return image_title_with_taxa(taxon_name).html_safe if image?
    return safe_data_type.simple_type.html_safe if safe_data_type
    return I18n.t(:unknown_data_object_title).html_safe
  end
def best_title ( taxon_name = nil ) safe_title = safe_object_title return safe_title . html_safe unless safe_title . blank? toc_title = usable_toc_title return usable_toc_title . html_safe if usable_toc_title return image_title_with_taxa ( taxon_name ) . html_safe if image? return safe_data_type . simple_type . html_safe if safe_data_type return I18n . t ( :unknown_data_object_title ) . html_safe end
NOTE - if you plan on calling this, you are behooved by adding object_title
and data_type_id to your selects.
NOTE - if you plan on calling this you are behooved by adding object_title and data_type_id to your selects .
taxon_name
<not_specific>