Class: ODDB::View::Analysis::AdditionalInfoComposite

Inherits:
HtmlGrid::Composite show all
Includes:
ODDB::View::AdditionalInformation
Defined in:
src/view/analysis/position.rb

Constant Summary

CSS_CLASS =
''
COMPONENTS =
{
  [0,0] =>  'dacapo_title',
}
CSS_MAP =
{
  [0,0,2] =>  'subheading',
}
COLSPAN_MAP =
{
  [0,0] => 2,
}
DEFAULT_CLASS =
HtmlGrid::Value
LEGACY_INTERFACE =
false
LABELS =
true

Instance Method Summary (collapse)

Methods included from ODDB::View::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 Drugs::AtcDddLink

#atc_ddd_link

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) info_ext_material(model)



70
71
72
73
74
75
76
77
78
# File 'src/view/analysis/position.rb', line 70

def info_ext_material(model)
      value = HtmlGrid::Value.new(model.info_ext_material, model, @session, self)
    if(/info@dacapo.ch/u.match(model.info_ext_material))
      value.value = $` + '<a href="mailto:info@dacapo.ch">' + $& + '</a>' + $'
    else
      value.value = model.info_ext_material
    end
    value
end

- (Object) init



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'src/view/analysis/position.rb', line 32

def init
  counter = 1
  if(@model.info_description)
    components.update([0, counter] =>  :info_description)
    counter += 1
  end
  if(@model.info_interpretation)
    components.update([0, counter] =>  :info_interpretation)
    counter += 1
  end
  if(@model.info_indication)
    components.update([0, counter] =>  :info_indication)
    counter += 1
  end
  if(@model.info_significance)
    components.update([0, counter] =>  :info_significance)
    counter += 1
  end
  if(ext = @model.info_ext_material)
    components.update([0, counter] =>  :info_ext_material)
    counter += 1
  end
  if(@model.info_ext_condition)
    components.update([0, counter] =>  :info_ext_condition)
    counter += 1
  end
  if(@model.info_storage_condition)
    components.update([0, counter] =>  :info_storage_condition)
    counter += 1
  end
  if(@model.info_storage_time)
    components.update([0, counter] =>  :info_storage_time)
    counter += 1
  end
  css_map.update([0,1,1,counter -1] =>  'list top')
  css_map.update([1,1,1,counter -1] =>  'list')
  super
end