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