Class: ODDB::LookandfeelOekk

Inherits:
SBSM::LookandfeelWrapper show all
Defined in:
src/custom/lookandfeelwrapper.rb

Constant Summary

ENABLED =
[
  :atc_chooser,
  :drugs,
  :export_csv,
  :external_css,
  :faq_link,
  :help_link,
  :home,
  :home_drugs,
  :home_migel,
  :logout,
  :migel,
  :migel_alphabetical,
  :oekk_structure,
  :recent_registrations,
  :search_reset,
  :sequences,
  :ywesee_contact,
]
DICTIONARIES =
{
  'de'  =>  {
    :de                   =>  'd',
    :explain_generic      =>  'Blau = Generikum',
    :en                   =>  'e',
    :fr                   =>  'f',
    :oekk_department      =>  'Medikamentenvergleich online',
    :oekk_logo            =>  'ÖKK - jung und unkompliziert.',
    :oekk_title           =>  'Ihr Einsparungspotential mit Generika',
  },
  'fr'  =>  {
    :explain_generic  =>  'bleu = générique',
    :oekk_department  =>  'Comparaison de médicaments sur ligne',
    :oekk_logo        => 'ÖKK - jeune et sympa.',
    :oekk_title       =>  'Vôtre économie potentielle avec génériques',
  },
  'en'  =>  {
    :explain_generic  =>  'Blue = Generic Drug',
    :oekk_department  =>  'Drug comparison online',
    :oekk_logo        => 'ÖKK - young and easy.',
    :oekk_title       =>  'Your potential savings with generics',
  },
}
DISABLED =
[ :best_result, :explain_link ]
RESOURCES =
{
  :external_css =>  'http://www.oekk.ch/_css/oddb.css',
}
HTML_ATTRIBUTES =
{ }

Constants inherited from SBSM::LookandfeelWrapper

RESULT_FILTER

Instance Method Summary (collapse)

Methods inherited from SBSM::LookandfeelWrapper

#format_price, #has_result_filter?, #result_filter

Instance Method Details

- (Object) compare_list_components



648
649
650
651
652
653
654
655
656
657
658
659
660
# File 'src/custom/lookandfeelwrapper.rb', line 648

def compare_list_components
  {
    [0,0] =>  :name_base,
    [1,0] =>  :company_name,
    [2,0] =>  :most_precise_dose,
    [3,0] =>  :comparable_size,
    [4,0] =>  :compositions,
    [5,0] =>  :price_public,
    [6,0] =>  :price_difference,
    [7,0] =>  :deductible,
    [8,0] =>  :ikscat,
  }
end

- (Object) explain_result_components



661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
# File 'src/custom/lookandfeelwrapper.rb', line 661

def explain_result_components
  {
    [0,0] =>  'explain_expired',
    [0,1] =>  :explain_complementary,
    [0,2] =>  :explain_homeopathy,
    [0,3] =>  :explain_anthroposophy,
    [0,4] =>  :explain_phytotherapy,
    [0,5] =>  :explain_parallel_import,
    [0,6] =>  :explain_vaccine,
    [1,0] =>  :explain_fachinfo,
    [1,1] =>  :explain_patinfo,
    [1,2] =>  :explain_limitation,
    [1,3] =>  :explain_narc,
    [1,4] =>  'explain_pbp',
    [1,5] =>  'explain_pr',
    [1,6] =>  :explain_deductible,
  }
end

- (Object) languages



679
680
681
# File 'src/custom/lookandfeelwrapper.rb', line 679

def languages
  [:de, :fr, :en]
end

- (Object) result_list_components



682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
# File 'src/custom/lookandfeelwrapper.rb', line 682

def result_list_components
  {
    [0,0,0] =>  'result_item_start',
    [0,0,1] =>  :name_base,
    [0,0,2] =>  'result_item_end',
    [1,0]   =>  :galenic_form,
    [2,0]   =>  :most_precise_dose,
    [3,0]   =>  :comparable_size,
    [4,0]   =>  :price_public,
    [5,0]   =>  :deductible,
    [6,0]   =>  :company_name,
    [7,0]   =>  :limitation_text,
    [8,0]   =>  :narcotic,
    [9,0]   =>  :complementary_type,
    [10,0]  =>  :fachinfo,
    [11,0]  =>  :patinfo,
  }
end