Sha256: df11cdfdee466825dcbe8338a61a4ed9cf746073e087dc1531075ec0ff052da3
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
module Bolognese module Writers module BibtexWriter def bibtex return nil unless valid? 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bolognese-0.9.20 | lib/bolognese/writers/bibtex_writer.rb |