Module: Lib::Vendor::GnfinderHelper

Defined in:
app/helpers/lib/vendor/gnfinder_helper.rb

Instance Method Summary collapse

Instance Method Details

Parameters:



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/helpers/lib/vendor/gnfinder_helper.rb', line 4

def gnfinder_matches_links(gnfinder_names, source)
  return nil if gnfinder_names.empty?

  r = []
  gnfinder_names.each do |n|
    s = link_to(n.cached, browse_nomenclature_task_path(taxon_name_id: n))
    if source
      s = quick_citation_tag(source.id, n, 'margin-small-right') + ' ' + s
    end
    r.push s
  end
  r.join(', ').html_safe
end