Method: IsoDoc::PresentationXMLConvert#copy_baselevel_termsource
- Defined in:
- lib/isodoc/presentation_function/terms.rb
#copy_baselevel_termsource(docxml) ⇒ Object
112 113 114 115 116 117 118 119 120 |
# File 'lib/isodoc/presentation_function/terms.rb', line 112 def copy_baselevel_termsource(docxml) docxml.xpath(ns("//term[termsource]")).each do |x| s = x.xpath(ns("./termsource")) s1 = x.at(ns("./fmt-termsource")) s.each { |ss| s1 << ss.clone } strip_duplicate_ids(nil, s, s1) %w(status type).each { |a| s[0][a] and s1[a] = s[0][a] } end end |