Class: ODDB::View::User::CenteredSearchComposite

Inherits:
CenteredSearchComposite show all
Defined in:
src/view/user/centeredsearchform.rb

Constant Summary

COMPONENTS =
{
  [0,0]   => :language_chooser,
  [0,1]   => View::User::CenteredSearchForm,
  [0,4]   => View::CenteredNavigation,
  [0,5,0]  => :fipi_offer,
  [0,5,1] =>  :divider,
  [0,5,2] =>  :new_registration,
  [0,6,0] =>  :database_size,
  [0,6,1] =>  'database_size_text',
  [0,6,2] =>  'comma_separator',
  [0,6,3] =>  'database_last_updated_txt',
  [0,6,4] =>  :database_last_updated,
  [0,7]   => :generic_definition,
  [0,8]   => :legal_note,
  [0,9]   => :paypal,
}
CSS_MAP =
{
  [0,0,1,10]    =>  'list center',
}
COMPONENT_CSS_MAP =
{
  [0,8] =>  'legal-note',
}

Constants inherited from CenteredSearchComposite

COMPONENTS, COMPONENT_CSS_MAP, CSS_CLASS, CSS_MAP, HTML_ATTRIBUTES, SYMBOL_MAP

Instance Method Summary (collapse)

Methods inherited from CenteredSearchComposite

#atc_chooser, #atc_ddd_size, #beta, #database_last_updated, #database_size, #ddd_count_text, #divider, #download_ebook, #download_export, #download_generics, #export_divider, #fachinfo_size, #fipi_offer, #interactions, #limitation_size, #mailinglist, #narcotics_size, #new_feature, #patinfo_size, #paypal, #plugin, #recent_registrations, #vaccines_size

Methods included from ODDB::View::UserSettings

#language_chooser, #language_chooser_short

Methods included from ExternalLinks

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

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) new_registration(model, session)



39
40
41
42
43
# File 'src/view/user/centeredsearchform.rb', line 39

def new_registration(model, session)
  link = HtmlGrid::Link.new(:new_registration, model, @session, self)
  link.href = @lookandfeel._event_url(:new_registration)
  link
end

- (Object) substance_count(model, session)



44
45
46
# File 'src/view/user/centeredsearchform.rb', line 44

def substance_count(model, session)
  @session.app.substance_count
end