-
Notifications
You must be signed in to change notification settings - Fork 0
/
native.xsd
207 lines (186 loc) · 7.29 KB
/
native.xsd
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?xml version="1.0"?>
<!--
* plugins/importexport/native/native.xsd
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Schema describing native XML import/export elements specific to OJS
-->
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://pkp.sfu.ca" xmlns:pkp="http://pkp.sfu.ca" elementFormDefault="qualified">
<!--
- Base the native import/export schema on the PKP submission model.
-->
<include schemaLocation="./pkp-native.xsd" />
<!-- Allow the use of "article" in place of "submission" -->
<element name="article" substitutionGroup="pkp:submission">
<complexType>
<complexContent>
<extension base="pkp:submission">
<attribute name="stage" use="required">
<simpleType>
<restriction base="string">
<enumeration value="submission" />
<enumeration value="externalReview" />
<enumeration value="editorial" />
<enumeration value="production" />
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="articles" substitutionGroup="pkp:submissions" />
<!-- Permit "citation" as a root element to keep the filters happy -->
<element name="citation" type="string" />
<element name="publication" substitutionGroup="pkp:pkppublication">
<complexType>
<complexContent>
<extension base="pkp:pkppublication">
<sequence>
<element ref="pkp:issue_identification" minOccurs="0" maxOccurs="1" />
<element maxOccurs="1" minOccurs="0" name="pages" type="string" />
<element ref="pkp:covers" minOccurs="0" maxOccurs="1" />
<element maxOccurs="1" minOccurs="0" name="issueId" type="int" />
</sequence>
<attribute name="section_ref" type="string" use="required" />
<attribute name="seq" type="int" />
<attribute name="access_status" type="int" />
</extension>
</complexContent>
</complexType>
</element>
<!-- Configure the use of the "article_galley" representation -->
<element name="article_galley" substitutionGroup="pkp:representation">
<complexType>
<complexContent>
<extension base="pkp:representation">
<attribute name="approved" type="boolean"/>
<attribute name="galley_type" type="string"/>
</extension>
</complexContent>
</complexType>
</element>
<!--
- Composite / root elements
-->
<!-- Permit "issues" as a root element -->
<element name="issues">
<complexType>
<sequence>
<element ref="pkp:issue" maxOccurs="unbounded" />
</sequence>
</complexType>
</element>
<complexType name="issue">
<sequence>
<element ref="pkp:id" minOccurs="0" maxOccurs="unbounded" />
<element name="description" type="pkp:localizedNode" minOccurs="0" maxOccurs="unbounded" />
<element ref="pkp:issue_identification" minOccurs="1" maxOccurs="1" />
<!-- Metadata -->
<element name="date_published" type="date" minOccurs="0" maxOccurs="1" />
<element name="date_notified" type="date" minOccurs="0" maxOccurs="1" />
<element name="last_modified" type="date" minOccurs="0" maxOccurs="1" />
<element name="open_access_date" type="date" minOccurs="0" maxOccurs="1" />
<!-- sub elements -->
<element ref="pkp:sections" minOccurs="0" maxOccurs="1" />
<element ref="pkp:covers" minOccurs="0" maxOccurs="1" />
<element ref="pkp:issue_galleys" minOccurs="0" maxOccurs="1" />
<element ref="pkp:articles" minOccurs="1" maxOccurs="1" />
</sequence>
<attribute name="journal_id" type="int" use="optional" />
<attribute name="published" type="int" use="optional" />
<attribute name="current" type="int" use="optional" />
<attribute name="access_status" type="int" use="optional" />
<attribute name="url_path" type="string" use="optional" />
</complexType>
<element name="issue_identification">
<complexType>
<sequence>
<element name="volume" type="int" minOccurs="0" maxOccurs="1" />
<element name="number" type="string" minOccurs="0" maxOccurs="1" />
<element name="year" type="int" minOccurs="0" maxOccurs="1" />
<element name="title" type="pkp:localizedNode" minOccurs="0" maxOccurs="unbounded" />
</sequence>
</complexType>
</element>
<complexType name="issue_galley">
<sequence>
<element name="label" type="string" minOccurs="1" maxOccurs="1" />
<element ref="pkp:id" minOccurs="0" maxOccurs="unbounded" />
<element ref="pkp:issue_file" minOccurs="0" maxOccurs="1" />
</sequence>
<attribute name="locale" type="string" />
</complexType>
<complexType name="issue_file">
<sequence>
<element name="file_name" type="string" minOccurs="1" maxOccurs="1" />
<element name="file_type" type="string" minOccurs="1" maxOccurs="1" />
<element name="file_size" type="int" minOccurs="1" maxOccurs="1" />
<element name="content_type" type="int" minOccurs="1" maxOccurs="1" />
<element name="original_file_name" type="string" minOccurs="1" maxOccurs="1" />
<element name="date_uploaded" type="date" minOccurs="1" maxOccurs="1" />
<element name="date_modified" type="date" minOccurs="1" maxOccurs="1" />
<element name="embed" type="pkp:embed" />
</sequence>
</complexType>
<element name="covers">
<complexType>
<sequence>
<element ref="pkp:cover" minOccurs="1" maxOccurs="unbounded" />
</sequence>
</complexType>
</element>
<element name="cover">
<complexType>
<sequence>
<element name="cover_image" type="string" minOccurs="1" maxOccurs="1" />
<element name="cover_image_alt_text" type="string" minOccurs="1" maxOccurs="1" />
<element name="embed" type="pkp:embed" />
</sequence>
<attribute name="locale" type="string" />
</complexType>
</element>
<element name="issue_galleys">
<complexType>
<sequence>
<element ref="pkp:issue_galley" minOccurs="0" maxOccurs="unbounded" />
</sequence>
</complexType>
</element>
<element name="sections">
<complexType>
<sequence>
<element ref="pkp:section" maxOccurs="unbounded" />
</sequence>
</complexType>
</element>
<complexType name="section">
<sequence>
<element ref="pkp:id" minOccurs="0" maxOccurs="unbounded" />
<element name="abbrev" type="pkp:localizedNode" minOccurs="0" maxOccurs="unbounded" />
<element name="policy" type="pkp:localizedNode" minOccurs="0" maxOccurs="unbounded" />
<element name="title" type="pkp:localizedNode" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="ref" type="string" />
<attribute name="review_form_id" type="int" use="optional" />
<attribute name="seq" type="string" />
<attribute name="editor_restricted" type="int" />
<attribute name="meta_indexed" type="int" />
<attribute name="meta_reviewed" type="int" />
<attribute name="abstracts_not_required" type="int" />
<attribute name="hide_title" type="int" />
<attribute name="hide_author" type="int" />
<attribute name="abstract_word_count" type="int" />
</complexType>
<!-- Permit "issue" as a root element -->
<element name="issue" type="pkp:issue" />
<!-- Permit "issue_galley" as a root element -->
<element name="issue_galley" type="pkp:issue_galley" />
<!-- Permit "issue_file" as a root element -->
<element name="issue_file" type="pkp:issue_file" />
<!-- Permit "section" as a root element -->
<element name="section" type="pkp:section" />
</schema>