Sha256: bf68dcd86cf3ade84a9da96284e9d1c0a07cccaed6c6ab4420abe13668eddf74

Contents?: true

Size: 724 Bytes

Versions: 17

Compression:

Stored size: 724 Bytes

Contents

module IsoDoc
  module Ogc
    module BaseConvert
      def std_bibitem_entry(list, bib, ordinal, biblio)
        list.p **attr_code(iso_bibitem_entry_attrs(bib, biblio)) do |ref|
          prefix_bracketed_ref(ref, "[#{ordinal}]") if biblio
          reference_format(bib, ref)
        end
      end

      def nonstd_bibitem(list, bib, ordinal, bibliography)
        list.p **attr_code(iso_bibitem_entry_attrs(bib, bibliography)) do |r|
          id = bibitem_ref_code(bib)
          identifier = render_identifier(id)
          identifier[:sdo] = nil
          if bibliography
            ref_entry_code(r, ordinal, identifier, id)
          end
          reference_format(bib, r)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
metanorma-ogc-2.3.0 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.7 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.6 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.5 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.4 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.3 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.2.1 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.2 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.1.1 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.1 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.2.0 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.1.5 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.1.4 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.1.3 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.1.2 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.1.1 lib/isodoc/ogc/biblio.rb
metanorma-ogc-2.1.0 lib/isodoc/ogc/biblio.rb