Class: ODDB::View::Drugs::RootResultList

Inherits:
ResultList show all
Defined in:
src/view/drugs/rootresultlist.rb,
test/test_view/drugs/resultlist.rb

Direct Known Subclasses

RootRecentRegsList

Constant Summary

Constants inherited from ResultList

COMPONENTS, CSS_CLASS, CSS_HEAD_KEYMAP, CSS_HEAD_MAP, CSS_KEYMAP, CSS_MAP, DEFAULT_CLASS, LOOKANDFEEL_MAP, REVERSE_MAP, SORT_DEFAULT, SUBHEADER, SYMBOL_MAP

Constants inherited from HtmlGrid::List

BACKGROUND_SUFFIX

Instance Method Summary (collapse)

Methods inherited from ResultList

#active_agents, #compose_list, #compose_subheader, #explain_atc, #fachinfo, #galenic_form, #init, #registration_date, #resultview_switch, #show_packages?, #substances

Methods included from AdditionalInformation

#_fachinfo, #atc_ddd_link, #atc_description, #comarketing, #complementary_type, #compositions, #ddd_price, #deductible, #fachinfo, #feedback, #google_search, #ikscat, #limitation_link, #limitation_text, #minifi, #narcotic, #notify, #patent, #patinfo, #qty_unit, #square, #twitter_share

Methods included from PartSize

#comparable_size, #part_size

Methods included from AtcDddLink

#atc_ddd_link

Methods included from ODDB::View::DataFormat

#breakline, #company_name, #most_precise_dose, #name_base, #price, #price_exfactory, #price_public

Methods included from ExternalLinks

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

Instance Method Details

- (Object) hash_insert

- (Object) ikskey(model, session = @session)



17
18
19
20
21
22
23
24
25
# File 'src/view/drugs/rootresultlist.rb', line 17

def ikskey(model, session=@session)
  span = HtmlGrid::Span.new(model, @session, self)
  span.value = [
    [:iksnr, model.registration], [:seqnr, model.sequence], [:ikscd, model]
  ].collect { |key, item|
    View::PointerLink.new(key, item, @session, self)
  }
  span
end

- (Object) reorganize_components(*args)



11
12
13
14
15
16
# File 'src/view/drugs/rootresultlist.rb', line 11

def reorganize_components(*args)
  super
  hash_insert_col(css_head_map, [0,0], 'th')
  hash_insert_col(css_map, [0,0], 'list edit')
  hash_insert_col(components, [0,0], :ikskey)
end