6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/bolognese/writers/crosscite_writer.rb', line 6
def crosscite
hsh = {
"id" => identifier,
"doi" => doi,
"url" => b_url,
"type" => type,
"additional_type" => additional_type,
"citeproc_type" => citeproc_type,
"bibtex_type" => bibtex_type,
"ris_type" => ris_type,
"resource_type_general" => resource_type_general,
"resource_type" => additional_type,
"creator" => creator,
"title" => title,
"publisher" => publisher,
"container_title" => periodical && periodical["title"],
"keywords" => keywords,
"contributor" => contributor,
"dates" => dates,
"date_published" => date_published,
"date_modified" => date_modified,
"language" => language,
"alternate_identifiers" => alternate_identifiers,
"size" => size,
"format" => b_format,
"version" => b_version,
"rights" => rights,
"description" => description,
"volume" => volume,
"issue" => issue,
"first_page" => first_page,
"last_page" => last_page,
"geo_location" => geo_location,
"funding_references" => funding_references,
"related_identifiers" => related_identifiers,
"schema_version" => schema_version,
"provider_id" => provider_id,
"client_id" => client_id,
"provider" => service_provider,
"state" => state
}.compact
JSON.pretty_generate hsh.presence
end
|