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
                    <isoriginal>true</isoriginal>
101
                    <role>identifier</role>
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/plantname</next>
114
                                    <require>plantname</require>
115
                                    <path>
116
                                        <plantname>
117
                                            <rank>binomial</rank>
118
                                            <plantname>$scientificName</plantname>
119
                                            <parent_id>
120
                                                <plantname>
121
                                                    <rank>authority</rank>
122
                                                    <plantname>$scientificNameAuthorship</plantname>
123
                                                    <parent_id>
124
                                                        <plantname>
125
                                                            <rank>subspecies</rank>
126
                                                            <plantname>$infraspecificEpithet</plantname>
127
                                                            <parent_id>
128
                                                                <plantname>
129
                                                                    <rank>species</rank>
130
                                                                    <plantname>$specificEpithet</plantname>
131
                                                                    <parent_id>
132
                                                                        <plantname>
133
                                                                            <rank>genus</rank>
134
                                                                            <plantname>$genus</plantname>
135
                                                                            <parent_id>
136
                                                                                <plantname>
137
                                                                                    <rank>family</rank>
138
                                                                                    <plantname>$family</plantname>
139
                                                                                    <parent_id>
140
                                                                                        <plantname>
141
                                                                                            <rank>order</rank>
142
                                                                                            <plantname>$order</plantname>
143
                                                                                            <parent_id>
144
                                                                                                <plantname>
145
                                                                                                    <rank>class</rank>
146
                                                                                                    <plantname>$class</plantname>
147
                                                                                                    <parent_id>
148
                                                                                                        <plantname>
149
                                                                                                            <rank>subkingdom</rank>
150
                                                                                                            <plantname>$phylum</plantname>
151
                                                                                                            <parent_id>
152
                                                                                                                <plantname>
153
                                                                                                                    <rank>kingdom</rank>
154
                                                                                                                    <plantname>$kingdom</plantname>
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
                                                                    </parent_id>
167
                                                                </plantname>
168
                                                            </parent_id>
169
                                                        </plantname>
170
                                                    </parent_id>
171
                                                </plantname>
172
                                            </parent_id>
173
                                        </plantname>
174
                                    </path>
175
                                </_simplifyPath>
176
                            </plantname_id>
177
                        </plantconcept>
178
                    </plantconcept_id>
179
                    <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
180
                </taxondetermination>
181
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
182
                <voucher><specimenreplicate_id><specimenreplicate><catalognumber_dwc/></specimenreplicate></specimenreplicate_id></voucher>
183
            </taxonoccurrence>
184
        </locationevent>
185
        <locationnarrative>
186
            <_merge>
187
                <1>$locality</1>
188
                <3>
189
                    <_label>
190
                        <label>habitat</label>
191
                        <value>$habitat</value>
192
                    </_label>
193
                </3>
194
            </_merge>
195
        </locationnarrative>
196
    </location>
197
</VegBIEN>
198
Inserted 38 new rows into database
(7-7/7)