Method: IsoDoc::PresentationXMLConvert#eref_localities1
- Defined in:
- lib/isodoc/presentation_function/erefs.rb
#eref_localities1(opt) ⇒ Object
175 176 177 178 179 180 181 182 183 |
# File 'lib/isodoc/presentation_function/erefs.rb', line 175 def eref_localities1(opt) opt[:type] == "anchor" and return nil opt[:lang] == "zh" and return l10n(eref_localities1_zh(opt)) ret = eref_locality_populate(opt[:type], opt[:node], opt[:number]) ret += " #{opt[:from]}" if opt[:from] ret += "–#{opt[:upto]}" if opt[:upto] l10n(ret) end |