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 4822 aaronmk
                                <min>$minimumElevationInMeters</min>
37 4621 aaronmk
                            </_avg>
38
                        </2>
39
                    </_alt>
40 4753 aaronmk
                </elevation_m>
41 4726 aaronmk
                <locationcoords>
42 4753 aaronmk
                    <coordsaccuracy_deg><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_deg>
43 4621 aaronmk
                    <footprintgeometry_dwc>$footprintWKT</footprintgeometry_dwc>
44 4753 aaronmk
                    <latitude_deg>
45 4903 aaronmk
                        <_nullIf>
46
                            <null>0</null>
47
                            <type>float</type>
48
                            <value>$decimalLatitude</value>
49
                        </_nullIf>
50 4753 aaronmk
                    </latitude_deg>
51
                    <longitude_deg>
52 4903 aaronmk
                        <_nullIf>
53
                            <null>0</null>
54
                            <type>float</type>
55
                            <value>$decimalLongitude</value>
56
                        </_nullIf>
57 4753 aaronmk
                    </longitude_deg>
58 4903 aaronmk
                    <verbatimlatitude>$verbatimLatitude</verbatimlatitude>
59
                    <verbatimlongitude>$verbatimLongitude</verbatimlongitude>
60 4726 aaronmk
                </locationcoords>
61 4621 aaronmk
                <locationevent>
62
                    <method_id><method><name>$samplingProtocol</name></method></method_id>
63
                    <obsenddate><_date><date><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></date></_date></obsenddate>
64
                    <obsstartdate><_date><date><_dateRangeStart><value>$eventDate</value></_dateRangeStart></date></_date></obsstartdate>
65
                    <taxonoccurrence>
66
                        <aggregateoccurrence>
67
                            <count>$individualCount</count>
68
                            <plantobservation>
69
                                <definedvalue fkey="tablerecord_id">
70
                                    <userdefined_id>
71
                                        <userdefined>
72
                                            <tablename>plantobservation</tablename>
73
                                            <userdefinedname>sex</userdefinedname>
74
                                        </userdefined>
75
                                    </userdefined_id>
76
                                    <definedvalue>$sex</definedvalue>
77
                                </definedvalue>
78
                                <specimenreplicate>
79
                                    <catalognumber_dwc>$catalogNumber</catalognumber_dwc>
80
                                    <collectioncode_dwc>
81
                                        <_join>
82
                                            <1>$collectionCode</1>
83
                                            <2>$collectionID</2>
84
                                        </_join>
85
                                    </collectioncode_dwc>
86
                                    <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
87
                                    <sourceaccessioncode>$id</sourceaccessioncode>
88
                                </specimenreplicate>
89
                            </plantobservation>
90
                        </aggregateoccurrence>
91
                        <authortaxoncode>$scientificName</authortaxoncode>
92 4834 aaronmk
                        <sourceaccessioncode>$id</sourceaccessioncode>
93 4621 aaronmk
                        <taxondetermination>
94
                            <party_id>
95
                                <party>
96
                                    <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
97
                                    <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
98
                                    <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
99
                                </party>
100
                            </party_id>
101 4718 aaronmk
                            <taxonpath_id>
102
                                <taxonpath>
103 4944 aaronmk
                                    <author>$scientificNameAuthorship</author>
104 4703 aaronmk
                                    <class>$class</class>
105
                                    <family>$family</family>
106
                                    <genus>$genus</genus>
107
                                    <kingdom>$kingdom</kingdom>
108
                                    <order>$order</order>
109
                                    <phylum>$phylum</phylum>
110
                                    <scientificname>$scientificName</scientificname>
111
                                    <species>$specificEpithet</species>
112
                                    <subspecies>
113
                                        <_name>
114
                                            <first>$taxonRank</first>
115
                                            <last>$infraspecificEpithet</last>
116
                                        </_name>
117
                                    </subspecies>
118 4718 aaronmk
                                </taxonpath>
119
                            </taxonpath_id>
120 4621 aaronmk
                            <determinationdate><_date><date><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></date></_date></determinationdate>
121
                            <taxonfit>$identificationQualifier</taxonfit>
122
                        </taxondetermination>
123
                        <verbatimcollectorname>$recordedBy</verbatimcollectorname>
124
                    </taxonoccurrence>
125
                </locationevent>
126
                <locationnarrative>
127
                    <_merge>
128
                        <1>$locality</1>
129
                        <3>
130
                            <_label>
131
                                <label>habitat</label>
132
                                <value>$habitat</value>
133
                            </_label>
134
                        </3>
135
                    </_merge>
136
                </locationnarrative>
137 4726 aaronmk
                <locationplace>
138 4727 aaronmk
                    <placepath_id>
139
                        <placepath>
140
                            <continent>$continent</continent>
141
                            <country>$country</country>
142
                            <county>$county</county>
143
                            <stateprovince>$stateProvince</stateprovince>
144
                        </placepath>
145
                    </placepath_id>
146 4726 aaronmk
                </locationplace>
147 4818 aaronmk
                <verbatimelevation>$verbatimElevation</verbatimelevation>
148 4621 aaronmk
            </location>
149
        </path>
150
    </_simplifyPath>
151 3641 aaronmk
</VegBIEN>
152 4727 aaronmk
Inserted 26 new rows into database