Coverage for portality/models/v1/shared_structs.py: 100%
2 statements
« prev ^ index » next coverage.py v6.4.2, created at 2022-07-22 15:59 +0100
« prev ^ index » next coverage.py v6.4.2, created at 2022-07-22 15:59 +0100
1SHARED_BIBJSON = {
2 "objects" : [
3 "bibjson"
4 ],
5 "structs" : {
6 "bibjson" : {
7 "fields" : {
8 "title" : {"coerce" : "unicode"},
9 },
10 "lists" : {
11 "identifier" : {"contains" : "object"},
12 "keywords" : {"contains" : "field", "coerce" : "unicode"},
13 "link" : {"contains" : "object"},
14 "subject" : {"contains" : "object"},
15 },
16 "structs" : {
17 "identifier" : {
18 "fields" : {
19 "type" : {"coerce" : "unicode"},
20 "id" : {"coerce" : "unicode"}
21 }
22 },
23 "link" : {
24 "fields" : {
25 "type" : {"coerce" : "unicode"},
26 "url" : {"coerce" : "unicode"},
27 "content_type" : {"coerce" : "unicode"}
28 }
29 },
30 "subject" : {
31 "fields" : {
32 "scheme" : {"coerce" : "unicode"},
33 "term" : {"coerce" : "unicode"},
34 "code" : {"coerce" : "unicode"}
35 }
36 }
37 }
38 }
39 }
40}
42JOURNAL_BIBJSON_EXTENSION = {
43 "objects" : [
44 "bibjson"
45 ],
46 "structs" : {
47 "bibjson" : {
48 "fields" : {
49 "active" : {"coerce" : "bool"},
50 "alternative_title" : {"coerce" : "unicode"},
51 "country" : {"coerce" : "unicode"},
52 "publisher" : {"coerce" : "unicode"},
53 "provider" : {"coerce" : "unicode"},
54 "institution" : {"coerce" : "unicode"},
55 "apc_url" : {"coerce" : "unicode"},
56 "submission_charges_url" : {"coerce" : "unicode"},
57 "allows_fulltext_indexing" : {"coerce" : "bool"},
58 "publication_time" : {"coerce" : "integer"},
59 "author_pays" : {"coerce" : "unicode"},
60 "author_pays_url" : {"coerce" : "unicode"},
61 "discontinued_date" : {"coerce" : "bigenddate"}
62 },
63 "lists" : {
64 "language" : {"contains" : "field", "coerce" : "unicode_upper"},
65 "deposit_policy" : {"contains" : "field", "coerce" : "unicode"},
66 "persistent_identifier_scheme" : {"contains" : "field", "coerce" : "unicode"},
67 "format" : {"contains" : "field", "coerce" : "unicode"},
68 "license" : {"contains" : "object"},
69 "is_replaced_by" : {"contains" : "field", "coerce" : "unicode"},
70 "replaces" : {"contains" : "field", "coerce" : "unicode"}
71 },
72 "objects" : [
73 "oa_start",
74 "oa_end",
75 "apc",
76 "submission_charges",
77 "archiving_policy",
78 "editorial_review",
79 "plagiarism_detection",
80 "article_statistics",
81 "author_copyright",
82 "author_publishing_rights"
83 ],
85 "structs" : {
86 "oa_start" : {
87 "fields" : {
88 "year" : {"coerce" : "integer"},
89 "volume" : {"coerce" : "unicode"},
90 "number" : {"coerce" : "unicode"}
91 }
92 },
93 "oa_end" : {
94 "fields" : {
95 "year" : {"coerce" : "integer"},
96 "volume" : {"coerce" : "unicode"},
97 "number" : {"coerce" : "unicode"}
98 }
99 },
100 "apc" : {
101 "fields" : {
102 "currency" : {"coerce" : "unicode"},
103 "average_price" : {"coerce" : "integer"}
104 }
105 },
106 "submission_charges" : {
107 "fields" : {
108 "currency" : {"coerce" : "unicode"},
109 "average_price" : {"coerce" : "integer"}
110 }
111 },
112 "archiving_policy" : {
113 "fields" : {
114 "other" : {"coerce" : "unicode"},
115 "nat_lib" : {"coerce" : "unicode"},
116 "url" : {"coerce" : "unicode"}
117 },
118 "lists" : {
119 "known" : {"contains" : "field", "coerce" : "unicode"}
120 }
121 },
122 "editorial_review" : {
123 "fields" : {
124 "process" : {"coerce" : "unicode"},
125 "url" : {"coerce" : "unicode"}
126 }
127 },
128 "plagiarism_detection" : {
129 "fields" : {
130 "detection" : {"coerce" : "bool"},
131 "url" : {"coerce" : "unicode"}
132 }
133 },
134 "article_statistics" : {
135 "fields" : {
136 "statistics" : {"coerce" : "bool"},
137 "url" : {"coerce" : "unicode"}
138 }
139 },
140 "author_copyright" : {
141 "fields" : {
142 "copyright" : {"coerce" : "unicode"},
143 "url" : {"coerce" : "unicode"}
144 }
145 },
146 "author_publishing_rights" : {
147 "fields" : {
148 "publishing_rights" : {"coerce" : "unicode"},
149 "url" : {"coerce" : "unicode"}
150 }
151 },
152 "license" : {
153 "fields" : {
154 "title" : {"coerce" : "unicode"},
155 "type" : {"coerce" : "unicode"},
156 "url" : {"coerce" : "unicode"},
157 "version" : {"coerce" : "unicode"},
158 "open_access" : {"coerce" : "bool"},
159 "BY" : {"coerce" : "bool"},
160 "NC" : {"coerce" : "bool"},
161 "ND" : {"coerce" : "bool"},
162 "SA" : {"coerce" : "bool"},
163 "embedded" : {"coerce" : "bool"},
164 "embedded_example_url" : {"coerce" : "unicode"}
165 }
166 }
167 }
168 }
169 }
170}