view · edit · sidebar · attach · print · history

20120724-prescription-form-links-in-search-result

<< | Index | >>


Summary

  • Updated atc links in search result.

Commits

Index


Update links in search result

Updated atc links to specify by lookandfeel (with ENABLED, DISABLED)

  • drugbank.ca
  • dosing.de
  • teilbarkeit
  • pharmakinetic

Updated separator,too.

in src/view/drugs/resultlist.rb
  def atc_optional_links(model, session=@session)
    links = [ 
      :atc_drugbank_link,
      :atc_dosing_link,
      :atc_division_link,
      :atc_pharmacokinetic_link,
    ].collect{ |link| self.send(link, *[model, session]) }.compact
    links.dup.each_with_index{ |l, i| links.insert(links.index(l), '&nbsp;-&nbsp;') unless i.zero? }
    links
  end

Create Rezept form

Attach:

view · edit · sidebar · attach · print · history
Page last modified on July 26, 2012, at 11:30 AM