Method: IsoDoc::Metadata#sc

Defined in:
lib/isodoc/metadata.rb

#sc(xml) ⇒ Object



98
99
100
101
102
103
104
105
106
# File 'lib/isodoc/metadata.rb', line 98

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