13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/isodoc/function/references.rb', line 13
def nonstd_bibitem(list, bib, ordinal, biblio)
list.p **attr_code(iso_bibitem_entry_attrs(bib, biblio)) do |ref|
ids = bibitem_ref_code(bib)
idents = render_identifier(ids)
if biblio then ref_entry_code(ref, ordinal, idents, ids)
else
ref << (idents[:ordinal] || idents[:metanorma] || idents[:sdo]).to_s
ref << ", #{idents[sdo]}" if idents[:ordinal] && idents[:sdo]
end
ref << "," if idents[:sdo]
ref << " "
reference_format(bib, ref)
end
end
|