Module: ExtractsHelper

Defined in:
app/helpers/extracts_helper.rb

Instance Method Summary (collapse)

Instance Method Details



13
14
15
16
# File 'app/helpers/extracts_helper.rb', line 13

def extract_link(extract)
  return nil if extract.nil?
  link_to(extract_tag(extract), extract)
end

- (Object) extract_tag(extract)

TODO: reference identifiers/origin objects etc.



4
5
6
7
8
9
10
11
# File 'app/helpers/extracts_helper.rb', line 4

def extract_tag(extract)
  return nil if extract.nil?
  if a = simple_identifier_list_tag(extract)
    return a
  else
    extract.verbatim_anatomical_origin || extract.id.to_s
  end
end

- (Object) extracts_search_form



18
19
20
# File 'app/helpers/extracts_helper.rb', line 18

def extracts_search_form
  render('/extracts/quick_search_form')
end