Method: IsoDoc::PresentationXMLConvert#bibdata_current

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

#bibdata_current(docxml) ⇒ Object



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

def bibdata_current(docxml)
  a = docxml.at(ns("//bibdata")) or return
  { language: @lang, script: @script, locale: @locale }.each do |k, v|
    a.xpath(ns("./#{k}")).each do |l|
      l.text == v and l["current"] = "true"
    end
  end
  a
end