Project

General

Profile

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