-
Notifications
You must be signed in to change notification settings - Fork 0
/
timetracking.xsd
277 lines (229 loc) · 16.5 KB
/
timetracking.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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="https://www.w3schools.com"
elementFormDefault="qualified">
<xs:element name="work">
<xs:complexType>
<xs:sequence>
<xs:element name="year" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="quarter" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="week" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="task" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="task_name" type="xs:string">
<xs:annotation>
<xs:documentation>Provide a name for this discrete
task.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description">
<xs:complexType>
<xs:sequence>
<xs:element name="platform" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Record the software platform(s)
involved in this task.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="id" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="OD"/>
<xs:enumeration value="SA"/>
<xs:enumeration value="OJS"/>
<xs:enumeration value="Canvas"/>
<xs:enumeration value="other"/>
<xs:enumeration value="n/a"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="project" type="xs:string"
minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Use to refer to the larger
project this task is a part of.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="pd_area">
<xs:annotation>
<xs:documentation>Use to sort a task into a major
area of responsibility per position description.
Only one permitted, for purposes of
reporting.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Repositories"/>
<xs:enumeration value="Metadata"/>
<xs:enumeration value="Digital Publishing"/>
<xs:enumeration value="Scholarship"/>
<xs:enumeration value="Service"/>
<xs:enumeration value="Instruction"/>
<xs:enumeration value="Professional Development"/>
<xs:enumeration value="Admin"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="pd_subarea" type="xs:string"
minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Use to sort a task into a
narrower category within a PD area. Useful for
reporting.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="reference" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Provide a link or other
reference to a related ticket, document, etc.
Provide a label for each reference and a link or
path to the document if
appropriate.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="label" type="xs:string"/>
<xs:element name="link" type="xs:string"
minOccurs="0"/>
<xs:element name="path" type="xs:string"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tracking">
<xs:complexType>
<xs:sequence>
<xs:element name="time" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:annotation>
<xs:documentation>Use to track the amount of time
spent on a task. Useful for balancing
FTE.</xs:documentation>
<xs:documentation>Repeat 'time' and its
subelements when working on the same task within
the same week.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="start" type="xs:time"/>
<xs:element name="end" type="xs:time"/>
</xs:sequence>
<xs:attribute name="date" type="xs:date"
use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reporting">
<xs:complexType>
<xs:sequence>
<xs:element name="reporting_level">
<xs:complexType>
<xs:annotation>
<xs:documentation>Use to record the highest level
of reports the task should be included
in.</xs:documentation>
</xs:annotation>
<xs:attribute name="value">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="weekly"/>
<xs:enumeration value="quarterly"/>
<xs:enumeration value="annual"/>
<xs:enumeration value="dossier"/>
<xs:enumeration value="none"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="narrative" type="xs:string"
minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Record a text blurb for use in
reports.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="data" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Use to quantify a task. Provide
a label and a value for each data
point.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="label" type="xs:string"/>
<xs:element name="quantity" type="xs:integer"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="citation" type="xs:string"
minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Use for a formal citation of an
article of scholarship produced or event
attended.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="special" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="edi"/>
<xs:enumeration value="tenure"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="is_meeting" type="xs:boolean"
default="false" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="monday" type="xs:date"
use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Winter"/>
<!-- Jan/Feb/Mar -->
<xs:enumeration value="Spring"/>
<!-- Apr/May/Jun -->
<xs:enumeration value="Summer"/>
<!-- Jul/Aug/Sep -->
<xs:enumeration value="Fall"/>
<!-- Oct/Nov/Dec -->
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="calendar" type="xs:integer" use="required"/>
<xs:attribute name="fiscal" type="xs:integer" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>