1
|
Put template:
|
2
|
<VegBIEN>
|
3
|
<_simplifyPath id="-1">
|
4
|
<next>parent_id</next>
|
5
|
<path>
|
6
|
<location>
|
7
|
<authorlocationcode>
|
8
|
<_alt>
|
9
|
<1>$id</1>
|
10
|
<2>
|
11
|
<_join>
|
12
|
<1>$institutionCode</1>
|
13
|
<2>
|
14
|
<_join>
|
15
|
<1>$collectionCode</1>
|
16
|
<2>$collectionID</2>
|
17
|
</_join>
|
18
|
</2>
|
19
|
<3>$catalogNumber</3>
|
20
|
</_join>
|
21
|
</2>
|
22
|
</_alt>
|
23
|
</authorlocationcode>
|
24
|
<elevation_m>
|
25
|
<_alt>
|
26
|
<1>
|
27
|
<_units>
|
28
|
<to>m</to>
|
29
|
<to></to>
|
30
|
<value>$verbatimElevation</value>
|
31
|
</_units>
|
32
|
</1>
|
33
|
<2>
|
34
|
<_avg>
|
35
|
<max>$maximumElevationInMeters</max>
|
36
|
<min>$minimumElevationInMeters</min>
|
37
|
</_avg>
|
38
|
</2>
|
39
|
</_alt>
|
40
|
</elevation_m>
|
41
|
<locationcoords>
|
42
|
<coordsaccuracy_deg><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_deg>
|
43
|
<footprintgeometry_dwc>$footprintWKT</footprintgeometry_dwc>
|
44
|
<latitude_deg>
|
45
|
<_nullIf>
|
46
|
<null>0</null>
|
47
|
<type>float</type>
|
48
|
<value>$decimalLatitude</value>
|
49
|
</_nullIf>
|
50
|
</latitude_deg>
|
51
|
<longitude_deg>
|
52
|
<_nullIf>
|
53
|
<null>0</null>
|
54
|
<type>float</type>
|
55
|
<value>$decimalLongitude</value>
|
56
|
</_nullIf>
|
57
|
</longitude_deg>
|
58
|
<verbatimlatitude>$verbatimLatitude</verbatimlatitude>
|
59
|
<verbatimlongitude>$verbatimLongitude</verbatimlongitude>
|
60
|
</locationcoords>
|
61
|
<locationevent>
|
62
|
<method_id><method><name>$samplingProtocol</name></method></method_id>
|
63
|
<obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
|
64
|
<obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
|
65
|
<taxonoccurrence>
|
66
|
<aggregateoccurrence>
|
67
|
<count>$individualCount</count>
|
68
|
<plantobservation>
|
69
|
<definedvalue fkey="tablerecord_id">
|
70
|
<userdefined_id>
|
71
|
<userdefined>
|
72
|
<tablename>plantobservation</tablename>
|
73
|
<userdefinedname>sex</userdefinedname>
|
74
|
</userdefined>
|
75
|
</userdefined_id>
|
76
|
<definedvalue>$sex</definedvalue>
|
77
|
</definedvalue>
|
78
|
<specimenreplicate>
|
79
|
<catalognumber_dwc>$catalogNumber</catalognumber_dwc>
|
80
|
<collectioncode_dwc>
|
81
|
<_join>
|
82
|
<1>$collectionCode</1>
|
83
|
<2>$collectionID</2>
|
84
|
</_join>
|
85
|
</collectioncode_dwc>
|
86
|
<institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
|
87
|
<sourceaccessioncode>$id</sourceaccessioncode>
|
88
|
</specimenreplicate>
|
89
|
</plantobservation>
|
90
|
</aggregateoccurrence>
|
91
|
<authortaxoncode>$scientificName</authortaxoncode>
|
92
|
<sourceaccessioncode>$id</sourceaccessioncode>
|
93
|
<taxondetermination>
|
94
|
<party_id>
|
95
|
<party>
|
96
|
<givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
|
97
|
<middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
|
98
|
<surname><_namePart><last>$identifiedBy</last></_namePart></surname>
|
99
|
</party>
|
100
|
</party_id>
|
101
|
<taxonpath_id>
|
102
|
<taxonpath>
|
103
|
<author>$scientificNameAuthorship</author>
|
104
|
<class>$class</class>
|
105
|
<family>$family</family>
|
106
|
<genus>$genus</genus>
|
107
|
<kingdom>$kingdom</kingdom>
|
108
|
<order>$order</order>
|
109
|
<phylum>$phylum</phylum>
|
110
|
<species>$specificEpithet</species>
|
111
|
<subspecies>
|
112
|
<_join_words>
|
113
|
<1>
|
114
|
<_if name="if has infraspecificEpithet">
|
115
|
<cond>$infraspecificEpithet</cond>
|
116
|
<then>$taxonRank</then>
|
117
|
</_if>
|
118
|
</1>
|
119
|
<2>$infraspecificEpithet</2>
|
120
|
</_join_words>
|
121
|
</subspecies>
|
122
|
<taxonomicname>$scientificName</taxonomicname>
|
123
|
<taxonomicnamewithauthor>
|
124
|
<_join_words>
|
125
|
<1>
|
126
|
<_alt>
|
127
|
<1>$scientificName</1>
|
128
|
<2>
|
129
|
<_join_words>
|
130
|
<1>$family</1>
|
131
|
<2>$genus</2>
|
132
|
<3>$specificEpithet</3>
|
133
|
<5>
|
134
|
<_join_words>
|
135
|
<1>
|
136
|
<_if name="if has infraspecificEpithet">
|
137
|
<cond>$infraspecificEpithet</cond>
|
138
|
<then>$taxonRank</then>
|
139
|
</_if>
|
140
|
</1>
|
141
|
<2>$infraspecificEpithet</2>
|
142
|
</_join_words>
|
143
|
</5>
|
144
|
</_join_words>
|
145
|
</2>
|
146
|
</_alt>
|
147
|
</1>
|
148
|
<2>$scientificNameAuthorship</2>
|
149
|
</_join_words>
|
150
|
</taxonomicnamewithauthor>
|
151
|
</taxonpath>
|
152
|
</taxonpath_id>
|
153
|
<determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
|
154
|
<taxonfit>$identificationQualifier</taxonfit>
|
155
|
</taxondetermination>
|
156
|
<verbatimcollectorname>$recordedBy</verbatimcollectorname>
|
157
|
</taxonoccurrence>
|
158
|
</locationevent>
|
159
|
<locationnarrative>
|
160
|
<_merge>
|
161
|
<1>$locality</1>
|
162
|
<3>
|
163
|
<_label>
|
164
|
<label>habitat</label>
|
165
|
<value>$habitat</value>
|
166
|
</_label>
|
167
|
</3>
|
168
|
</_merge>
|
169
|
</locationnarrative>
|
170
|
<locationplace>
|
171
|
<placepath_id>
|
172
|
<placepath>
|
173
|
<continent>$continent</continent>
|
174
|
<country>$country</country>
|
175
|
<county>$county</county>
|
176
|
<stateprovince>$stateProvince</stateprovince>
|
177
|
</placepath>
|
178
|
</placepath_id>
|
179
|
</locationplace>
|
180
|
<verbatimelevation>$verbatimElevation</verbatimelevation>
|
181
|
</location>
|
182
|
</path>
|
183
|
</_simplifyPath>
|
184
|
</VegBIEN>
|
185
|
Inserted 26 new rows into database
|