Project

General

Profile

1 3641 aaronmk
Put template:
2
<VegBIEN>
3 4621 aaronmk
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <authorlocationcode>
8
                    <_alt>
9
                        <1>$id</1>
10 4066 aaronmk
                        <2>
11 4327 aaronmk
                            <_join>
12 4621 aaronmk
                                <1>$institutionCode</1>
13
                                <2>
14
                                    <_join>
15
                                        <1>$collectionCode</1>
16
                                        <2>$collectionID</2>
17
                                    </_join>
18
                                </2>
19
                                <3>$catalogNumber</3>
20 4327 aaronmk
                            </_join>
21 4066 aaronmk
                        </2>
22 4621 aaronmk
                    </_alt>
23
                </authorlocationcode>
24 4753 aaronmk
                <elevation_m>
25 4621 aaronmk
                    <_alt>
26
                        <1>
27 4818 aaronmk
                            <_units>
28
                                <to>m</to>
29
                                <to></to>
30 4621 aaronmk
                                <value>$verbatimElevation</value>
31 4818 aaronmk
                            </_units>
32 4621 aaronmk
                        </1>
33
                        <2>
34
                            <_avg>
35 4820 aaronmk
                                <max>$maximumElevationInMeters</max>
36
                                <min><_rangeStart><value>$minimumElevationInMeters</value></_rangeStart></min>
37 4621 aaronmk
                            </_avg>
38
                        </2>
39
                    </_alt>
40 4753 aaronmk
                </elevation_m>
41
                <elevationrange_m>
42 4621 aaronmk
                    <_range>
43 4820 aaronmk
                        <from><_rangeStart><value>$minimumElevationInMeters</value></_rangeStart></from>
44 4621 aaronmk
                        <to>
45 4820 aaronmk
                            <_alt>
46
                                <1>$maximumElevationInMeters</1>
47
                                <2><_rangeEnd><value>$minimumElevationInMeters</value></_rangeEnd></2>
48
                            </_alt>
49 4621 aaronmk
                        </to>
50
                    </_range>
51 4753 aaronmk
                </elevationrange_m>
52 4726 aaronmk
                <locationcoords>
53 4753 aaronmk
                    <coordsaccuracy_deg><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_deg>
54 4621 aaronmk
                    <footprintgeometry_dwc>$footprintWKT</footprintgeometry_dwc>
55 4753 aaronmk
                    <latitude_deg>
56 4621 aaronmk
                        <_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 4753 aaronmk
                    </latitude_deg>
73
                    <longitude_deg>
74 4621 aaronmk
                        <_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 4753 aaronmk
                    </longitude_deg>
91 4726 aaronmk
                </locationcoords>
92 4621 aaronmk
                <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 4718 aaronmk
                            <taxonpath_id>
132
                                <taxonpath>
133 4703 aaronmk
                                    <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 4718 aaronmk
                                </taxonpath>
149
                            </taxonpath_id>
150 4621 aaronmk
                            <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 4726 aaronmk
                <locationplace>
168 4727 aaronmk
                    <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 4726 aaronmk
                </locationplace>
177 4818 aaronmk
                <verbatimelevation>$verbatimElevation</verbatimelevation>
178 4621 aaronmk
            </location>
179
        </path>
180
    </_simplifyPath>
181 3641 aaronmk
</VegBIEN>
182 4727 aaronmk
Inserted 26 new rows into database