Module: ExtractsHelper
- Defined in:
- app/helpers/extracts_helper.rb
Instance Method Summary collapse
- #extract_link(extract) ⇒ Object
-
#extract_tag(extract) ⇒ Object
TODO: reference identifiers/origin objects etc.
- #extracts_search_form ⇒ Object
Instance Method Details
#extract_link(extract) ⇒ Object
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 |
#extract_tag(extract) ⇒ Object
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 |
#extracts_search_form ⇒ Object
18 19 20 |
# File 'app/helpers/extracts_helper.rb', line 18 def extracts_search_form render('/extracts/quick_search_form') end |