Class: ODDB::View::Drugs::CompareSearchForm

Inherits:
CenteredSearchForm show all
Includes:
ExternalLinks, UserSettings
Defined in:
src/view/drugs/compare_search.rb

Constant Summary

EVENT =
:compare
COMPONENTS =
{
  [0,0] => :language_chooser_short,
  [0,1] => 'drugs',
  [0,2] => :search_query,
  [0,3] => :generic_definition,
  [0,4] => :legal_note,
}
COMPONENT_CSS_MAP =
{
  [0,0] => 'component',
  [0,4] => 'list',
}
CSS_MAP =
{
  [0,0] => 'list',
  [0,1] => 'list',
  [0,2] => 'list',
  [0,3] => 'list',
  [0,4] => 'list',
}
SYMBOL_MAP =
{
  :search_query =>  View::AutocompleteSearchBar,
}

Constants inherited from CenteredSearchForm

COMPONENTS, COMPONENT_CSS_MAP, CSS_CLASS, CSS_MAP, EVENT, SYMBOL_MAP

Constants inherited from CenteredSearchForm

COMPONENTS, COMPONENT_CSS_MAP, CSS_CLASS, CSS_MAP, EVENT, FORM_METHOD, HTML_ATTRIBUTES, SYMBOL_MAP

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from ExternalLinks

#contact_link, #data_declaration, #external_link, #faq_link, #generic_definition, #help_link, #legal_note, #meddrugs_update, #wiki_link

Methods included from UserSettings

#language_chooser, #language_chooser_short

Methods included from SearchBarMethods

#search_type

Methods inherited from CenteredSearchForm

#search_help, #search_reset

Instance Attribute Details

- (Object) index_name (readonly)

Returns the value of attribute index_name



9
10
11
# File 'src/view/drugs/compare_search.rb', line 9

def index_name
  @index_name
end

Instance Method Details

- (Object) init



13
14
15
16
# File 'src/view/drugs/compare_search.rb', line 13

def init
  @index_name = 'oddb_package_name_with_size'
  super
end