Module: BioPortalHelper

Defined in:
app/helpers/bio_portal_helper.rb

Instance Method Summary collapse

Instance Method Details

#visualise_ontology(model, options = {}) ⇒ Object



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

def visualise_ontology model,options={}
  options[:show_concept]||=false
  concept_id=nil
  concept_id=model.concept_uri if options[:show_concept] && !model.concept_uri.nil?
  ontology_id ||= model.ontology_id
  apikey=options[:apikey]
  render(:partial=>"bioportal/bioportal_visualise",:locals=>{:ontology_id=>ontology_id,:concept_id=>concept_id,:apikey=>apikey})
end