Sha256: 79371324cd3938d302a909d6991fa4a68cd118b331f1b5adfdd69b020935e461

Contents?: true

Size: 1.31 KB

Versions: 8

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

module Bolognese
  module Writers
    module CrossciteWriter
      def crosscite
        hsh = {
          "id" => identifier,
          "doi" => doi,
          "url" => url,
          "types" => types,
          "creator" => creator,
          "titles" => titles,
          "publisher" => publisher,
          "periodical" => periodical,
          "subjects" => subjects,
          "contributor" => contributor,
          "dates" => dates,
          "publication_year" => publication_year,
          "language" => language,
          "alternate_identifiers" => alternate_identifiers,
          "sizes" => sizes,
          "formats" => formats,
          "version" => version,
          "rights_list" => rights_list,
          "descriptions" => descriptions,
          "volume" => volume,
          "issue" => issue,
          "first_page" => first_page,
          "last_page" => last_page,
          "geo_locations" => geo_locations,
          "funding_references" => funding_references,
          "related_identifiers" => related_identifiers,
          "schema_version" => schema_version,
          "provider_id" => provider_id,
          "client_id" => client_id,
          "source" => source,
          "state" => state
        }.compact
        JSON.pretty_generate hsh.presence
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bolognese-1.0.16 lib/bolognese/writers/crosscite_writer.rb
bolognese-1.0.15 lib/bolognese/writers/crosscite_writer.rb
bolognese-1.0.13 lib/bolognese/writers/crosscite_writer.rb
bolognese-1.0.12 lib/bolognese/writers/crosscite_writer.rb
bolognese-1.0.11 lib/bolognese/writers/crosscite_writer.rb
bolognese-1.0.10 lib/bolognese/writers/crosscite_writer.rb
bolognese-1.0.9 lib/bolognese/writers/crosscite_writer.rb
bolognese-1.0.8 lib/bolognese/writers/crosscite_writer.rb