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
164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/isodoc/presentation_function/refs.rb', line 164 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 |