Module: IqvocSkosxlHelper
- Defined in:
- app/helpers/iqvoc_skosxl_helper.rb
Instance Method Summary collapse
- #iqvoc_skosxl_default_rdf_namespaces ⇒ Object
- #render_label(label) ⇒ Object
- #search_result_label(label, concept) ⇒ Object
Instance Method Details
#iqvoc_skosxl_default_rdf_namespaces ⇒ Object
3 4 5 6 |
# File 'app/helpers/iqvoc_skosxl_helper.rb', line 3 def iqvoc_skosxl_default_rdf_namespaces { } end |
#render_label(label) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/iqvoc_skosxl_helper.rb', line 8 def render_label(label) if label.new_record? "-" elsif label.is_a?(Label::SKOSXL::Base) link_to(label.to_s, label_path(:id => label)) else label.to_s end end |
#search_result_label(label, concept) ⇒ Object
18 19 20 21 22 23 |
# File 'app/helpers/iqvoc_skosxl_helper.rb', line 18 def search_result_label(label, concept) str = ActiveSupport::SafeBuffer.new str << label str << " (#{concept.additional_info})" if concept.additional_info str end |