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_m>
25
                    <_alt>
26
                        <1>
27
                            <_units>
28
                                <to>m</to>
29
                                <to></to>
30
                                <value>$verbatimElevation</value>
31
                            </_units>
32
                        </1>
33
                        <2>
34
                            <_avg>
35
                                <max>$maximumElevationInMeters</max>
36
                                <min><_rangeStart><value>$minimumElevationInMeters</value></_rangeStart></min>
37
                            </_avg>
38
                        </2>
39
                    </_alt>
40
                </elevation_m>
41
                <elevationrange_m>
42
                    <_range>
43
                        <from><_rangeStart><value>$minimumElevationInMeters</value></_rangeStart></from>
44
                        <to>
45
                            <_alt>
46
                                <1>$maximumElevationInMeters</1>
47
                                <2><_rangeEnd><value>$minimumElevationInMeters</value></_rangeEnd></2>
48
                            </_alt>
49
                        </to>
50
                    </_range>
51
                </elevationrange_m>
52
                <locationcoords>
53
                    <coordsaccuracy_deg><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_deg>
54
                    <footprintgeometry_dwc>$footprintWKT</footprintgeometry_dwc>
55
                    <latitude_deg>
56
                        <_alt>
57
                            <1>
58
                                <_nullIf>
59
                                    <null>0</null>
60
                                    <type>float</type>
61
                                    <value>$decimalLatitude</value>
62
                                </_nullIf>
63
                            </1>
64
                            <2>
65
                                <_nullIf>
66
                                    <null>0</null>
67
                                    <type>float</type>
68
                                    <value>$verbatimLatitude</value>
69
                                </_nullIf>
70
                            </2>
71
                        </_alt>
72
                    </latitude_deg>
73
                    <longitude_deg>
74
                        <_alt>
75
                            <1>
76
                                <_nullIf>
77
                                    <null>0</null>
78
                                    <type>float</type>
79
                                    <value>$decimalLongitude</value>
80
                                </_nullIf>
81
                            </1>
82
                            <2>
83
                                <_nullIf>
84
                                    <null>0</null>
85
                                    <type>float</type>
86
                                    <value>$verbatimLongitude</value>
87
                                </_nullIf>
88
                            </2>
89
                        </_alt>
90
                    </longitude_deg>
91
                </locationcoords>
92
                <locationevent>
93
                    <method_id><method><name>$samplingProtocol</name></method></method_id>
94
                    <obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
95
                    <obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
96
                    <taxonoccurrence>
97
                        <aggregateoccurrence>
98
                            <count>$individualCount</count>
99
                            <plantobservation>
100
                                <definedvalue fkey="tablerecord_id">
101
                                    <userdefined_id>
102
                                        <userdefined>
103
                                            <tablename>plantobservation</tablename>
104
                                            <userdefinedname>sex</userdefinedname>
105
                                        </userdefined>
106
                                    </userdefined_id>
107
                                    <definedvalue>$sex</definedvalue>
108
                                </definedvalue>
109
                                <specimenreplicate>
110
                                    <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
111
                                    <collectioncode_dwc>
112
                                        <_join>
113
                                            <1>$collectionCode</1>
114
                                            <2>$collectionID</2>
115
                                        </_join>
116
                                    </collectioncode_dwc>
117
                                    <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
118
                                    <sourceaccessioncode>$id</sourceaccessioncode>
119
                                </specimenreplicate>
120
                            </plantobservation>
121
                        </aggregateoccurrence>
122
                        <authortaxoncode>$scientificName</authortaxoncode>
123
                        <taxondetermination>
124
                            <party_id>
125
                                <party>
126
                                    <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
127
                                    <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
128
                                    <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
129
                                </party>
130
                            </party_id>
131
                            <taxonpath_id>
132
                                <taxonpath>
133
                                    <class>$class</class>
134
                                    <family>$family</family>
135
                                    <genus>$genus</genus>
136
                                    <kingdom>$kingdom</kingdom>
137
                                    <order>$order</order>
138
                                    <phylum>$phylum</phylum>
139
                                    <scientificname>$scientificName</scientificname>
140
                                    <scientificnameauthor>$scientificNameAuthorship</scientificnameauthor>
141
                                    <species>$specificEpithet</species>
142
                                    <subspecies>
143
                                        <_name>
144
                                            <first>$taxonRank</first>
145
                                            <last>$infraspecificEpithet</last>
146
                                        </_name>
147
                                    </subspecies>
148
                                </taxonpath>
149
                            </taxonpath_id>
150
                            <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
151
                            <taxonfit>$identificationQualifier</taxonfit>
152
                        </taxondetermination>
153
                        <verbatimcollectorname>$recordedBy</verbatimcollectorname>
154
                    </taxonoccurrence>
155
                </locationevent>
156
                <locationnarrative>
157
                    <_merge>
158
                        <1>$locality</1>
159
                        <3>
160
                            <_label>
161
                                <label>habitat</label>
162
                                <value>$habitat</value>
163
                            </_label>
164
                        </3>
165
                    </_merge>
166
                </locationnarrative>
167
                <locationplace>
168
                    <placepath_id>
169
                        <placepath>
170
                            <continent>$continent</continent>
171
                            <country>$country</country>
172
                            <county>$county</county>
173
                            <stateprovince>$stateProvince</stateprovince>
174
                        </placepath>
175
                    </placepath_id>
176
                </locationplace>
177
                <verbatimelevation>$verbatimElevation</verbatimelevation>
178
            </location>
179
        </path>
180
    </_simplifyPath>
181
</VegBIEN>
182
Inserted 26 new rows into database
(4-4/4)