Class: ODDB::LookandfeelJustMedical

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

Constant Summary

ENABLED =
[
  :atc_chooser,
  :custom_navigation,
  :custom_tab_navigation,
  :drugs, 
  :external_css,
  :fachinfos, 
  :feedback,
  :home,
  :home_drugs,
  :home_migel,
  :interactions, 
  :just_medical_structure, 
  :migel,
  :migel_alphabetical,
  :popup_links,
  :search_reset,
  :sequences,
  :topfoot,
]
DICTIONARIES =
{
  'de' =>  {
    :all_drugs_pricecomparison  => 'Schweizer Medikamenten-Enzyklopädie',
    :atc_chooser                =>  'ATC-Codes', 
    :data_declaration           => 'Datenherkunft',
    :fipi_overview_explain      =>  'Stand der Publikation der Fach- und Patienteninformationen unter www.med-drugs.ch',
    :home_drugs                 =>  'Medikamente',
    :legal_note                 =>  'Rechtliche Hinweise',
    :meddrugs_update            =>  'med-drugs update', 
    :migel                      => 'Medizinprodukte (MiGeL)',
    :migel_alphabetical         =>  'Medizinprodukte (MiGeL) A-Z',
    :price_compare              =>  "Für Preisvergleich auf Medikamentnamen klicken.",
    :search_explain             =>  '',
    :sequences                  => 'Medikamente A-Z',
  },
  'fr' =>  {
    :all_drugs_pricecomparison  => 'Encyclopédie des médicaments commercialisés en Suisse',
    :atc_chooser                =>  'ATC-Codes', 
    :data_declaration           => 'Source des dates',
    :fipi_overview_explain      =>  'Publications IPro et IPat sous www.just-medical.ch',
    :home_drugs                 =>  'Médicaments',
    :legal_note                 =>  'Notice légale',
    :meddrugs_update            =>  'med-drugs update', 
    :migel                      => 'Dispositifs médicaux (MiGeL)',
    :migel_alphabetical         =>  'Dispositifs médicaux (MiGeL) A-Z',
    :price_compare              =>  "Pour comparaison de prix cliquer sur nom du médicament",
    :search_explain             =>  '',
    :sequences                  => 'Médicaments A-Z',
  },
  'en' =>  {
    :all_drugs_pricecomparison  => 'Complete Swiss encyclopaedia of drugs',
    :atc_chooser                =>  'ATC-Codes', 
    :data_declaration           => 'Source of data',
    :fipi_overview_explain      =>  'Publications of DI and CI on www.just-medical.ch',
    :home_drugs                 =>  'Drugs',
    :legal_note                 =>  'Legal Disclaimer',
    :meddrugs_update            =>  'med-drugs update', 
    :migel                      => 'Medical devices (MiGeL)',
    :migel_alphabetical         =>  'Medical devices (MiGeL) A-Z',
    :price_compare              =>  "Click name of drug for price-comparison",
    :search_explain             =>  '',
    :sequences                  => 'Drugs A-Z',
  },
}
DISABLED =
[ :pointer_steps_header ]
RESOURCES =
{
  :external_css  => 'http://www.just-medical.com/css/new.oddb.css',
}

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



474
475
476
477
478
479
480
481
482
483
484
485
486
# File 'src/custom/lookandfeelwrapper.rb', line 474

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



487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
# File 'src/custom/lookandfeelwrapper.rb', line 487

def explain_result_components
  {
    [0,0] =>  :explain_original,
    [0,1] =>  :explain_generic,
    [0,2] =>  :explain_comarketing,
    [0,3] =>  :explain_complementary,
    [0,4] =>  :explain_vaccine,
    [0,5] =>  'explain_unknown',
    [0,6] =>  'explain_expired',
    [0,7] =>  :explain_cas,
    [1,0] =>  :explain_limitation,
    [1,1] =>  :explain_fachinfo,
    [1,2] =>  :explain_patinfo,
    [1,3] =>  :explain_narc,
    [1,4] =>  :explain_anthroposophy,
    [1,5] =>  :explain_homeopathy,
    [1,6] =>  :explain_phytotherapy,
    [1,7] =>  :explain_parallel_import,
    [2,0] =>  'explain_pbp',
    [2,1] =>  :explain_deductible,
    [2,2] =>  'explain_sl',
    [2,3] =>  'explain_slg',
    [2,4] =>  'explain_slg',
    [2,5] =>  :explain_feedback,
    [2,6] =>  :explain_lppv,
    [2,7] =>  :explain_google_search,
  }
end


515
516
517
518
# File 'src/custom/lookandfeelwrapper.rb', line 515

def navigation
  [ :meddrugs_update, :legal_note, :data_declaration ] \
    + zone_navigation + [ :home ]
end

- (Object) result_list_components



519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
# File 'src/custom/lookandfeelwrapper.rb', line 519

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

- (Object) zone_navigation



545
546
547
548
549
550
551
552
# File 'src/custom/lookandfeelwrapper.rb', line 545

def zone_navigation
  case @session.zone
  when :analysis
    [:analysis_alphabetical]
  else
    []
  end
end

- (Object) zones



541
542
543
544
# File 'src/custom/lookandfeelwrapper.rb', line 541

def zones
  [ :analysis, :interactions, State::Drugs::Init, State::Drugs::AtcChooser, 
    State::Drugs::Sequences, State::Migel::Alphabetical ]
end