Method: IsoDoc::Function::References#ref_entry_code
- Defined in:
- lib/isodoc/function/references.rb
#ref_entry_code(ref, ordinal, ids, _id) ⇒ Object
if ids is just a number, only use that ([1] Non-Standard) else, use both ordinal, as prefix, and ids
46 47 48 49 50 |
# File 'lib/isodoc/function/references.rb', line 46 def ref_entry_code(ref, ordinal, ids, _id) prefix_bracketed_ref(ref, ids[:ordinal] || ids[:metanorma] || "[#{ordinal}]") ids[:sdo] and ref << (ids[:sdo]).to_s end |