Project

General

Profile

1 6342 aaronmk
Put template:
2
<VegBIEN>
3 6403 aaronmk
    <_setDefault id="-1">
4 10866 aaronmk
        <source_id><source><shortname>TRT.new</shortname></source></source_id>
5 6342 aaronmk
        <path>
6 6403 aaronmk
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9
                    <location>
10
                        <authorlocationcode>
11
                            <_alt>
12 10260 aaronmk
                                <1>$dataProviderRecordID</1>
13 6342 aaronmk
                                <2>
14
                                    <_join>
15 10260 aaronmk
                                        <1>$specimenHolderInstitutions</1>
16 6403 aaronmk
                                        <2>
17
                                            <_join>
18 10260 aaronmk
                                                <1>$collection</1>
19
                                                <2>$collectionURL</2>
20 6403 aaronmk
                                            </_join>
21
                                        </2>
22 10260 aaronmk
                                        <3>$accessionNumber</3>
23 6342 aaronmk
                                    </_join>
24
                                </2>
25 6403 aaronmk
                            </_alt>
26
                        </authorlocationcode>
27 6596 aaronmk
                        <accessconditions>$rights</accessconditions>
28 6403 aaronmk
                        <elevation_m>
29
                            <_alt>
30
                                <1>
31
                                    <_units>
32
                                        <to>m</to>
33
                                        <to></to>
34
                                        <value>$verbatimElevation</value>
35
                                    </_units>
36
                                </1>
37
                                <2>
38
                                    <_avg>
39 7703 aaronmk
                                        <1>$minimumElevationInMeters</1>
40
                                        <2>$maximumElevationInMeters</2>
41 6403 aaronmk
                                    </_avg>
42
                                </2>
43
                            </_alt>
44
                        </elevation_m>
45 6432 aaronmk
                        <iscultivated>
46
                            <_locationnarrative_is_cultivated>
47
                                <locationnarrative>
48
                                    <_join>
49
                                        <1>$locality</1>
50
                                        <3>$habitat</3>
51
                                    </_join>
52
                                </locationnarrative>
53
                            </_locationnarrative_is_cultivated>
54
                        </iscultivated>
55 6403 aaronmk
                        <locationevent>
56 11107 aaronmk
                            <locationevent fkey="parent_id">
57
                                <taxonoccurrence>
58
                                    <aggregateoccurrence>
59
                                        <collectiondate>$dateCollected</collectiondate>
60
                                        <notes>$occurrenceRemarks</notes>
61
                                        <plantobservation>
62
                                            <authorplantcode>$collectorNumber</authorplantcode>
63
                                            <definedvalue fkey="tablerecord_id">
64
                                                <userdefined_id>
65
                                                    <userdefined>
66
                                                        <tablename>plantobservation</tablename>
67
                                                        <userdefinedname>sex</userdefinedname>
68
                                                    </userdefined>
69
                                                </userdefined_id>
70
                                                <definedvalue>$sex</definedvalue>
71
                                            </definedvalue>
72
                                            <reproductivecondition>$reproductiveCondition</reproductivecondition>
73
                                            <specimenreplicate>
74
                                                <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
75
                                                <collectioncode_dwc>
76
                                                    <_alt>
77
                                                        <1>$collection</1>
78
                                                        <2>$collectionURL</2>
79
                                                    </_alt>
80
                                                </collectioncode_dwc>
81
                                                <collectionnumber>$collectorNumber</collectionnumber>
82
                                                <institution_id>
83
                                                    <sourcelist>
84
                                                        <name>$specimenHolderInstitutions</name>
85
                                                        <sourcename>
86
                                                            <name>
87
                                                                <_split>
88
                                                                    <separator>[,;] *</separator>
89
                                                                    <value>$specimenHolderInstitutions</value>
90
                                                                </_split>
91
                                                            </name>
92
                                                        </sourcename>
93
                                                    </sourcelist>
94
                                                </institution_id>
95
                                                <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
96
                                            </specimenreplicate>
97
                                        </plantobservation>
98
                                    </aggregateoccurrence>
99
                                    <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
100
                                    <iscultivated>
101
                                        <_map>
102
                                            <cultivated>t</cultivated>
103
                                            <wild>f</wild>
104
                                            <*></*>
105
                                            <value>$establishmentMeans</value>
106
                                        </_map>
107
                                    </iscultivated>
108
                                    <isnative>
109
                                        <_map>
110
                                            <native>t</native>
111
                                            <exotic>f</exotic>
112
                                            <*></*>
113
                                            <value>$establishmentMeans</value>
114
                                        </_map>
115
                                    </isnative>
116
                                    <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
117
                                    <taxondetermination>
118
                                        <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
119
                                        <taxonverbatim_id>
120
                                            <taxonverbatim>
121
                                                <taxonlabel_id>
122
                                                    <taxonlabel>
123
                                                        <parent_id>
124
                                                            <taxonlabel>
125
                                                                <rank>$taxonRank</rank>
126
                                                                <parent_id>
127
                                                                    <taxonlabel>
128
                                                                        <rank>cultivar</rank>
129
                                                                        <parent_id>
130
                                                                            <taxonlabel>
131
                                                                                <rank>forma</rank>
132
                                                                                <parent_id>
133
                                                                                    <taxonlabel>
134
                                                                                        <rank>variety</rank>
135
                                                                                        <parent_id>
136
                                                                                            <taxonlabel>
137
                                                                                                <rank>subspecies</rank>
138
                                                                                                <parent_id>
139
                                                                                                    <taxonlabel>
140
                                                                                                        <rank>species</rank>
141
                                                                                                        <taxonepithet>$specificEpithet</taxonepithet>
142
                                                                                                        <parent_id>
143
                                                                                                            <taxonlabel>
144
                                                                                                                <rank>genus</rank>
145
                                                                                                                <taxonepithet>$genus</taxonepithet>
146
                                                                                                                <parent_id>
147
                                                                                                                    <taxonlabel>
148
                                                                                                                        <rank>family</rank>
149
                                                                                                                        <taxonepithet>$family</taxonepithet>
150
                                                                                                                        <parent_id>
151
                                                                                                                            <taxonlabel>
152
                                                                                                                                <rank>order</rank>
153
                                                                                                                                <parent_id>
154
                                                                                                                                    <taxonlabel>
155
                                                                                                                                        <rank>class</rank>
156
                                                                                                                                        <parent_id>
157
                                                                                                                                            <taxonlabel>
158
                                                                                                                                                <rank>phylum</rank>
159
                                                                                                                                                <parent_id>
160
                                                                                                                                                    <taxonlabel>
161
                                                                                                                                                        <rank>kingdom</rank>
162
                                                                                                                                                        <taxonepithet>$kingdom</taxonepithet>
163
                                                                                                                                                    </taxonlabel>
164
                                                                                                                                                </parent_id>
165
                                                                                                                                            </taxonlabel>
166
                                                                                                                                        </parent_id>
167
                                                                                                                                    </taxonlabel>
168
                                                                                                                                </parent_id>
169
                                                                                                                            </taxonlabel>
170
                                                                                                                        </parent_id>
171
                                                                                                                    </taxonlabel>
172
                                                                                                                </parent_id>
173
                                                                                                            </taxonlabel>
174
                                                                                                        </parent_id>
175
                                                                                                    </taxonlabel>
176
                                                                                                </parent_id>
177
                                                                                            </taxonlabel>
178
                                                                                        </parent_id>
179
                                                                                    </taxonlabel>
180
                                                                                </parent_id>
181
                                                                            </taxonlabel>
182
                                                                        </parent_id>
183
                                                                    </taxonlabel>
184
                                                                </parent_id>
185
                                                                <taxonepithet>$infraspecificEpithet</taxonepithet>
186
                                                            </taxonlabel>
187
                                                        </parent_id>
188
                                                        <rank>$taxonRank</rank>
189
                                                        <taxonomicname>
190
                                                            <_merge_prefix>
191
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
192
                                                                <value>
193
                                                                    <_alt>
194
                                                                        <1>$scientificName</1>
195
                                                                        <2>
196
                                                                            <_join_words>
197
                                                                                <1>
198
                                                                                    <_join_words>
199
                                                                                        <2><_filter_genus><value>$genus</value></_filter_genus></2>
200
                                                                                        <3>$specificEpithet</3>
201
                                                                                        <5>
202
                                                                                            <_join_words>
203
                                                                                                <1>
204
                                                                                                    <_if name="if has infraspecificEpithet">
205
                                                                                                        <cond>$infraspecificEpithet</cond>
206
                                                                                                        <then>$taxonRank</then>
207
                                                                                                    </_if>
208
                                                                                                </1>
209
                                                                                                <2>$infraspecificEpithet</2>
210
                                                                                            </_join_words>
211
                                                                                        </5>
212
                                                                                    </_join_words>
213
                                                                                </1>
214
                                                                                <2>$scientificNameAuthorship</2>
215
                                                                            </_join_words>
216
                                                                        </2>
217
                                                                    </_alt>
218
                                                                </value>
219
                                                            </_merge_prefix>
220
                                                        </taxonomicname>
221
                                                    </taxonlabel>
222
                                                </taxonlabel_id>
223
                                                <author>$scientificNameAuthorship</author>
224
                                                <family>$family</family>
225
                                                <genus>$genus</genus>
226
                                                <specific_epithet>$specificEpithet</specific_epithet>
227
                                                <taxonomicname>$scientificName</taxonomicname>
228
                                                <verbatimrank>$taxonRank</verbatimrank>
229
                                            </taxonverbatim>
230
                                        </taxonverbatim_id>
231
                                        <determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate>
232
                                        <taxonfit>$identificationQualifier</taxonfit>
233
                                    </taxondetermination>
234
                                </taxonoccurrence>
235
                            </locationevent>
236 6403 aaronmk
                        </locationevent>
237
                        <locationnarrative>
238
                            <_merge>
239
                                <1>$locality</1>
240
                                <3>
241
                                    <_label>
242
                                        <label>habitat</label>
243
                                        <value>$habitat</value>
244
                                    </_label>
245
                                </3>
246 8078 aaronmk
                                <4>$locationRemarks</4>
247 6403 aaronmk
                            </_merge>
248
                        </locationnarrative>
249
                        <locationplace>
250
                            <place_id>
251 6342 aaronmk
                                <place>
252
                                    <coordinates_id>
253
                                        <coordinates>
254 6403 aaronmk
                                            <coordsaccuracy_m><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_m>
255 6342 aaronmk
                                            <latitude_deg>
256
                                                <_nullIf>
257
                                                    <null>0</null>
258
                                                    <type>float</type>
259
                                                    <value>$decimalLatitude</value>
260
                                                </_nullIf>
261
                                            </latitude_deg>
262
                                            <longitude_deg>
263
                                                <_nullIf>
264
                                                    <null>0</null>
265
                                                    <type>float</type>
266
                                                    <value>$decimalLongitude</value>
267
                                                </_nullIf>
268
                                            </longitude_deg>
269 6579 aaronmk
                                            <verbatimcoordinates>$verbatimCoordinates</verbatimcoordinates>
270 6403 aaronmk
                                            <verbatimlatitude>$verbatimLatitude</verbatimlatitude>
271
                                            <verbatimlongitude>$verbatimLongitude</verbatimlongitude>
272 6342 aaronmk
                                        </coordinates>
273
                                    </coordinates_id>
274 10565 aaronmk
                                    <placename_id>
275
                                        <placename>
276
                                            <rank>municipality</rank>
277
                                            <placename>$municipality</placename>
278
                                        </placename>
279
                                    </placename_id>
280 6403 aaronmk
                                    <continent>$continent</continent>
281 6342 aaronmk
                                    <country>$country</country>
282
                                    <county>$county</county>
283 6403 aaronmk
                                    <matched_place_id>
284
                                        <place>
285
                                            <source_id><source><shortname>geoscrub</shortname></source></source_id>
286
                                            <coordinates_id>
287
                                                <coordinates>
288
                                                    <source_id><source><shortname>geoscrub</shortname></source></source_id>
289
                                                    <latitude_deg>
290
                                                        <_nullIf>
291
                                                            <null>0</null>
292
                                                            <type>float</type>
293
                                                            <value>$decimalLatitude</value>
294
                                                        </_nullIf>
295
                                                    </latitude_deg>
296
                                                    <longitude_deg>
297
                                                        <_nullIf>
298
                                                            <null>0</null>
299
                                                            <type>float</type>
300
                                                            <value>$decimalLongitude</value>
301
                                                        </_nullIf>
302
                                                    </longitude_deg>
303
                                                </coordinates>
304
                                            </coordinates_id>
305
                                            <country>$country</country>
306
                                            <county>$county</county>
307
                                            <stateprovince>$stateProvince</stateprovince>
308
                                        </place>
309
                                    </matched_place_id>
310 6342 aaronmk
                                    <stateprovince>$stateProvince</stateprovince>
311
                                </place>
312 6403 aaronmk
                            </place_id>
313
                        </locationplace>
314
                        <verbatimelevation>$verbatimElevation</verbatimelevation>
315
                    </location>
316
                </path>
317
            </_simplifyPath>
318 6342 aaronmk
        </path>
319 6403 aaronmk
    </_setDefault>
320 6342 aaronmk
</VegBIEN>
321 7162 aaronmk
Inserted 38 new rows into database