Project

General

Profile

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
            <_alt>
13
                <1>
14
                    <_replace>
15
                        <\bca\.?></\bca\.?>
16
                        <value>$verbatimElevation</value>
17
                    </_replace>
18
                </1>
19
            </_alt>
20
        </elevation>
21
        <locationdetermination>
22
            <latitude>
23
                <_alt>
24
                    <1>
25
                        <_nullIf>
26
                            <null>0</null>
27
                            <type>float</type>
28
                            <value>$decimalLatitude</value>
29
                        </_nullIf>
30
                    </1>
31
                </_alt>
32
            </latitude>
33
            <longitude>
34
                <_alt>
35
                    <1>
36
                        <_nullIf>
37
                            <null>0</null>
38
                            <type>float</type>
39
                            <value>$decimalLongitude</value>
40
                        </_nullIf>
41
                    </1>
42
                </_alt>
43
            </longitude>
44
            <namedplace_id>
45
                <_simplifyPath>
46
                    <next>parent_id/namedplace</next>
47
                    <require>placename</require>
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><_alt><2>$eventDate</2></_alt></value></_dateRangeEnd></date></_date></obsenddate>
77
            <obsstartdate><_date><date><_dateRangeStart><value><_alt><2>$eventDate</2></_alt></value></_dateRangeStart></date></_date></obsstartdate>
78
            <taxonoccurrence>
79
                <aggregateoccurrence>
80
                    <collectiondate><_date><date><_alt><2>$eventDate</2></_alt></date></_date></collectiondate>
81
                    <plantobservation>
82
                        <authorplantcode><_alt><2>$recordNumber</2></_alt></authorplantcode>
83
                        <sourceaccessioncode>$id</sourceaccessioncode>
84
                        <specimenreplicate>
85
                            <_if name="if indirect voucher"><else><catalognumber_dwc>$catalogNumber</catalognumber_dwc></else></_if>
86
                            <collectioncode_dwc>
87
                                <_alt>
88
                                    <1>$collectionCode</1>
89
                                    <2>$collectionID</2>
90
                                </_alt>
91
                            </collectioncode_dwc>
92
                            <collectionnumber><_alt><2>$recordNumber</2></_alt></collectionnumber>
93
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
94
                            <sourceaccessioncode>$id</sourceaccessioncode>
95
                        </specimenreplicate>
96
                    </plantobservation>
97
                </aggregateoccurrence>
98
                <sourceaccessioncode>
99
                    <_alt>
100
                        <1>$id</1>
101
                        <2><_alt><2>$recordNumber</2></_alt></2>
102
                    </_alt>
103
                </sourceaccessioncode>
104
                <taxondetermination>
105
                    <isoriginal>true</isoriginal>
106
                    <role>identifier</role>
107
                    <party_id>
108
                        <party>
109
                            <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
110
                            <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
111
                            <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
112
                        </party>
113
                    </party_id>
114
                    <plantconcept_id>
115
                        <plantconcept>
116
                            <plantname_id>
117
                                <_simplifyPath>
118
                                    <next>parent_id/plantname</next>
119
                                    <require>plantname</require>
120
                                    <path>
121
                                        <plantname>
122
                                            <rank>binomial</rank>
123
                                            <plantname>$scientificName</plantname>
124
                                            <parent_id>
125
                                                <plantname>
126
                                                    <rank>authority</rank>
127
                                                    <plantname>$scientificNameAuthorship</plantname>
128
                                                    <parent_id>
129
                                                        <plantname>
130
                                                            <rank>subspecies</rank>
131
                                                            <plantname>$infraspecificEpithet</plantname>
132
                                                            <parent_id>
133
                                                                <plantname>
134
                                                                    <rank>species</rank>
135
                                                                    <plantname>$specificEpithet</plantname>
136
                                                                    <parent_id>
137
                                                                        <plantname>
138
                                                                            <rank>genus</rank>
139
                                                                            <plantname>$genus</plantname>
140
                                                                            <parent_id>
141
                                                                                <plantname>
142
                                                                                    <rank>family</rank>
143
                                                                                    <plantname>$family</plantname>
144
                                                                                    <parent_id>
145
                                                                                        <plantname>
146
                                                                                            <rank>order</rank>
147
                                                                                            <plantname>$order</plantname>
148
                                                                                            <parent_id>
149
                                                                                                <plantname>
150
                                                                                                    <rank>class</rank>
151
                                                                                                    <plantname>$class</plantname>
152
                                                                                                    <parent_id>
153
                                                                                                        <plantname>
154
                                                                                                            <rank>subkingdom</rank>
155
                                                                                                            <plantname>$phylum</plantname>
156
                                                                                                            <parent_id>
157
                                                                                                                <plantname>
158
                                                                                                                    <rank>kingdom</rank>
159
                                                                                                                    <plantname>$kingdom</plantname>
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
                                            </parent_id>
178
                                        </plantname>
179
                                    </path>
180
                                </_simplifyPath>
181
                            </plantname_id>
182
                        </plantconcept>
183
                    </plantconcept_id>
184
                    <determinationdate><_date><date><_dateRangeStart><value><_alt><2>$dateIdentified</2></_alt></value></_dateRangeStart></date></_date></determinationdate>
185
                </taxondetermination>
186
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
187
            </taxonoccurrence>
188
        </locationevent>
189
        <locationnarrative>
190
            <_merge>
191
                <1>$locality</1>
192
                <3>
193
                    <_label>
194
                        <label>habitat</label>
195
                        <value>$habitat</value>
196
                    </_label>
197
                </3>
198
            </_merge>
199
        </locationnarrative>
200
        <sourceaccessioncode><_alt><1>$id</1></_alt></sourceaccessioncode>
201
    </location>
202
</VegBIEN>
203
Inserted 38 new rows into database
    (1-1/1)