Sha256: 84aedcbb89dd373891b362816c48df9a7d0132436df0eda53e90f99cd0f1aa1b
Contents?: true
Size: 959 Bytes
Versions: 3
Compression:
Stored size: 959 Bytes
Contents
module Bolognese module Writers module CiteprocWriter def citeproc hsh = { "type" => citeproc_type, "id" => id, "categories" => keywords.present? ? keywords.split(", ") : nil, "language" => language, "author" => to_citeproc(author), "editor" => to_citeproc(editor), "issued" => get_date_parts(date_published), "submitted" => get_date_parts(date_submitted), "abstract" => parse_attributes(description, content: "text", first: true), "container-title" => container_title, "DOI" => doi, "issue" => issue, "page" => pagination, "publisher" => publisher, "title" => parse_attributes(title, content: "text", first: true), "URL" => url, "version" => version, "volume" => volume }.compact JSON.pretty_generate hsh.presence end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bolognese-0.9.39 | lib/bolognese/writers/citeproc_writer.rb |
bolognese-0.9.38 | lib/bolognese/writers/citeproc_writer.rb |
bolognese-0.9.37 | lib/bolognese/writers/citeproc_writer.rb |