Method: IsoDoc::PresentationXMLConvert#hash_translate
- Defined in:
- lib/isodoc/presentation_function/bibdata.rb
#hash_translate(bibdata, hash, xpath, lang = @lang) ⇒ Object
47 48 49 50 51 52 |
# File 'lib/isodoc/presentation_function/bibdata.rb', line 47 def hash_translate(bibdata, hash, xpath, lang = @lang) x = bibdata.at(ns(xpath)) or return hash.is_a? Hash or return hash[x.text] or return tag_translate(x, lang, hash[x.text]) end |