Class: IsoDoc::IHO::Metadata

Inherits:
Generic::Metadata
  • Object
show all
Defined in:
lib/isodoc/iho/metadata.rb

Instance Method Summary collapse

Instance Method Details

#commentperiod(ixml, _out) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/isodoc/iho/metadata.rb', line 11

def commentperiod(ixml, _out)
  from = ixml.at(ns("//bibdata/ext/commentperiod/from"))&.text
  to = ixml.at(ns("//bibdata/ext/commentperiod/to"))&.text
  extended = ixml.at(ns("//bibdata/ext/commentperiod/extended"))&.text
  set(:comment_from, from) if from
  set(:comment_to, to) if to
end

#configurationObject



7
8
9
# File 'lib/isodoc/iho/metadata.rb', line 7

def configuration
  Metanorma::IHO.configuration
end

#series(xml, _out) ⇒ Object



19
20
21
22
23
# File 'lib/isodoc/iho/metadata.rb', line 19

def series(xml, _out)
  set(:series, xml.at(ns("//bibdata/series[@type = 'main']/title"))&.text)
  a = xml.at(ns("//bibdata/series[@type = 'main']/abbreviation"))&.text and
    set(:seriesabbr, a)
end