Project

General

Profile

« Previous | Next » 

Revision 9882

mappings/VegCore-VegBIEN.csv: genus->taxonlabel.taxonomicname: filter out genera that contain numbers (using new _filter_genus()), which break TNRS and prevent it from matching any other parts of the name. later, these genera can instead be moved to the end of the name, where TNRS will correctly match them as Unmatched_terms.

View differences:

test.xml.ref
1 1
Put template:
2
<VegBIEN>
3
    <location id="-1">
4
        <authorlocationcode>
5
            <_merge>
6
                <1>$InstitutionCode</1>
7
                <2>$CollectionCode</2>
8
                <3>$CatalogNumber</3>
9
            </_merge>
10
        </authorlocationcode>
11
        <elevation>
12
            <_avg>
13
                <max>
14
                    <_units>
15
                        <default>m</default>
16
                        <to>m</to>
17
                        <to></to>
18
                        <value>
19
                            <_replace>
20
                                <\bca\.?></\bca\.?>
21
                                <value>$MaximumElevation</value>
22
                            </_replace>
23
                        </value>
24
                    </_units>
25
                </max>
26
                <min>
27
                    <_units>
28
                        <default>m</default>
29
                        <to>m</to>
30
                        <to></to>
31
                        <value>
32
                            <_rangeStart>
33
                                <value>
34
                                    <_replace>
35
                                        <\bca\.?></\bca\.?>
36
                                        <value>$MinimumElevation</value>
37
                                    </_replace>
38
                                </value>
39
                            </_rangeStart>
40
                        </value>
41
                    </_units>
42
                </min>
43
            </_avg>
44
        </elevation>
45
        <elevationrange>
46
            <_range>
47
                <from>
48
                    <_units>
49
                        <default>m</default>
50
                        <to>m</to>
51
                        <to></to>
52
                        <value>
53
                            <_rangeStart>
54
                                <value>
55
                                    <_replace>
56
                                        <\bca\.?></\bca\.?>
57
                                        <value>$MinimumElevation</value>
58
                                    </_replace>
59
                                </value>
60
                            </_rangeStart>
61
                        </value>
62
                    </_units>
63
                </from>
64
                <to>
65
                    <_units>
66
                        <default>m</default>
67
                        <to>m</to>
68
                        <to></to>
69
                        <value>
70
                            <_alt>
71
                                <1>
72
                                    <_replace>
73
                                        <\bca\.?></\bca\.?>
74
                                        <value>$MaximumElevation</value>
75
                                    </_replace>
76
                                </1>
77
                                <2>
78
                                    <_rangeEnd>
79
                                        <value>
80
                                            <_replace>
81
                                                <\bca\.?></\bca\.?>
82
                                                <value>$MinimumElevation</value>
83
                                            </_replace>
84
                                        </value>
85
                                    </_rangeEnd>
86
                                </2>
87
                            </_alt>
88
                        </value>
89
                    </_units>
90
                </to>
91
            </_range>
92
        </elevationrange>
93
        <locationdetermination>
94
            <coordsaccuracy><_noCV><value>$CoordinatePrecision</value></_noCV></coordsaccuracy>
95
            <latitude>
96
                <_nullIf>
97
                    <null>0</null>
98
                    <type>float</type>
99
                    <value>$Latitude</value>
100
                </_nullIf>
101
            </latitude>
102
            <longitude>
103
                <_nullIf>
104
                    <null>0</null>
105
                    <type>float</type>
106
                    <value>$Longitude</value>
107
                </_nullIf>
108
            </longitude>
109
            <namedplace_id>
110
                <_simplifyPath>
111
                    <next>parent_id/namedplace</next>
112
                    <require>placename</require>
113
                    <path>
114
                        <namedplace>
115
                            <rank>county</rank>
116
                            <placename>$County</placename>
117
                            <parent_id>
118
                                <namedplace>
119
                                    <rank>stateProvince</rank>
120
                                    <placename>$StateProvince</placename>
121
                                    <parent_id>
122
                                        <namedplace>
123
                                            <rank>country</rank>
124
                                            <placename>$Country</placename>
125
                                            <parent_id>
126
                                                <namedplace>
127
                                                    <rank>continent</rank>
128
                                                    <placename>$ContinentOcean</placename>
129
                                                </namedplace>
130
                                            </parent_id>
131
                                        </namedplace>
132
                                    </parent_id>
133
                                </namedplace>
134
                            </parent_id>
135
                        </namedplace>
136
                    </path>
137
                </_simplifyPath>
138
            </namedplace_id>
139
        </locationdetermination>
140
        <locationevent>
141
            <obsenddate>
142
                <_date>
143
                    <date>
144
                        <_dateRangeEnd>
145
                            <value>
146
                                <_date>
147
                                    <day>
148
                                        <_nullIf>
149
                                            <null>0</null>
150
                                            <type>float</type>
151
                                            <value>$DayCollected</value>
152
                                        </_nullIf>
153
                                    </day>
154
                                    <month>
155
                                        <_nullIf>
156
                                            <null>0</null>
157
                                            <type>float</type>
158
                                            <value>$MonthCollected</value>
159
                                        </_nullIf>
160
                                    </month>
161
                                    <year>
162
                                        <_nullIf>
163
                                            <null>0</null>
164
                                            <type>float</type>
165
                                            <value>$YearCollected</value>
166
                                        </_nullIf>
167
                                    </year>
168
                                </_date>
169
                            </value>
170
                        </_dateRangeEnd>
171
                    </date>
172
                </_date>
173
            </obsenddate>
174
            <obsstartdate>
175
                <_date>
176
                    <date>
177
                        <_dateRangeStart>
178
                            <value>
179
                                <_date>
180
                                    <day>
181
                                        <_nullIf>
182
                                            <null>0</null>
183
                                            <type>float</type>
184
                                            <value>$DayCollected</value>
185
                                        </_nullIf>
186
                                    </day>
187
                                    <month>
188
                                        <_nullIf>
189
                                            <null>0</null>
190
                                            <type>float</type>
191
                                            <value>$MonthCollected</value>
192
                                        </_nullIf>
193
                                    </month>
194
                                    <year>
195
                                        <_nullIf>
196
                                            <null>0</null>
197
                                            <type>float</type>
198
                                            <value>$YearCollected</value>
199
                                        </_nullIf>
200
                                    </year>
201
                                </_date>
202
                            </value>
203
                        </_dateRangeStart>
204
                    </date>
205
                </_date>
206
            </obsstartdate>
207
            <taxonoccurrence>
208
                <aggregateoccurrence>
209
                    <collectiondate>
210
                        <_date>
211
                            <date>
212
                                <_date>
213
                                    <day>
214
                                        <_nullIf>
215
                                            <null>0</null>
216
                                            <type>float</type>
217
                                            <value>$DayCollected</value>
218
                                        </_nullIf>
219
                                    </day>
220
                                    <month>
221
                                        <_nullIf>
222
                                            <null>0</null>
223
                                            <type>float</type>
224
                                            <value>$MonthCollected</value>
225
                                        </_nullIf>
226
                                    </month>
227
                                    <year>
228
                                        <_nullIf>
229
                                            <null>0</null>
230
                                            <type>float</type>
231
                                            <value>$YearCollected</value>
232
                                        </_nullIf>
233
                                    </year>
234
                                </_date>
235
                            </date>
236
                        </_date>
237
                    </collectiondate>
238
                    <count>$IndividualCount</count>
239
                    <notes>$Notes</notes>
240
                    <plantobservation>
241
                        <collectionnumber>
242
                            <_alt>
243
                                <1>$CollectorNumber</1>
244
                                <2>$FieldNumber</2>
245
                            </_alt>
246
                        </collectionnumber>
247
                        <definedvalue fkey="tablerecord_id">
248
                            <userdefined_id>
249
                                <userdefined>
250
                                    <tablename>plantobservation</tablename>
251
                                    <userdefinedname>sex</userdefinedname>
252
                                </userdefined>
253
                            </userdefined_id>
254
                            <definedvalue>$Sex</definedvalue>
255
                        </definedvalue>
256
                        <specimenreplicate>
257
                            <catalognumber_dwc>$CatalogNumber</catalognumber_dwc>
258
                            <collectioncode_dwc>$CollectionCode</collectioncode_dwc>
259
                            <institution_id><party><organizationname>$InstitutionCode</organizationname></party></institution_id>
260
                        </specimenreplicate>
261
                    </plantobservation>
262
                </aggregateoccurrence>
263
                <authortaxoncode>
264
                    <_alt>
265
                        <1>
266
                            <_alt>
267
                                <1>$CollectorNumber</1>
268
                                <2>$FieldNumber</2>
269
                            </_alt>
270
                        </1>
271
                        <2>$ScientificName</2>
272
                    </_alt>
273
                </authortaxoncode>
274
                <taxondetermination>
275
                    <party_id>
276
                        <party>
277
                            <givenname><_namePart><first>$IdentifiedBy</first></_namePart></givenname>
278
                            <middlename><_namePart><middle>$IdentifiedBy</middle></_namePart></middlename>
279
                            <surname><_namePart><last>$IdentifiedBy</last></_namePart></surname>
280
                        </party>
281
                    </party_id>
282
                    <plantconcept_id>
283
                        <plantconcept>
284
                            <plantname_id>
285
                                <_simplifyPath>
286
                                    <next>parent_id</next>
287
                                    <path>
288
                                        <plantname>
289
                                            <rank>binomial</rank>
290
                                            <plantname>$ScientificName</plantname>
291
                                            <parent_id>
292
                                                <plantname>
293
                                                    <rank>authority</rank>
294
                                                    <plantname>$ScientificNameAuthor</plantname>
295
                                                    <parent_id>
296
                                                        <plantname>
297
                                                            <rank>subspecies</rank>
298
                                                            <plantname>$Subspecies</plantname>
299
                                                            <parent_id>
300
                                                                <plantname>
301
                                                                    <rank>species</rank>
302
                                                                    <plantname>$Species</plantname>
303
                                                                    <parent_id>
304
                                                                        <plantname>
305
                                                                            <rank>genus</rank>
306
                                                                            <plantname>$Genus</plantname>
307
                                                                            <parent_id>
308
                                                                                <plantname>
309
                                                                                    <rank>family</rank>
310
                                                                                    <plantname>$Family</plantname>
311
                                                                                    <parent_id>
312
                                                                                        <plantname>
313
                                                                                            <rank>order</rank>
314
                                                                                            <plantname>$Order</plantname>
315
                                                                                            <parent_id>
316
                                                                                                <plantname>
317
                                                                                                    <rank>class</rank>
318
                                                                                                    <plantname>$Class</plantname>
319
                                                                                                    <parent_id>
320
                                                                                                        <plantname>
321
                                                                                                            <rank>subkingdom</rank>
322
                                                                                                            <plantname>$Phylum</plantname>
323
                                                                                                            <parent_id>
324
                                                                                                                <plantname>
325
                                                                                                                    <rank>kingdom</rank>
326
                                                                                                                    <plantname>$Kingdom</plantname>
327
                                                                                                                </plantname>
328
                                                                                                            </parent_id>
329
                                                                                                        </plantname>
330
                                                                                                    </parent_id>
331
                                                                                                </plantname>
332
                                                                                            </parent_id>
333
                                                                                        </plantname>
334
                                                                                    </parent_id>
335
                                                                                </plantname>
336
                                                                            </parent_id>
337
                                                                        </plantname>
338
                                                                    </parent_id>
339
                                                                </plantname>
340
                                                            </parent_id>
341
                                                        </plantname>
342
                                                    </parent_id>
343
                                                </plantname>
344
                                            </parent_id>
345
                                        </plantname>
346
                                    </path>
347
                                </_simplifyPath>
348
                            </plantname_id>
349
                        </plantconcept>
350
                    </plantconcept_id>
351
                    <determinationdate>
352
                        <_date>
353
                            <date>
354
                                <_dateRangeStart>
355
                                    <value>
356
                                        <_date>
357
                                            <day>
358
                                                <_nullIf>
359
                                                    <null>0</null>
360
                                                    <type>float</type>
361
                                                    <value>$DayIdentified</value>
362
                                                </_nullIf>
363
                                            </day>
364
                                            <month>
365
                                                <_nullIf>
366
                                                    <null>0</null>
367
                                                    <type>float</type>
368
                                                    <value>$MonthIdentified</value>
369
                                                </_nullIf>
370
                                            </month>
371
                                            <year>
372
                                                <_nullIf>
373
                                                    <null>0</null>
374
                                                    <type>float</type>
375
                                                    <value>$YearIdentified</value>
376
                                                </_nullIf>
377
                                            </year>
378
                                        </_date>
379
                                    </value>
380
                                </_dateRangeStart>
381
                            </date>
382
                        </_date>
383
                    </determinationdate>
384
                </taxondetermination>
385
                <verbatimcollectorname>$Collector</verbatimcollectorname>
386
            </taxonoccurrence>
387
            <waterdepth>
388
                <_avg>
389
                    <max>
390
                        <_units>
391
                            <default>m</default>
392
                            <to>m</to>
393
                            <to></to>
394
                            <value>
395
                                <_replace>
396
                                    <\bca\.?></\bca\.?>
397
                                    <value>$MaximumDepth</value>
398
                                </_replace>
399
                            </value>
400
                        </_units>
401
                    </max>
402
                    <min>
403
                        <_units>
404
                            <default>m</default>
405
                            <to>m</to>
406
                            <to></to>
407
                            <value>
408
                                <_replace>
409
                                    <\bca\.?></\bca\.?>
410
                                    <value>$MinimumDepth</value>
411
                                </_replace>
412
                            </value>
413
                        </_units>
414
                    </min>
415
                </_avg>
416
            </waterdepth>
417
        </locationevent>
418
        <locationnarrative>$Locality</locationnarrative>
419
    </location>
420
</VegBIEN>
421
Inserted 47 new rows into database
2
<VegBIEN/>Inserted 0 new rows into database

Also available in: Unified diff