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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# 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,
"author" => author,
"title" => title,
"publisher" => publisher,
"container_title" => container_title,
"keywords" => keywords,
"contributor" => contributor,
"date_accepted" => date_accepted,
"date_available" => date_available,
"date_copyrighted" => date_copyrighted,
"date_collected" => date_collected,
"date_created" => date_created,
"date_published" => date_published,
"date_modified" => date_modified,
"date_submitted" => date_submitted,
"date_registered" => date_registered,
"date_updated" => date_updated,
"date_valid" => date_valid,
"language" => language,
"alternate_identifier" => alternate_identifier,
"content_size" => content_size,
"version" => b_version,
"license" => license,
"description" => description,
"volume" => volume,
"issue" => issue,
"first_page" => first_page,
"last_page" => last_page,
"spatial_coverage" => spatial_coverage,
"funding" => funding,
"is_identical_to" => is_identical_to,
"is_part_of" => is_part_of,
"has_part" => has_part,
"is_previous_version_of" => is_previous_version_of,
"is_new_version_of" => is_new_version_of,
"is_variant_form_of" => is_variant_form_of,
"is_original_form_of" => is_original_form_of,
"references" => references,
"is_referenced_by" => is_referenced_by,
"is_supplement_to" => is_supplement_to,
"is_supplemented_by" => is_supplemented_by,
"reviews" => reviews,
"is_reviewed_by" => is_reviewed_by,
"schema_version" => schema_version,
"provider_id" => provider_id,
"client_id" => client_id,
"provider" => service_provider,
"state" => state
}.compact
JSON.pretty_generate hsh.presence
end
|