Project

General

Profile

« Previous | Next » 

Revision 5657

schemas/vegbien.sql: Link taxondetermination to taxonverbatim (which is a subclass of taxonlabel) instead of directly to taxonlabel. This will enable later having multiple taxonverbatims for one taxonlabel.

View differences:

test.xml.ref
116 116
                        </growthform>
117 117
                        <sourceaccessioncode>$PlotObsID</sourceaccessioncode>
118 118
                        <taxondetermination>
119
                            <taxonlabel_id>
120
                                <taxonlabel>
121
                                    <matched_label_id>
119
                            <taxonverbatim_id>
120
                                <taxonverbatim>
121
                                    <taxonlabel_id>
122 122
                                        <taxonlabel>
123
                                            <creator_id>
124
                                                <party>
125
                                                    <creator_id>0</creator_id>
126
                                                    <organizationname>TNRS</organizationname>
127
                                                </party>
128
                                            </creator_id>
129
                                            <taxonomicname>
130
                                                <_join_words>
131
                                                    <1>
123
                                            <matched_label_id>
124
                                                <taxonlabel>
125
                                                    <creator_id>
126
                                                        <party>
127
                                                            <creator_id>0</creator_id>
128
                                                            <organizationname>TNRS</organizationname>
129
                                                        </party>
130
                                                    </creator_id>
131
                                                    <taxonomicname>
132 132
                                                        <_join_words>
133
                                                            <1>$Family</1>
134
                                                            <2>$Genus</2>
135
                                                            <3>$Species</3>
136
                                                            <5>
133
                                                            <1>
137 134
                                                                <_join_words>
138
                                                                    <1>
139
                                                                        <_if name="if has infraspecificEpithet">
140
                                                                            <cond>$infra_ep_1</cond>
141
                                                                            <then>$infra_rank_1</then>
142
                                                                        </_if>
143
                                                                    </1>
144
                                                                    <2>$infra_ep_1</2>
135
                                                                    <1>$Family</1>
136
                                                                    <2>$Genus</2>
137
                                                                    <3>$Species</3>
138
                                                                    <5>
139
                                                                        <_join_words>
140
                                                                            <1>
141
                                                                                <_if name="if has infraspecificEpithet">
142
                                                                                    <cond>$infra_ep_1</cond>
143
                                                                                    <then>$infra_rank_1</then>
144
                                                                                </_if>
145
                                                                            </1>
146
                                                                            <2>$infra_ep_1</2>
147
                                                                        </_join_words>
148
                                                                    </5>
145 149
                                                                </_join_words>
146
                                                            </5>
150
                                                            </1>
151
                                                            <2>$auth</2>
147 152
                                                        </_join_words>
148
                                                    </1>
149
                                                    <2>$auth</2>
150
                                                </_join_words>
151
                                            </taxonomicname>
152
                                        </taxonlabel>
153
                                    </matched_label_id>
154
                                    <parent_id>
155
                                        <taxonlabel>
156
                                            <rank>$infra_rank_1</rank>
157
                                            <taxonverbatim><verbatimrank>$infra_rank_1</verbatimrank></taxonverbatim>
153
                                                    </taxonomicname>
154
                                                </taxonlabel>
155
                                            </matched_label_id>
158 156
                                            <parent_id>
159 157
                                                <taxonlabel>
160
                                                    <rank>cultivar</rank>
158
                                                    <rank>$infra_rank_1</rank>
159
                                                    <taxonverbatim><verbatimrank>$infra_rank_1</verbatimrank></taxonverbatim>
161 160
                                                    <parent_id>
162 161
                                                        <taxonlabel>
163
                                                            <rank>forma</rank>
162
                                                            <rank>cultivar</rank>
164 163
                                                            <parent_id>
165 164
                                                                <taxonlabel>
166
                                                                    <rank>variety</rank>
165
                                                                    <rank>forma</rank>
167 166
                                                                    <parent_id>
168 167
                                                                        <taxonlabel>
169
                                                                            <rank>subspecies</rank>
168
                                                                            <rank>variety</rank>
170 169
                                                                            <parent_id>
171 170
                                                                                <taxonlabel>
172
                                                                                    <rank>species</rank>
173
                                                                                    <taxonepithet>$Species</taxonepithet>
171
                                                                                    <rank>subspecies</rank>
174 172
                                                                                    <parent_id>
175 173
                                                                                        <taxonlabel>
176
                                                                                            <rank>genus</rank>
177
                                                                                            <taxonepithet>$Genus</taxonepithet>
174
                                                                                            <rank>species</rank>
175
                                                                                            <taxonepithet>$Species</taxonepithet>
178 176
                                                                                            <parent_id>
179 177
                                                                                                <taxonlabel>
180
                                                                                                    <rank>family</rank>
181
                                                                                                    <taxonepithet>$Family</taxonepithet>
178
                                                                                                    <rank>genus</rank>
179
                                                                                                    <taxonepithet>$Genus</taxonepithet>
180
                                                                                                    <parent_id>
181
                                                                                                        <taxonlabel>
182
                                                                                                            <rank>family</rank>
183
                                                                                                            <taxonepithet>$Family</taxonepithet>
184
                                                                                                        </taxonlabel>
185
                                                                                                    </parent_id>
182 186
                                                                                                </taxonlabel>
183 187
                                                                                            </parent_id>
184 188
                                                                                        </taxonlabel>
......
191 195
                                                            </parent_id>
192 196
                                                        </taxonlabel>
193 197
                                                    </parent_id>
198
                                                    <taxonepithet>$infra_ep_1</taxonepithet>
194 199
                                                </taxonlabel>
195 200
                                            </parent_id>
196
                                            <taxonepithet>$infra_ep_1</taxonepithet>
197
                                        </taxonlabel>
198
                                    </parent_id>
199
                                    <rank>$infra_rank_1</rank>
200
                                    <taxonomicname>
201
                                        <_join_words>
202
                                            <1>
201
                                            <rank>$infra_rank_1</rank>
202
                                            <taxonomicname>
203 203
                                                <_join_words>
204
                                                    <1>$Family</1>
205
                                                    <2>$Genus</2>
206
                                                    <3>$Species</3>
207
                                                    <5>
204
                                                    <1>
208 205
                                                        <_join_words>
209
                                                            <1>
210
                                                                <_if name="if has infraspecificEpithet">
211
                                                                    <cond>$infra_ep_1</cond>
212
                                                                    <then>$infra_rank_1</then>
213
                                                                </_if>
214
                                                            </1>
215
                                                            <2>$infra_ep_1</2>
206
                                                            <1>$Family</1>
207
                                                            <2>$Genus</2>
208
                                                            <3>$Species</3>
209
                                                            <5>
210
                                                                <_join_words>
211
                                                                    <1>
212
                                                                        <_if name="if has infraspecificEpithet">
213
                                                                            <cond>$infra_ep_1</cond>
214
                                                                            <then>$infra_rank_1</then>
215
                                                                        </_if>
216
                                                                    </1>
217
                                                                    <2>$infra_ep_1</2>
218
                                                                </_join_words>
219
                                                            </5>
216 220
                                                        </_join_words>
217
                                                    </5>
221
                                                    </1>
222
                                                    <2>$auth</2>
218 223
                                                </_join_words>
219
                                            </1>
220
                                            <2>$auth</2>
221
                                        </_join_words>
222
                                    </taxonomicname>
223
                                    <taxonverbatim>
224
                                        <author>$auth</author>
225
                                        <family>$Family</family>
226
                                        <genus>$Genus</genus>
227
                                        <species>$Species</species>
228
                                        <verbatimrank>$infra_rank_1</verbatimrank>
229
                                    </taxonverbatim>
230
                                </taxonlabel>
231
                            </taxonlabel_id>
224
                                            </taxonomicname>
225
                                        </taxonlabel>
226
                                    </taxonlabel_id>
227
                                    <author>$auth</author>
228
                                    <family>$Family</family>
229
                                    <genus>$Genus</genus>
230
                                    <species>$Species</species>
231
                                    <verbatimrank>$infra_rank_1</verbatimrank>
232
                                </taxonverbatim>
233
                            </taxonverbatim_id>
232 234
                            <taxonfit>$cfaff</taxonfit>
233 235
                        </taxondetermination>
234 236
                        <taxondetermination>
235 237
                            <isoriginal>true</isoriginal>
236
                            <taxonlabel_id>
237
                                <taxonlabel>
238
                                    <matched_label_id>
238
                            <taxonverbatim_id>
239
                                <taxonverbatim>
240
                                    <taxonlabel_id>
239 241
                                        <taxonlabel>
240
                                            <creator_id>
241
                                                <party>
242
                                                    <creator_id>0</creator_id>
243
                                                    <organizationname>TNRS</organizationname>
244
                                                </party>
245
                                            </creator_id>
246
                                            <taxonomicname>
247
                                                <_join_words>
248
                                                    <1>$OrigFamily</1>
249
                                                    <2>$OrigGenus</2>
250
                                                    <3>$OrigSpecies</3>
251
                                                </_join_words>
252
                                            </taxonomicname>
253
                                        </taxonlabel>
254
                                    </matched_label_id>
255
                                    <parent_id>
256
                                        <taxonlabel>
242
                                            <matched_label_id>
243
                                                <taxonlabel>
244
                                                    <creator_id>
245
                                                        <party>
246
                                                            <creator_id>0</creator_id>
247
                                                            <organizationname>TNRS</organizationname>
248
                                                        </party>
249
                                                    </creator_id>
250
                                                    <taxonomicname>
251
                                                        <_join_words>
252
                                                            <1>$OrigFamily</1>
253
                                                            <2>$OrigGenus</2>
254
                                                            <3>$OrigSpecies</3>
255
                                                        </_join_words>
256
                                                    </taxonomicname>
257
                                                </taxonlabel>
258
                                            </matched_label_id>
257 259
                                            <parent_id>
258 260
                                                <taxonlabel>
259
                                                    <rank>cultivar</rank>
260 261
                                                    <parent_id>
261 262
                                                        <taxonlabel>
262
                                                            <rank>forma</rank>
263
                                                            <rank>cultivar</rank>
263 264
                                                            <parent_id>
264 265
                                                                <taxonlabel>
265
                                                                    <rank>variety</rank>
266
                                                                    <rank>forma</rank>
266 267
                                                                    <parent_id>
267 268
                                                                        <taxonlabel>
268
                                                                            <rank>subspecies</rank>
269
                                                                            <rank>variety</rank>
269 270
                                                                            <parent_id>
270 271
                                                                                <taxonlabel>
271
                                                                                    <rank>species</rank>
272
                                                                                    <taxonepithet>$OrigSpecies</taxonepithet>
272
                                                                                    <rank>subspecies</rank>
273 273
                                                                                    <parent_id>
274 274
                                                                                        <taxonlabel>
275
                                                                                            <rank>genus</rank>
276
                                                                                            <taxonepithet>$OrigGenus</taxonepithet>
275
                                                                                            <rank>species</rank>
276
                                                                                            <taxonepithet>$OrigSpecies</taxonepithet>
277 277
                                                                                            <parent_id>
278 278
                                                                                                <taxonlabel>
279
                                                                                                    <rank>family</rank>
280
                                                                                                    <taxonepithet>$OrigFamily</taxonepithet>
279
                                                                                                    <rank>genus</rank>
280
                                                                                                    <taxonepithet>$OrigGenus</taxonepithet>
281
                                                                                                    <parent_id>
282
                                                                                                        <taxonlabel>
283
                                                                                                            <rank>family</rank>
284
                                                                                                            <taxonepithet>$OrigFamily</taxonepithet>
285
                                                                                                        </taxonlabel>
286
                                                                                                    </parent_id>
281 287
                                                                                                </taxonlabel>
282 288
                                                                                            </parent_id>
283 289
                                                                                        </taxonlabel>
......
292 298
                                                    </parent_id>
293 299
                                                </taxonlabel>
294 300
                                            </parent_id>
301
                                            <taxonomicname>
302
                                                <_join_words>
303
                                                    <1>$OrigFamily</1>
304
                                                    <2>$OrigGenus</2>
305
                                                    <3>$OrigSpecies</3>
306
                                                </_join_words>
307
                                            </taxonomicname>
295 308
                                        </taxonlabel>
296
                                    </parent_id>
297
                                    <taxonomicname>
298
                                        <_join_words>
299
                                            <1>$OrigFamily</1>
300
                                            <2>$OrigGenus</2>
301
                                            <3>$OrigSpecies</3>
302
                                        </_join_words>
303
                                    </taxonomicname>
304
                                    <taxonverbatim>
305
                                        <family>$OrigFamily</family>
306
                                        <genus>$OrigGenus</genus>
307
                                        <species>$OrigSpecies</species>
308
                                    </taxonverbatim>
309
                                </taxonlabel>
310
                            </taxonlabel_id>
309
                                    </taxonlabel_id>
310
                                    <family>$OrigFamily</family>
311
                                    <genus>$OrigGenus</genus>
312
                                    <species>$OrigSpecies</species>
313
                                </taxonverbatim>
314
                            </taxonverbatim_id>
311 315
                        </taxondetermination>
312 316
                        <verbatimcollectorname>
313 317
                            <_join_words>

Also available in: Unified diff