Sha256: 7222b22cbe4a46bcf59ef2d6045a15634c53485099abd8fc34b9ee5faa578cae

Contents?: true

Size: 694 Bytes

Versions: 5

Compression:

Stored size: 694 Bytes

Contents

module IsoDoc
  module IHO
    module BaseConvert
      # terms not defined in standoc
      def error_parse(node, out)
        case node.name
        when "appendix" then clause_parse(node, out)
        else
          super
        end
      end

      def info(isoxml, out)
        @meta.series isoxml, out
        super
      end

      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}]")
          reference_format(bib, ref)
        end
      end

      def omit_docid_prefix(prefix)
        return true if prefix == "IHO"

        super
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metanorma-iho-0.6.4 lib/isodoc/iho/base_convert.rb
metanorma-iho-0.6.3 lib/isodoc/iho/base_convert.rb
metanorma-iho-0.6.2 lib/isodoc/iho/base_convert.rb
metanorma-iho-0.6.1 lib/isodoc/iho/base_convert.rb
metanorma-iho-0.6.0 lib/isodoc/iho/base_convert.rb