-
Notifications
You must be signed in to change notification settings - Fork 16
/
shared_structs.py
170 lines (168 loc) · 6.41 KB
/
shared_structs.py
1
2
3
4
5
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
SHARED_BIBJSON = {
"objects" : [
"bibjson"
],
"structs" : {
"bibjson" : {
"fields" : {
"title" : {"coerce" : "unicode"},
},
"lists" : {
"identifier" : {"contains" : "object"},
"keywords" : {"contains" : "field", "coerce" : "unicode"},
"link" : {"contains" : "object"},
"subject" : {"contains" : "object"},
},
"structs" : {
"identifier" : {
"fields" : {
"type" : {"coerce" : "unicode"},
"id" : {"coerce" : "unicode"}
}
},
"link" : {
"fields" : {
"type" : {"coerce" : "unicode"},
"url" : {"coerce" : "unicode"},
"content_type" : {"coerce" : "unicode"}
}
},
"subject" : {
"fields" : {
"scheme" : {"coerce" : "unicode"},
"term" : {"coerce" : "unicode"},
"code" : {"coerce" : "unicode"}
}
}
}
}
}
}
JOURNAL_BIBJSON_EXTENSION = {
"objects" : [
"bibjson"
],
"structs" : {
"bibjson" : {
"fields" : {
"active" : {"coerce" : "bool"},
"alternative_title" : {"coerce" : "unicode"},
"country" : {"coerce" : "unicode"},
"publisher" : {"coerce" : "unicode"},
"provider" : {"coerce" : "unicode"},
"institution" : {"coerce" : "unicode"},
"apc_url" : {"coerce" : "unicode"},
"submission_charges_url" : {"coerce" : "unicode"},
"allows_fulltext_indexing" : {"coerce" : "bool"},
"publication_time" : {"coerce" : "integer"},
"author_pays" : {"coerce" : "unicode"},
"author_pays_url" : {"coerce" : "unicode"},
"discontinued_date" : {"coerce" : "bigenddate"}
},
"lists" : {
"language" : {"contains" : "field", "coerce" : "unicode_upper"},
"deposit_policy" : {"contains" : "field", "coerce" : "unicode"},
"persistent_identifier_scheme" : {"contains" : "field", "coerce" : "unicode"},
"format" : {"contains" : "field", "coerce" : "unicode"},
"license" : {"contains" : "object"},
"is_replaced_by" : {"contains" : "field", "coerce" : "unicode"},
"replaces" : {"contains" : "field", "coerce" : "unicode"}
},
"objects" : [
"oa_start",
"oa_end",
"apc",
"submission_charges",
"archiving_policy",
"editorial_review",
"plagiarism_detection",
"article_statistics",
"author_copyright",
"author_publishing_rights"
],
"structs" : {
"oa_start" : {
"fields" : {
"year" : {"coerce" : "integer"},
"volume" : {"coerce" : "unicode"},
"number" : {"coerce" : "unicode"}
}
},
"oa_end" : {
"fields" : {
"year" : {"coerce" : "integer"},
"volume" : {"coerce" : "unicode"},
"number" : {"coerce" : "unicode"}
}
},
"apc" : {
"fields" : {
"currency" : {"coerce" : "unicode"},
"average_price" : {"coerce" : "integer"}
}
},
"submission_charges" : {
"fields" : {
"currency" : {"coerce" : "unicode"},
"average_price" : {"coerce" : "integer"}
}
},
"archiving_policy" : {
"fields" : {
"other" : {"coerce" : "unicode"},
"nat_lib" : {"coerce" : "unicode"},
"url" : {"coerce" : "unicode"}
},
"lists" : {
"known" : {"contains" : "field", "coerce" : "unicode"}
}
},
"editorial_review" : {
"fields" : {
"process" : {"coerce" : "unicode"},
"url" : {"coerce" : "unicode"}
}
},
"plagiarism_detection" : {
"fields" : {
"detection" : {"coerce" : "bool"},
"url" : {"coerce" : "unicode"}
}
},
"article_statistics" : {
"fields" : {
"statistics" : {"coerce" : "bool"},
"url" : {"coerce" : "unicode"}
}
},
"author_copyright" : {
"fields" : {
"copyright" : {"coerce" : "unicode"},
"url" : {"coerce" : "unicode"}
}
},
"author_publishing_rights" : {
"fields" : {
"publishing_rights" : {"coerce" : "unicode"},
"url" : {"coerce" : "unicode"}
}
},
"license" : {
"fields" : {
"title" : {"coerce" : "unicode"},
"type" : {"coerce" : "unicode"},
"url" : {"coerce" : "unicode"},
"version" : {"coerce" : "unicode"},
"open_access" : {"coerce" : "bool"},
"BY" : {"coerce" : "bool"},
"NC" : {"coerce" : "bool"},
"ND" : {"coerce" : "bool"},
"SA" : {"coerce" : "bool"},
"embedded" : {"coerce" : "bool"},
"embedded_example_url" : {"coerce" : "unicode"}
}
}
}
}
}
}