-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvalidation.xml
221 lines (213 loc) · 6.39 KB
/
validation.xml
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
<ValidationSchema>
<ArchaeologicalElement name='Context'>
<property name='Context Type'>
<validator type='blankchecker'>
<param type='field' value='vocab' />
</validator>
</property>
<property name='Date Closed'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Date Opened'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Excavation Method'>
<validator type='blankchecker'>
<param type='field' value='vocab' />
</validator>
</property>
<property name='Context Comments'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Your description'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Excavator'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Highest Level NW'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Highest Level NE'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Highest Level SE'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Highest Level SW'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Highest Level Ctr'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Lowest Level NW'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Lowest Level NE'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Lowest Level Ctr'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Lowest Level SE'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Lowest Level SW'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Length'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Width'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Depth'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Volume'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Your Discussion'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Start date'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='End date'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Phase From'>
<validator type='blankchecker'>
<param type='field' value='vocab' />
</validator>
</property>
<property name='Phase To'>
<validator type='blankchecker'>
<param type='field' value='vocab' />
</validator>
</property>
<property name='Photo'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Type of Definition'>
<validator type='blankchecker'>
<param type='field' value='vocab' />
</validator>
</property>
<property name='Grid Location Reference'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<!--
<property name='Shape of Cut'>
<validator type='querychecker'>
<query><![CDATA[ select count(vocabname) = 0 or count(vocabname) = 2, 'Shape of cut must not be blank when cut is selected'
from latestnondeletedaentvalue join attributekey using (attributeid)
join vocabulary using (vocabid, attributeid)
where uuid = ?
and ( (attributename = 'Context Type' and vocabname = '{Cut}')
OR (attributename = 'Shape of Cut')
);
]]></query>
<param type='query' value='select uuid from archentity where uuid = ? and aenttimestamp = ?' />
</validator>
</property>
-->
</ArchaeologicalElement>
<ArchaeologicalElement name='Context Group'>
<property name='Description'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Length'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Width'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Depth'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Your Discussion'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='Start Date'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='End Date'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
<property name='CG Phase From'>
<validator type='blankchecker'>
<param type='field' value='vocab' />
</validator>
</property>
</ArchaeologicalElement>
<ArchaeologicalElement name='Artefact'>
<property name='Photo'>
<validator type='blankchecker'>
<param type='field' value='measure' />
</validator>
</property>
</ArchaeologicalElement>
</ValidationSchema>