Class: ODDB::LookandfeelAtupriWeb

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

Constant Summary

ENABLED =
[
  :atupri_web,
  :custom_navigation,
  :drugs, 
  :external_css,
  :fachinfos,
  :help_link,
  :logout,
  :migel,
  :popup_links,
  :sequences,
]
DICTIONARIES =
{
  'de' =>  {
    :DOCTYPE                  => ' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 transitional//EN">',
    :explain_complementary    =>  '&nbsp;=&nbsp;Arzneimittel der Komplement&auml;rmedizin',
    :explain_original         =>  'Blau&nbsp;=&nbsp;Original',
    :explain_unknown          => 'Grau&nbsp;=&nbsp;Nicht&nbsp;klassifiziert',
    :home_welcome             =>  "",
    :price_compare            =>  'F&uuml;r den Direktvergleich klicken Sie bitte <br>auf den Medikamentennamen im Suchergebnis!',
  },
  'fr' =>  {
    :explain_complementary    =>  '&nbsp;=&nbsp;Produit Compl&eacute;mentaire',
    :explain_original         =>  'bleu&nbsp;=&nbsp;original',
    :explain_unknown          => 'gris&nbsp;=&nbsp;pas classes',
    :home_welcome             =>  "",
    :price_compare            =>  'Pour la comparaison directe, cliquez s.v.p.<br>sur le nom du m&eacute;dicament dans le r&eacute;sultat de la recherche!',
  },
}
RESOURCES =
{ 
  :external_css  => 'http://www.atupri.ch/misc/new.generika.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



304
305
306
307
308
309
310
311
312
313
314
315
316
# File 'src/custom/lookandfeelwrapper.rb', line 304

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



317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
# File 'src/custom/lookandfeelwrapper.rb', line 317

def explain_result_components
  {
    [0,0] =>  :explain_original,
    [0,1] =>  :explain_generic,
    [0,2] =>  :explain_complementary,
    [0,3] =>  :explain_vaccine,
    [0,4] =>  'explain_unknown',
    [0,6] =>  :explain_limitation,
    [0,7] =>  :explain_fachinfo,
    [0,8] =>  :explain_patinfo,
    [0,9] =>  :explain_narc,
    [1,0] =>  :explain_anthroposophy,
    [1,1] =>  :explain_homeopathy,
    [1,2] =>  :explain_phytotherapy,
    [1,3] =>  :explain_parallel_import,
    [1,4] =>  'explain_efp',
    [1,5] =>  'explain_pbp',
    [1,6] =>  :explain_deductible,
    [1,7] =>  'explain_sl',
    [1,8] =>  'explain_slo',
    [1,9] =>  'explain_slg',
  }
end

- (Object) migel_list_components



340
341
342
343
344
345
346
347
348
349
# File 'src/custom/lookandfeelwrapper.rb', line 340

def migel_list_components
  {
    [0,0] =>  :limitation_text,
    [1,0] =>  :migel_code,
    [2,0] =>  :product_description,
    [3,0] =>  :date,
    [4,0] =>  :price,
    [5,0] =>  :qty_unit,
  }
end


350
351
352
# File 'src/custom/lookandfeelwrapper.rb', line 350

def navigation
  [ :legal_note ] + zone_navigation + [ :home ]
end

- (Object) result_list_components



353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# File 'src/custom/lookandfeelwrapper.rb', line 353

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_exfactory,
    [10,0]  => :price_public,
    [11,0]  => :deductible,
    [12,0]  => :substances,
  }
end

- (Object) zone_navigation



372
373
374
375
376
377
378
379
# File 'src/custom/lookandfeelwrapper.rb', line 372

def zone_navigation
  case @session.zone
  when :migel
    [:migel_alphabetical]
  else
    [:sequences]
  end
end