Method: IsoDoc::PresentationXMLConvert#bibitem_ref_code
- Defined in:
- lib/isodoc/presentation_function/docid.rb
#bibitem_ref_code(bib) ⇒ Object
returns [metanorma, non-metanorma, DOI/ISSN/ISBN] identifiers
29 30 31 32 33 34 |
# File 'lib/isodoc/presentation_function/docid.rb', line 29 def bibitem_ref_code(bib) id, id1, id2, id3 = bibitem_ref_code_prep(bib) id || id1 || id2 || id3 and return [id, id1, id2, id3] bib["suppress_identifier"] == "true" and return [nil, nil, nil, nil] [nil, no_identifier(bib), nil, nil] end |