Method: IsoDoc::PresentationXMLConvert#bibdata_current

Defined in:
lib/isodoc/presentation_function/bibdata.rb

#bibdata_current(docxml) ⇒ Object



31
32
33
34
35
36
37
38
39
40
# File 'lib/isodoc/presentation_function/bibdata.rb', line 31

def bibdata_current(docxml)
  a = docxml.at(ns("//bibdata")) or return
  a.xpath(ns("./language")).each do |l|
    l.text == @lang and l["current"] = "true"
  end
  a.xpath(ns("./script")).each do |l|
    l.text == @script and l["current"] = "true"
  end
  a
end