Project

General

Profile

1 3641 aaronmk
Put template:
2
<VegBIEN>
3 3786 aaronmk
    <location id="-1">
4 4003 aaronmk
        <authorlocationcode>
5
            <_merge>
6
                <1>$institutionCode</1>
7
                <2>$collectionCode</2>
8
                <3>$catalogNumber</3>
9
            </_merge>
10
        </authorlocationcode>
11 3996 aaronmk
        <elevation>
12
            <_alt>
13
                <1>
14
                    <_replace>
15
                        <\bca\.?></\bca\.?>
16
                        <value>$verbatimElevation</value>
17
                    </_replace>
18
                </1>
19
            </_alt>
20
        </elevation>
21 3786 aaronmk
        <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 3641 aaronmk
                                        <namedplace>
58 3786 aaronmk
                                            <rank>country</rank>
59
                                            <placename>$country</placename>
60 3641 aaronmk
                                            <parent_id>
61
                                                <namedplace>
62 3786 aaronmk
                                                    <rank>continent</rank>
63
                                                    <placename>$continent</placename>
64 3641 aaronmk
                                                </namedplace>
65
                                            </parent_id>
66
                                        </namedplace>
67 3786 aaronmk
                                    </parent_id>
68
                                </namedplace>
69
                            </parent_id>
70
                        </namedplace>
71
                    </path>
72
                </_simplifyPath>
73
            </namedplace_id>
74
        </locationdetermination>
75
        <locationevent>
76 3907 aaronmk
            <taxonoccurrence>
77
                <aggregateoccurrence>
78 3919 aaronmk
                    <collectiondate><_date><date><_dateRangeStart><value><_alt><2>$eventDate</2></_alt></value></_dateRangeStart></date></_date></collectiondate>
79 3907 aaronmk
                    <plantobservation>
80 4007 aaronmk
                        <authorplantcode><_alt><2>$recordNumber</2></_alt></authorplantcode>
81 4006 aaronmk
                        <sourceaccessioncode>$id</sourceaccessioncode>
82 3907 aaronmk
                        <specimenreplicate>
83 3946 aaronmk
                            <_if name="if indirect voucher"><else><catalognumber_dwc>$catalogNumber</catalognumber_dwc></else></_if>
84 3962 aaronmk
                            <collectioncode_dwc>
85 3907 aaronmk
                                <_alt>
86 3962 aaronmk
                                    <1>$collectionCode</1>
87 3907 aaronmk
                                    <2>$collectionID</2>
88
                                </_alt>
89 3962 aaronmk
                            </collectioncode_dwc>
90 3973 aaronmk
                            <collectionnumber><_alt><2>$recordNumber</2></_alt></collectionnumber>
91 3907 aaronmk
                            <institution_id><party><organizationname>$institutionCode</organizationname></party></institution_id>
92
                            <sourceaccessioncode>$id</sourceaccessioncode>
93
                        </specimenreplicate>
94
                    </plantobservation>
95
                </aggregateoccurrence>
96 4007 aaronmk
                <sourceaccessioncode>
97
                    <_alt>
98
                        <1>$id</1>
99
                        <2><_alt><2>$recordNumber</2></_alt></2>
100
                    </_alt>
101
                </sourceaccessioncode>
102 3786 aaronmk
                <taxondetermination>
103 3980 aaronmk
                    <isoriginal>true</isoriginal>
104 3786 aaronmk
                    <role>identifier</role>
105
                    <party_id>
106
                        <party>
107
                            <givenname><_namePart><first>$identifiedBy</first></_namePart></givenname>
108
                            <middlename><_namePart><middle>$identifiedBy</middle></_namePart></middlename>
109
                            <surname><_namePart><last>$identifiedBy</last></_namePart></surname>
110
                        </party>
111
                    </party_id>
112
                    <plantconcept_id>
113
                        <plantconcept>
114
                            <plantname_id>
115
                                <_simplifyPath>
116
                                    <next>parent_id/plantname</next>
117
                                    <require>plantname</require>
118
                                    <path>
119 3641 aaronmk
                                        <plantname>
120 3786 aaronmk
                                            <rank>binomial</rank>
121
                                            <plantname>$scientificName</plantname>
122 3641 aaronmk
                                            <parent_id>
123
                                                <plantname>
124 3786 aaronmk
                                                    <rank>authority</rank>
125
                                                    <plantname>$scientificNameAuthorship</plantname>
126 3641 aaronmk
                                                    <parent_id>
127
                                                        <plantname>
128 3786 aaronmk
                                                            <rank>subspecies</rank>
129
                                                            <plantname>$infraspecificEpithet</plantname>
130 3641 aaronmk
                                                            <parent_id>
131
                                                                <plantname>
132 3786 aaronmk
                                                                    <rank>species</rank>
133
                                                                    <plantname>$specificEpithet</plantname>
134 3641 aaronmk
                                                                    <parent_id>
135
                                                                        <plantname>
136 3786 aaronmk
                                                                            <rank>genus</rank>
137
                                                                            <plantname>$genus</plantname>
138 3641 aaronmk
                                                                            <parent_id>
139
                                                                                <plantname>
140 3786 aaronmk
                                                                                    <rank>family</rank>
141
                                                                                    <plantname>$family</plantname>
142 3641 aaronmk
                                                                                    <parent_id>
143
                                                                                        <plantname>
144 3786 aaronmk
                                                                                            <rank>order</rank>
145
                                                                                            <plantname>$order</plantname>
146 3641 aaronmk
                                                                                            <parent_id>
147
                                                                                                <plantname>
148 3786 aaronmk
                                                                                                    <rank>class</rank>
149
                                                                                                    <plantname>$class</plantname>
150 3641 aaronmk
                                                                                                    <parent_id>
151
                                                                                                        <plantname>
152 3786 aaronmk
                                                                                                            <rank>subkingdom</rank>
153
                                                                                                            <plantname>$phylum</plantname>
154
                                                                                                            <parent_id>
155
                                                                                                                <plantname>
156
                                                                                                                    <rank>kingdom</rank>
157
                                                                                                                    <plantname>$kingdom</plantname>
158
                                                                                                                </plantname>
159
                                                                                                            </parent_id>
160 3641 aaronmk
                                                                                                        </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 3786 aaronmk
                                    </path>
178
                                </_simplifyPath>
179
                            </plantname_id>
180
                        </plantconcept>
181
                    </plantconcept_id>
182 3980 aaronmk
                    <determinationdate><_date><date><_dateRangeStart><value><_alt><2>$dateIdentified</2></_alt></value></_dateRangeStart></date></_date></determinationdate>
183 3786 aaronmk
                </taxondetermination>
184 3934 aaronmk
                <verbatimcollectorname>$recordedBy</verbatimcollectorname>
185 3907 aaronmk
            </taxonoccurrence>
186 3786 aaronmk
        </locationevent>
187
        <locationnarrative>
188
            <_merge>
189
                <1>$locality</1>
190
                <3>
191
                    <_label>
192
                        <label>habitat</label>
193
                        <value>$habitat</value>
194
                    </_label>
195
                </3>
196
            </_merge>
197
        </locationnarrative>
198 4005 aaronmk
        <sourceaccessioncode><_alt><1>$id</1></_alt></sourceaccessioncode>
199 3786 aaronmk
    </location>
200 3641 aaronmk
</VegBIEN>
201 3907 aaronmk
Inserted 38 new rows into database