Method: IsoDoc::Metadata#sc

Defined in:
lib/isodoc/metadata.rb

#sc(xml) ⇒ Object



54
55
56
57
58
59
60
61
62
# File 'lib/isodoc/metadata.rb', line 54

def sc(xml)
  sc_num = xml.at(ns("//bibdata/editorialgroup/subcommittee/@number"))
  sc_type = xml.at(ns("//bibdata/editorialgroup/subcommittee/@type"))&.text || "SC"
  if sc_num
    scid = "#{sc_type} #{sc_num.text}"
    set(:sc, scid)
    set(:editorialgroup, get[:editorialgroup] << scid)
  end
end