Sha256: c10c79d59e3a1b700425afbc3d2eae3edd9b7532d72ec2ba54a4b4e80cd31cee

Contents?: true

Size: 359 Bytes

Versions: 32

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Briard
  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

32 entries across 32 versions & 1 rubygems

Version Path
briard-2.9.4 lib/briard/writers/citation_writer.rb
briard-2.9.3 lib/briard/writers/citation_writer.rb
briard-2.9.2 lib/briard/writers/citation_writer.rb
briard-2.9.1 lib/briard/writers/citation_writer.rb
briard-2.9.0 lib/briard/writers/citation_writer.rb
briard-2.8.2 lib/briard/writers/citation_writer.rb
briard-2.8.1 lib/briard/writers/citation_writer.rb
briard-2.8.0 lib/briard/writers/citation_writer.rb
briard-2.7.1 lib/briard/writers/citation_writer.rb
briard-2.7.0 lib/briard/writers/citation_writer.rb
briard-2.6.7 lib/briard/writers/citation_writer.rb
briard-2.6.6 lib/briard/writers/citation_writer.rb
briard-2.6.5 lib/briard/writers/citation_writer.rb
briard-2.6.4 lib/briard/writers/citation_writer.rb
briard-2.6.2 lib/briard/writers/citation_writer.rb
briard-2.6.1 lib/briard/writers/citation_writer.rb
briard-2.6.0 lib/briard/writers/citation_writer.rb
briard-2.4.2 lib/briard/writers/citation_writer.rb
briard-2.4.1 lib/briard/writers/citation_writer.rb
briard-2.4 lib/briard/writers/citation_writer.rb