Sha256: e7a8bf1728b7bd6a2993570fdff08abbd290b1b3bcd6c895332623d7e53bfb94

Contents?: true

Size: 362 Bytes

Versions: 146

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

module Bolognese
  module Writers
    module CitationWriter
      def citation
        cp = CiteProc::Processor.new(style: style, locale: locale, format: 'html')
        cp.import Array.wrap(citeproc_hsh)
        bibliography = cp.render :bibliography, id: normalize_doi(doi)
        bibliography.first
      end
    end
  end
end

Version data entries

146 entries across 146 versions & 1 rubygems

Version Path
bolognese-2.3.2 lib/bolognese/writers/citation_writer.rb
bolognese-2.3.0 lib/bolognese/writers/citation_writer.rb
bolognese-2.2.0 lib/bolognese/writers/citation_writer.rb
bolognese-2.1.1 lib/bolognese/writers/citation_writer.rb
bolognese-2.1.0 lib/bolognese/writers/citation_writer.rb
bolognese-2.0.3 lib/bolognese/writers/citation_writer.rb
bolognese-2.0.2 lib/bolognese/writers/citation_writer.rb
bolognese-2.0.1 lib/bolognese/writers/citation_writer.rb
bolognese-2.0.0 lib/bolognese/writers/citation_writer.rb
bolognese-1.11.5 lib/bolognese/writers/citation_writer.rb
bolognese-1.11.4 lib/bolognese/writers/citation_writer.rb
bolognese-1.11.3 lib/bolognese/writers/citation_writer.rb
bolognese-1.11.2 lib/bolognese/writers/citation_writer.rb
bolognese-1.11.0 lib/bolognese/writers/citation_writer.rb
bolognese-1.10.0 lib/bolognese/writers/citation_writer.rb
bolognese-1.9.18 lib/bolognese/writers/citation_writer.rb
bolognese-1.9.17 lib/bolognese/writers/citation_writer.rb
bolognese-1.9.14 lib/bolognese/writers/citation_writer.rb
bolognese-1.9.13 lib/bolognese/writers/citation_writer.rb
bolognese-1.9.12 lib/bolognese/writers/citation_writer.rb