Class: ODDB::Html::Util::LookandfeelMeineMedikamente

Inherits:
LookandfeelWrapper
  • Object
show all
Defined in:
lib/oddb/html/util/lookandfeel.rb

Constant Summary collapse

DICTIONARIES =
{
  'de' => { 
    :ddd_price_calculation4 => ' ) = <b>CHF ',
    :html_title             => 'CH | DE - ODDB.org',
    :html_owner             => 'Open Drug Database',
    :price_local            => 'Preis Schweiz (CHF)',
    :price_db               => 'Preis Deutschland (CHF)',
    :screencast_url         => 'http://www.youtube.com/watch?v=8lWYIzjlOe0',
    :tax_add                => 'MwSt. Schweiz (7.6%)',
    :tax_sub                => 'MwSt. Deutschland (19%)',
    :tt_price_public        => 'Preis: Apothekenverkaufspreis inkl. MwSt. in CHF',
    :welcome_drugs            => <<-EOS,
  },
}
ENABLED =
[
  # Features:
  :explain_price, :google_ads, :remote_databases, :query_limit, :welcome,
  :screencast, :social_bookmarks,
  # Navigation-Links:
  :atc_browser, :contact, :home, :products, 
]
RESOURCES =
{
  :logo => 'logo.png', 
}

Instance Method Summary collapse

Methods inherited from LookandfeelWrapper

#base_url, #price_factor, #tax_factor

Instance Method Details

#currency_factorObject



642
643
644
# File 'lib/oddb/html/util/lookandfeel.rb', line 642

def currency_factor
  @factor ||= Currency.rate('EUR', 'CHF')
end

#legend_componentsObject



645
646
647
648
649
650
# File 'lib/oddb/html/util/lookandfeel.rb', line 645

def legend_components
  { 
    [0,0] => 'explain_remote',
    [0,1] => 'explain_zuzahlungsbefreit', 
  }
end

#products_componentsObject



651
652
653
654
655
656
657
658
# File 'lib/oddb/html/util/lookandfeel.rb', line 651

def products_components
  {
    [0,0] => :product,
    [1,0] => :atc,
    [2,0] => :company,
    [3,0] => :google,
  }
end

#result_componentsObject



659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'lib/oddb/html/util/lookandfeel.rb', line 659

def result_components
  {
    [0,0] => :product,
    [1,0] => :active_agents,
    [2,0] => :size, 
    [3,0] => :price_exfactory,
    [4,0] => :price_public,
    [5,0] => :ddd_prices,
    [6,0] => :company,
    [7,0] => :package_infos,
    [8,0] => :google,
  }
end

#tax_factor_addObject



672
673
674
# File 'lib/oddb/html/util/lookandfeel.rb', line 672

def tax_factor_add
  7.6 / 100.0
end

#tax_factor_subObject



675
676
677
# File 'lib/oddb/html/util/lookandfeel.rb', line 675

def tax_factor_sub
  19.0 / 100.0
end