Class: ODDB::Html::View::Drugs::Search

Inherits:
Search
  • Object
show all
Defined in:
lib/oddb/html/view/drugs/search.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => 'dstype',
  [0,1] => :dstype,
  [0,2] => :query,
  [0,3] => :submit,
  [1,3] => :reset,
  [0,4] => "explain_search",
  [0,5] => :package_count,
  [2,5] => Navigation,
  [0,6] => :social_bookmarks,
  [0,7] => :screencast,
}
CSS_MAP =
{ 4 => "explain", 5 => "explain links", 
6 => "explain", 7 => "explain" }

Constants inherited from Search

Search::EVENT, Search::FORM_NAME, Search::SOCIAL_BOOKMARKS, Search::SYMBOL_MAP

Instance Method Summary collapse

Methods inherited from Search

#screencast, #social_bookmarks

Methods included from SearchMethods

#dstype

Instance Method Details

#package_count(model) ⇒ Object



26
27
28
# File 'lib/oddb/html/view/drugs/search.rb', line 26

def package_count(model)
  ODDB::Drugs::Package.count
end