Class: SiSU_AO_Metadata::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/ao_metadata.rb

Instance Method Summary collapse

Constructor Details

#initialize(md, metad) ⇒ Metadata

Returns a new instance of Metadata.



59
60
61
62
63
64
# File 'lib/sisu/ao_metadata.rb', line 59

def initialize(md,metad)
  @md,@metadata=md,metad
  l=SiSU_Env::StandardiseLanguage.new(@md.opt.lng).language
  language=l[:n]
  @tr=SiSU_Translate::Source.new(md,language)
end

Instance Method Details

#make_heading(obj, ocn, name, lv, ln) ⇒ Object



72
73
74
75
76
77
78
79
80
81
# File 'lib/sisu/ao_metadata.rb', line 72

def make_heading(obj,ocn,name,lv,ln)
  h={
    lv: lv,
    ln: ln,
    name: name,
    obj: obj,
    ocn: 0
  }
  SiSU_AO_DocumentStructure::ObjectHeading.new.heading(h)
end

#make_para(obj, ocn) ⇒ Object



65
66
67
68
69
70
71
# File 'lib/sisu/ao_metadata.rb', line 65

def make_para(obj,ocn)
  h={
    obj: obj,
    ocn: 0
  }
  SiSU_AO_DocumentStructure::ObjectPara.new.paragraph(h)
end

#metadataObject



82
83
# File 'lib/sisu/ao_metadata.rb', line 82

def 
end