Module: Lib::DistributionHelper
- Defined in:
- app/helpers/lib/distribution_helper.rb
Instance Method Summary collapse
Instance Method Details
#paper_distribution_entry(taxon_name) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/lib/distribution_helper.rb', line 2 def paper_distribution_entry(taxon_name) return nil unless (taxon_name.type == 'Protonym') && taxon_name.is_species_rank? otus = Otu.descendant_of_taxon_name(taxon_name.id) return nil if otus.empty? ::Catalog::Distribution::Entry.new(otus) end |