Project

General

Profile

1
Put template:
2
<VegBIEN>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <authorlocationcode>
8
                    <_alt>
9
                        <1>$UniqueNYInternalRecordNumber</1>
10
                        <2>
11
                            <_join>
12
                                <1>$InstitutionCode</1>
13
                                <2>$CollectionCode</2>
14
                                <3>$CatalogNumber</3>
15
                            </_join>
16
                        </2>
17
                    </_alt>
18
                </authorlocationcode>
19
                <elevation_m>
20
                    <_avg>
21
                        <max>$MaximumElevation</max>
22
                        <min>
23
                            <_rangeStart>
24
                                <value>
25
                                    <_nullIf>
26
                                        <null>.</null>
27
                                        <value>$MinimumElevation</value>
28
                                    </_nullIf>
29
                                </value>
30
                            </_rangeStart>
31
                        </min>
32
                    </_avg>
33
                </elevation_m>
34
                <elevationrange_m>
35
                    <_range>
36
                        <from>
37
                            <_rangeStart>
38
                                <value>
39
                                    <_nullIf>
40
                                        <null>.</null>
41
                                        <value>$MinimumElevation</value>
42
                                    </_nullIf>
43
                                </value>
44
                            </_rangeStart>
45
                        </from>
46
                        <to>
47
                            <_alt>
48
                                <1>$MaximumElevation</1>
49
                                <2>
50
                                    <_rangeEnd>
51
                                        <value>
52
                                            <_nullIf>
53
                                                <null>.</null>
54
                                                <value>$MinimumElevation</value>
55
                                            </_nullIf>
56
                                        </value>
57
                                    </_rangeEnd>
58
                                </2>
59
                            </_alt>
60
                        </to>
61
                    </_range>
62
                </elevationrange_m>
63
                <locationcoords>
64
                    <coordsaccuracy_deg><_noCV><value>$CoordinatePrecision</value></_noCV></coordsaccuracy_deg>
65
                    <footprintgeometry_dwc>$BoundingBox</footprintgeometry_dwc>
66
                    <latitude_deg>
67
                        <_nullIf>
68
                            <null>0</null>
69
                            <type>float</type>
70
                            <value>$Latitude</value>
71
                        </_nullIf>
72
                    </latitude_deg>
73
                    <longitude_deg>
74
                        <_nullIf>
75
                            <null>0</null>
76
                            <type>float</type>
77
                            <value>$Longitude</value>
78
                        </_nullIf>
79
                    </longitude_deg>
80
                </locationcoords>
81
                <locationevent>
82
                    <taxonoccurrence>
83
                        <aggregateoccurrence>
84
                            <collectiondate>
85
                                <_date>
86
                                    <day>
87
                                        <_nullIf>
88
                                            <null>0</null>
89
                                            <type>float</type>
90
                                            <value>$DayCollected</value>
91
                                        </_nullIf>
92
                                    </day>
93
                                    <month>
94
                                        <_nullIf>
95
                                            <null>0</null>
96
                                            <type>float</type>
97
                                            <value>$MonthCollected</value>
98
                                        </_nullIf>
99
                                    </month>
100
                                    <year>
101
                                        <_nullIf>
102
                                            <null>0</null>
103
                                            <type>float</type>
104
                                            <value>$YearCollected</value>
105
                                        </_nullIf>
106
                                    </year>
107
                                </_date>
108
                            </collectiondate>
109
                            <count>$IndividualCount</count>
110
                            <notes>
111
                                <_join>
112
                                    <1>$Notes</1>
113
                                    <2>
114
                                        <_label>
115
                                            <label>plant fungus</label>
116
                                            <value>$PlantFungusDescription</value>
117
                                        </_label>
118
                                    </2>
119
                                </_join>
120
                            </notes>
121
                            <plantobservation>
122
                                <collectionnumber>$FieldNumber</collectionnumber>
123
                                <definedvalue fkey="tablerecord_id">
124
                                    <userdefined_id>
125
                                        <userdefined>
126
                                            <tablename>plantobservation</tablename>
127
                                            <userdefinedname>sex</userdefinedname>
128
                                        </userdefined>
129
                                    </userdefined_id>
130
                                    <definedvalue>$Sex</definedvalue>
131
                                </definedvalue>
132
                                <specimenreplicate>
133
                                    <catalognumber_dwc>$CatalogNumber</catalognumber_dwc>
134
                                    <collectioncode_dwc>$CollectionCode</collectioncode_dwc>
135
                                    <institution_id><party><organizationname>$InstitutionCode</organizationname></party></institution_id>
136
                                    <sourceaccessioncode>$UniqueNYInternalRecordNumber</sourceaccessioncode>
137
                                </specimenreplicate>
138
                            </plantobservation>
139
                        </aggregateoccurrence>
140
                        <authortaxoncode>
141
                            <_alt>
142
                                <1>$FieldNumber</1>
143
                                <2>$ScientificName</2>
144
                            </_alt>
145
                        </authortaxoncode>
146
                        <taxondetermination>
147
                            <party_id>
148
                                <party>
149
                                    <givenname><_namePart><first>$IdentifiedBy</first></_namePart></givenname>
150
                                    <middlename><_namePart><middle>$IdentifiedBy</middle></_namePart></middlename>
151
                                    <surname><_namePart><last>$IdentifiedBy</last></_namePart></surname>
152
                                </party>
153
                            </party_id>
154
                            <taxonpath_id>
155
                                <taxonpath>
156
                                    <class>$Class</class>
157
                                    <family>$Family</family>
158
                                    <genus>$Genus</genus>
159
                                    <kingdom>$Kingdom</kingdom>
160
                                    <order>$Order</order>
161
                                    <phylum>$Phylum</phylum>
162
                                    <scientificname>$ScientificName</scientificname>
163
                                    <scientificnameauthor>$ScientificNameAuthor</scientificnameauthor>
164
                                    <species>$Species</species>
165
                                    <subspecies>$Subspecies</subspecies>
166
                                </taxonpath>
167
                            </taxonpath_id>
168
                            <determinationdate>
169
                                <_date>
170
                                    <day>
171
                                        <_nullIf>
172
                                            <null>0</null>
173
                                            <type>float</type>
174
                                            <value>$DayIdentified</value>
175
                                        </_nullIf>
176
                                    </day>
177
                                    <month>
178
                                        <_nullIf>
179
                                            <null>0</null>
180
                                            <type>float</type>
181
                                            <value>$MonthIdentified</value>
182
                                        </_nullIf>
183
                                    </month>
184
                                    <year>
185
                                        <_nullIf>
186
                                            <null>0</null>
187
                                            <type>float</type>
188
                                            <value>$YearIdentified</value>
189
                                        </_nullIf>
190
                                    </year>
191
                                </_date>
192
                            </determinationdate>
193
                        </taxondetermination>
194
                        <verbatimcollectorname>$Collector</verbatimcollectorname>
195
                    </taxonoccurrence>
196
                    <waterdepth_m>
197
                        <_avg>
198
                            <max>$MaximumDepth</max>
199
                            <min>$MinimumDepth</min>
200
                        </_avg>
201
                    </waterdepth_m>
202
                </locationevent>
203
                <locationnarrative>
204
                    <_merge>
205
                        <1>
206
                            <_join>
207
                                <1>$Locality</1>
208
                                <2>
209
                                    <_label>
210
                                        <label>substrate</label>
211
                                        <value>$Substrate</value>
212
                                    </_label>
213
                                </2>
214
                                <3>
215
                                    <_label>
216
                                        <label>vegetation</label>
217
                                        <value>$Vegetation</value>
218
                                    </_label>
219
                                </3>
220
                            </_join>
221
                        </1>
222
                        <3>
223
                            <_label>
224
                                <label>habitat</label>
225
                                <value>$Habitat</value>
226
                            </_label>
227
                        </3>
228
                    </_merge>
229
                </locationnarrative>
230
                <locationplace>
231
                    <placepath_id>
232
                        <placepath>
233
                            <continent>$ContinentOcean</continent>
234
                            <country>$Country</country>
235
                            <county>$County</county>
236
                            <stateprovince>$StateProvince</stateprovince>
237
                        </placepath>
238
                    </placepath_id>
239
                </locationplace>
240
            </location>
241
        </path>
242
    </_simplifyPath>
243
</VegBIEN>
244
Inserted 27 new rows into database
(5-5/6)