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
|
# File 'lib/bolognese/writers/crosscite_writer.rb', line 6
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,
"agency" => agency,
"state" => state
}.compact
JSON.pretty_generate hsh.presence
end
|