Method: IsoDoc::PresentationXMLConvert#biblio_ref_entry_code
- Defined in:
- lib/isodoc/presentation_function/refs.rb
#biblio_ref_entry_code(ordinal, ids, _id, _standard, datefn, _bib) ⇒ Object
if ids is just a number, only use that ([1] Non-Standard) else, use both ordinal, as prefix, and ids
187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/isodoc/presentation_function/refs.rb', line 187 def biblio_ref_entry_code(ordinal, ids, _id, _standard, datefn, _bib) # standard and id = nil ret = ids[:ordinal] || ids[:metanorma] || "[#{ordinal}]" if ids[:sdo] ret = prefix_bracketed_ref(ret) ret += "#{ids[:sdo]}#{datefn}, " else ret = prefix_bracketed_ref("#{ret}#{datefn}") end ret end |