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
|
<_replace>
|
13
|
<\bca\.?></\bca\.?>
|
14
|
<value>$verbatimElevation</value>
|
15
|
</_replace>
|
16
|
</elevation>
|
17
|
<locationdetermination>
|
18
|
<latitude>
|
19
|
<_nullIf>
|
20
|
<null>0</null>
|
21
|
<type>float</type>
|
22
|
<value>$decimalLatitude</value>
|
23
|
</_nullIf>
|
24
|
</latitude>
|
25
|
<longitude>
|
26
|
<_nullIf>
|
27
|
<null>0</null>
|
28
|
<type>float</type>
|
29
|
<value>$decimalLongitude</value>
|
30
|
</_nullIf>
|
31
|
</longitude>
|
32
|
<namedplace_id>
|
33
|
<_simplifyPath>
|
34
|
<next>parent_id/namedplace</next>
|
35
|
<require>placename</require>
|
36
|
<path>
|
37
|
<namedplace>
|
38
|
<rank>county</rank>
|
39
|
<placename>$county</placename>
|
40
|
<parent_id>
|
41
|
<namedplace>
|
42
|
<rank>stateProvince</rank>
|
43
|
<placename>$stateProvince</placename>
|
44
|
<parent_id>
|
45
|
<namedplace>
|
46
|
<rank>country</rank>
|
47
|
<placename>$country</placename>
|
48
|
<parent_id>
|
49
|
<namedplace>
|
50
|
<rank>continent</rank>
|
51
|
<placename>$continent</placename>
|
52
|
</namedplace>
|
53
|
</parent_id>
|
54
|
</namedplace>
|
55
|
</parent_id>
|
56
|
</namedplace>
|
57
|
</parent_id>
|
58
|
</namedplace>
|
59
|
</path>
|
60
|
</_simplifyPath>
|
61
|
</namedplace_id>
|
62
|
</locationdetermination>
|
63
|
<locationevent>
|
64
|
<obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
|
65
|
<obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
|
66
|
<taxonoccurrence>
|
67
|
<aggregateoccurrence>
|
68
|
<plantobservation>
|
69
|
<authorplantcode>$recordNumber</authorplantcode>
|
70
|
<sourceaccessioncode>$id</sourceaccessioncode>
|
71
|
<specimenreplicate>
|
72
|
<_if name="if indirect voucher"><else><catalognumber_dwc>$catalogNumber</catalognumber_dwc></else></_if>
|
73
|
<collectioncode_dwc>
|
74
|
<_alt>
|
75
|
<1>$collectionCode</1>
|
76
|
<2>$collectionID</2>
|
77
|
</_alt>
|
78
|
</collectioncode_dwc>
|
79
|
<collectionnumber>$recordNumber</collectionnumber>
|
80
|
<institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
|
81
|
<sourceaccessioncode>$id</sourceaccessioncode>
|
82
|
</specimenreplicate>
|
83
|
</plantobservation>
|
84
|
</aggregateoccurrence>
|
85
|
<sourceaccessioncode>
|
86
|
<_alt>
|
87
|
<1>$id</1>
|
88
|
<2>$recordNumber</2>
|
89
|
</_alt>
|
90
|
</sourceaccessioncode>
|
91
|
<taxondetermination>
|
92
|
<isoriginal>true</isoriginal>
|
93
|
<role>identifier</role>
|
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
|
<plantconcept_id>
|
102
|
<plantconcept>
|
103
|
<plantname_id>
|
104
|
<_simplifyPath>
|
105
|
<next>parent_id/plantname</next>
|
106
|
<require>plantname</require>
|
107
|
<path>
|
108
|
<plantname>
|
109
|
<rank>binomial</rank>
|
110
|
<plantname>$scientificName</plantname>
|
111
|
<parent_id>
|
112
|
<plantname>
|
113
|
<rank>authority</rank>
|
114
|
<plantname>$scientificNameAuthorship</plantname>
|
115
|
<parent_id>
|
116
|
<plantname>
|
117
|
<rank>subspecies</rank>
|
118
|
<plantname>$infraspecificEpithet</plantname>
|
119
|
<parent_id>
|
120
|
<plantname>
|
121
|
<rank>species</rank>
|
122
|
<plantname>$specificEpithet</plantname>
|
123
|
<parent_id>
|
124
|
<plantname>
|
125
|
<rank>genus</rank>
|
126
|
<plantname>$genus</plantname>
|
127
|
<parent_id>
|
128
|
<plantname>
|
129
|
<rank>family</rank>
|
130
|
<plantname>$family</plantname>
|
131
|
<parent_id>
|
132
|
<plantname>
|
133
|
<rank>order</rank>
|
134
|
<plantname>$order</plantname>
|
135
|
<parent_id>
|
136
|
<plantname>
|
137
|
<rank>class</rank>
|
138
|
<plantname>$class</plantname>
|
139
|
<parent_id>
|
140
|
<plantname>
|
141
|
<rank>subkingdom</rank>
|
142
|
<plantname>$phylum</plantname>
|
143
|
<parent_id>
|
144
|
<plantname>
|
145
|
<rank>kingdom</rank>
|
146
|
<plantname>$kingdom</plantname>
|
147
|
</plantname>
|
148
|
</parent_id>
|
149
|
</plantname>
|
150
|
</parent_id>
|
151
|
</plantname>
|
152
|
</parent_id>
|
153
|
</plantname>
|
154
|
</parent_id>
|
155
|
</plantname>
|
156
|
</parent_id>
|
157
|
</plantname>
|
158
|
</parent_id>
|
159
|
</plantname>
|
160
|
</parent_id>
|
161
|
</plantname>
|
162
|
</parent_id>
|
163
|
</plantname>
|
164
|
</parent_id>
|
165
|
</plantname>
|
166
|
</path>
|
167
|
</_simplifyPath>
|
168
|
</plantname_id>
|
169
|
</plantconcept>
|
170
|
</plantconcept_id>
|
171
|
<determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
|
172
|
</taxondetermination>
|
173
|
<verbatimcollectorname>$recordedBy</verbatimcollectorname>
|
174
|
</taxonoccurrence>
|
175
|
</locationevent>
|
176
|
<locationnarrative>
|
177
|
<_merge>
|
178
|
<1>$locality</1>
|
179
|
<3>
|
180
|
<_label>
|
181
|
<label>habitat</label>
|
182
|
<value>$habitat</value>
|
183
|
</_label>
|
184
|
</3>
|
185
|
</_merge>
|
186
|
</locationnarrative>
|
187
|
<sourceaccessioncode>$id</sourceaccessioncode>
|
188
|
</location>
|
189
|
</VegBIEN>
|
190
|
Inserted 38 new rows into database
|