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
            <taxonoccurrence>
77
                <aggregateoccurrence>
78
                    <collectiondate><_date><date><_dateRangeStart><value><_alt><2>$eventDate</2></_alt></value></_dateRangeStart></date></_date></collectiondate>
79
                    <plantobservation>
80
                        <specimenreplicate>
81
                            <_if name="if indirect voucher"><else><catalognumber_dwc>$catalogNumber</catalognumber_dwc></else></_if>
82
                            <collectioncode_dwc>
83
                                <_alt>
84
                                    <1>$collectionCode</1>
85
                                    <2>$collectionID</2>
86
                                </_alt>
87
                            </collectioncode_dwc>
88
                            <collectionnumber><_alt><2>$recordNumber</2></_alt></collectionnumber>
89
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
90
                            <sourceaccessioncode>$id</sourceaccessioncode>
91
                        </specimenreplicate>
92
                    </plantobservation>
93
                </aggregateoccurrence>
94
                <taxondetermination>
95
                    <isoriginal>true</isoriginal>
96
                    <role>identifier</role>
97
                    <party_id>
98
                        <party>
99
                            <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
100
                            <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
101
                            <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
102
                        </party>
103
                    </party_id>
104
                    <plantconcept_id>
105
                        <plantconcept>
106
                            <plantname_id>
107
                                <_simplifyPath>
108
                                    <next>parent_id/plantname</next>
109
                                    <require>plantname</require>
110
                                    <path>
111
                                        <plantname>
112
                                            <rank>binomial</rank>
113
                                            <plantname>$scientificName</plantname>
114
                                            <parent_id>
115
                                                <plantname>
116
                                                    <rank>authority</rank>
117
                                                    <plantname>$scientificNameAuthorship</plantname>
118
                                                    <parent_id>
119
                                                        <plantname>
120
                                                            <rank>subspecies</rank>
121
                                                            <plantname>$infraspecificEpithet</plantname>
122
                                                            <parent_id>
123
                                                                <plantname>
124
                                                                    <rank>species</rank>
125
                                                                    <plantname>$specificEpithet</plantname>
126
                                                                    <parent_id>
127
                                                                        <plantname>
128
                                                                            <rank>genus</rank>
129
                                                                            <plantname>$genus</plantname>
130
                                                                            <parent_id>
131
                                                                                <plantname>
132
                                                                                    <rank>family</rank>
133
                                                                                    <plantname>$family</plantname>
134
                                                                                    <parent_id>
135
                                                                                        <plantname>
136
                                                                                            <rank>order</rank>
137
                                                                                            <plantname>$order</plantname>
138
                                                                                            <parent_id>
139
                                                                                                <plantname>
140
                                                                                                    <rank>class</rank>
141
                                                                                                    <plantname>$class</plantname>
142
                                                                                                    <parent_id>
143
                                                                                                        <plantname>
144
                                                                                                            <rank>subkingdom</rank>
145
                                                                                                            <plantname>$phylum</plantname>
146
                                                                                                            <parent_id>
147
                                                                                                                <plantname>
148
                                                                                                                    <rank>kingdom</rank>
149
                                                                                                                    <plantname>$kingdom</plantname>
150
                                                                                                                </plantname>
151
                                                                                                            </parent_id>
152
                                                                                                        </plantname>
153
                                                                                                    </parent_id>
154
                                                                                                </plantname>
155
                                                                                            </parent_id>
156
                                                                                        </plantname>
157
                                                                                    </parent_id>
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
                                    </path>
170
                                </_simplifyPath>
171
                            </plantname_id>
172
                        </plantconcept>
173
                    </plantconcept_id>
174
                    <determinationdate><_date><date><_dateRangeStart><value><_alt><2>$dateIdentified</2></_alt></value></_dateRangeStart></date></_date></determinationdate>
175
                </taxondetermination>
176
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
177
            </taxonoccurrence>
178
        </locationevent>
179
        <locationnarrative>
180
            <_merge>
181
                <1>$locality</1>
182
                <3>
183
                    <_label>
184
                        <label>habitat</label>
185
                        <value>$habitat</value>
186
                    </_label>
187
                </3>
188
            </_merge>
189
        </locationnarrative>
190
        <sourceaccessioncode>$id</sourceaccessioncode>
191
    </location>
192
</VegBIEN>
193
Inserted 38 new rows into database
    (1-1/1)