Sha256: af7cfea765c9a10ee9e57312126258d015df7562d0c3f1301d838d643b38e126

Contents?: true

Size: 603 Bytes

Versions: 10

Compression:

Stored size: 603 Bytes

Contents

module Bolognese
  module Writers
    module BibtexWriter
      def bibtex
        bib = {
          bibtex_type: bibtex_type.presence || "misc",
          bibtex_key: id,
          doi: doi,
          url: url,
          author: authors_as_string(author),
          keywords: keywords,
          language: language,
          title: title,
          journal: container_title,
          volume: volume,
          issue: issue,
          pages: pagination,
          publisher: publisher,
          year: publication_year
        }.compact
        BibTeX::Entry.new(bib).to_s
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bolognese-0.9.19 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.18 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.17 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.16 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.15 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.14 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.13 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.11 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.10 lib/bolognese/writers/bibtex_writer.rb
bolognese-0.9.9 lib/bolognese/writers/bibtex_writer.rb