Class: ODDB::View::Drugs::LimitationTextList

Inherits:
HtmlGrid::List show all
Includes:
AdditionalInformation, AlphaHeader, ResultColors
Defined in:
src/view/drugs/limitationtexts.rb

Constant Summary

EMPTY_LIST_KEY =
:choose_limittext_range
COMPONENTS =
{
  [0,0] => :limitation_text,
  [1,0] => :name,
}
DEFAULT_CLASS =
HtmlGrid::Value
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] =>  'small list',
  [1,0] =>  'list big',
}
SORT_DEFAULT =
false
SORT_HEADER =
false
LEGACY_INTERFACE =
false
LOOKANDFEEL_MAP =
{
  :limitation_text  => :ltext,
}

Constants included from AlphaHeader

EMPTY_LIST_KEY

Constants inherited from HtmlGrid::List

BACKGROUND_SUFFIX

Instance Method Summary (collapse)

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 AlphaHeader

#compose_header

Instance Method Details

- (Object) name(model)



34
35
36
37
38
39
40
41
42
43
# File 'src/view/drugs/limitationtexts.rb', line 34

def name(model)
  link = HtmlGrid::Link.new(:name_base, model, @session, self)
  link.value = model.name_base
  args = {
    'search_query' =>  model.name_base,
  }
  link.href = @lookandfeel._event_url(:search, args)
  link.css_class = 'list big' << resolve_suffix(model)
  link
end