Method: IsoDoc::PresentationXMLConvert#norm_ref_entry_code
- Defined in:
- lib/isodoc/presentation_function/refs.rb
#norm_ref_entry_code(_ordinal, idents, _ids, _standard, datefn, _bib) ⇒ Object
175 176 177 178 179 180 181 182 183 |
# File 'lib/isodoc/presentation_function/refs.rb', line 175 def norm_ref_entry_code(_ordinal, idents, _ids, _standard, datefn, _bib) ret = (idents[:ordinal] || idents[:metanorma] || idents[:sdo]).to_s (idents[:ordinal] || idents[:metanorma]) && idents[:sdo] and ret += ", #{idents[:sdo]}" ret += datefn ret.empty? and return ret idents[:sdo] and ret += "," "#{ret} " end |