Class: ODDB::LookandfeelSwissmedic

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

Constant Summary

DICTIONARIES =
{
  'de' =>  {
    :home_welcome             =>  "<b>Willkommen bei swissmedic.oddb.org!</b>",
  },
  'fr' =>  {
    :home_welcome             =>  "<b>Bienvenue sur swissmedic.oddb.org!</b>",
  },
  'en' =>  {
    :home_welcome             =>  "<b>Welcome to swissmedic.oddb.org!</b>",
  }
}

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

- (Boolean) enabled?(event, default = true)

Returns:

  • (Boolean)


590
591
592
593
594
595
596
597
598
# File 'src/custom/lookandfeelwrapper.rb', line 590

def enabled?(event, default=true)
  case event.to_sym
  when :query_limit, :google_adsense, :doctors, :interactions, :migel, 
    :user , :hospitals, :companies, :analysis
    false
  else
    @component.enabled?(event, default)
  end
end