Sha256: 58c204274792800453c60f357eb77118d911d91d1b7fe8ba301726692bc44244

Contents?: true

Size: 956 Bytes

Versions: 11

Compression:

Stored size: 956 Bytes

Contents

module Bolognese
  module Writers
    module CiteprocWriter
      def citeproc
        hsh = {
          "type" => citeproc_type,
          "id" => id,
          "categories" => parse_attributes(keywords, content: "text"),
          "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

11 entries across 11 versions & 1 rubygems

Version Path
bolognese-0.9.56 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.55 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.54 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.52 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.51 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.50 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.48 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.44 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.43 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.42 lib/bolognese/writers/citeproc_writer.rb
bolognese-0.9.41 lib/bolognese/writers/citeproc_writer.rb