Project

General

Profile

1 3641 aaronmk
Put template:
2
<VegBIEN>
3 6403 aaronmk
    <_setDefault id="-1">
4 10866 aaronmk
        <source_id><source><shortname>SALVIAS-CSV.new</shortname></source></source_id>
5 4621 aaronmk
        <path>
6 6403 aaronmk
            <_simplifyPath>
7
                <next>parent_id</next>
8
                <path>
9 4621 aaronmk
                    <location>
10 6403 aaronmk
                        <parent_id>
11
                            <location>
12
                                <authorlocationcode>$plot_code</authorlocationcode>
13
                                <sourceaccessioncode>$PLOT_ID</sourceaccessioncode>
14
                            </location>
15
                        </parent_id>
16
                        <authorlocationcode>$subplot</authorlocationcode>
17 5977 aaronmk
                        <locationevent>
18 6403 aaronmk
                            <parent_id>
19
                                <locationevent>
20
                                    <location_id>
21
                                        <location>
22
                                            <authorlocationcode>
23
                                                <_if name="if subplot">
24
                                                    <cond>$subplot</cond>
25
                                                    <then>$plot_code</then>
26
                                                </_if>
27
                                            </authorlocationcode>
28
                                            <sourceaccessioncode>
29
                                                <_if name="if subplot">
30
                                                    <cond>$subplot</cond>
31
                                                    <then>$PLOT_ID</then>
32
                                                </_if>
33
                                            </sourceaccessioncode>
34
                                        </location>
35
                                    </location_id>
36
                                    <obsenddate><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></obsenddate>
37
                                    <obsstartdate><_dateRangeStart><value>$census_date</value></_dateRangeStart></obsstartdate>
38
                                </locationevent>
39
                            </parent_id>
40 11107 aaronmk
                            <locationevent fkey="parent_id">
41
                                <taxonoccurrence>
42
                                    <aggregateoccurrence>
43
                                        <count>$no_of_individuals</count>
44
                                        <cover_fraction><_percent_to_fraction><value>$cover_percent</value></_percent_to_fraction></cover_fraction>
45
                                        <definedvalue fkey="tablerecord_id">
46
                                            <userdefined_id>
47
                                                <userdefined>
48
                                                    <tablename>aggregateoccurrence</tablename>
49
                                                    <userdefinedname>censusNo</userdefinedname>
50
                                                </userdefined>
51
                                            </userdefined_id>
52
                                            <definedvalue>$census_no</definedvalue>
53
                                        </definedvalue>
54
                                        <linecover_m><_cm_to_m><value>$intercept_cm</value></_cm_to_m></linecover_m>
55
                                        <plantobservation>
56
                                            <authorplantcode>$individual_code</authorplantcode>
57
                                            <sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode>
58
                                            <specimenreplicate>
59
                                                <collectionnumber>
60
                                                    <_if name="if indirect voucher">
61
                                                        <cond>
62
                                                            <_eq>
63
                                                                <right>indirect</right>
64
                                                                <left>$det_type</left>
65
                                                            </_eq>
66
                                                        </cond>
67
                                                        <else>
68
                                                            <_alt>
69
                                                                <1>$coll_number</1>
70
                                                                <2>$voucher_string</2>
71
                                                            </_alt>
72
                                                        </else>
73
                                                    </_if>
74
                                                </collectionnumber>
75
                                            </specimenreplicate>
76
                                            <stemobservation>
77
                                                <basaldiameter_m><_cm_to_m><value>$basal_diam</value></_cm_to_m></basaldiameter_m>
78
                                                <definedvalue fkey="tablerecord_id">
79
                                                    <userdefined_id>
80
                                                        <userdefined>
81
                                                            <tablename>stemobservation</tablename>
82
                                                            <userdefinedname>canopyForm</userdefinedname>
83
                                                        </userdefined>
84
                                                    </userdefined_id>
85
                                                    <definedvalue>$stem_canopy_form</definedvalue>
86
                                                </definedvalue>
87
                                                <definedvalue fkey="tablerecord_id">
88
                                                    <userdefined_id>
89
                                                        <userdefined>
90
                                                            <tablename>stemobservation</tablename>
91
                                                            <userdefinedname>canopyPosition</userdefinedname>
92
                                                        </userdefined>
93
                                                    </userdefined_id>
94
                                                    <definedvalue>$stem_canopy_position</definedvalue>
95
                                                </definedvalue>
96
                                                <definedvalue fkey="tablerecord_id">
97
                                                    <userdefined_id>
98
                                                        <userdefined>
99
                                                            <tablename>stemobservation</tablename>
100
                                                            <userdefinedname>lianaInfestation</userdefinedname>
101
                                                        </userdefined>
102
                                                    </userdefined_id>
103
                                                    <definedvalue>$stem_liana_infestation</definedvalue>
104
                                                </definedvalue>
105
                                                <definedvalue fkey="tablerecord_id">
106
                                                    <userdefined_id>
107
                                                        <userdefined>
108
                                                            <tablename>stemobservation</tablename>
109
                                                            <userdefinedname>notes</userdefinedname>
110
                                                        </userdefined>
111
                                                    </userdefined_id>
112
                                                    <definedvalue>$notes</definedvalue>
113
                                                </definedvalue>
114
                                                <diameterbreastheight_m><_cm_to_m><value>$stem_dbh</value></_cm_to_m></diameterbreastheight_m>
115
                                                <height_m>
116
                                                    <_alt>
117
                                                        <1>$stem_height_m</1>
118
                                                        <2>$height_m</2>
119
                                                    </_alt>
120
                                                </height_m>
121
                                                <heightfirstbranch_m>
122
                                                    <_alt>
123
                                                        <0>$ht_first_branch_m</0>
124
                                                        <1>$stem_height_first_branch_m</1>
125
                                                    </_alt>
126
                                                </heightfirstbranch_m>
127
                                                <tag>
128
                                                    <_alt>
129
                                                        <1>
130
                                                            <_alt>
131
                                                                <1>$stem_tag2</1>
132
                                                                <2>$stem_tag1</2>
133
                                                            </_alt>
134
                                                        </1>
135
                                                        <2>
136
                                                            <_alt>
137
                                                                <1>$tag2</1>
138
                                                                <2>$tag1</2>
139
                                                            </_alt>
140
                                                        </2>
141
                                                    </_alt>
142
                                                </tag>
143
                                                <xposition_m>$x_position</xposition_m>
144
                                                <yposition_m>$y_position</yposition_m>
145
                                            </stemobservation>
146
                                        </plantobservation>
147
                                    </aggregateoccurrence>
148
                                    <authortaxoncode>$individual_code</authortaxoncode>
149
                                    <collector_id>
150
                                        <party>
151
                                            <fullname>
152
                                                <_join_words>
153
                                                    <1>$coll_firstname</1>
154
                                                    <2>$coll_lastname</2>
155
                                                </_join_words>
156
                                            </fullname>
157
                                        </party>
158
                                    </collector_id>
159
                                    <growthform>
160
                                        <_map>
161
                                            <T>tree</T>
162
                                            <Arbol>tree</Arbol>
163
                                            <palm>tree</palm>
164
                                            <H>hemiepiphyte</H>
165
                                            <Hemiepífito>hemiepiphyte</Hemiepífito>
166
                                            <L>liana</L>
167
                                            <l>liana</l>
168
                                            <L?>liana</L?>
169
                                            <Liana>liana</Liana>
170
                                            <E>epiphyte</E>
171
                                            <S>shrub</S>
172
                                            <Hb>herb</Hb>
173
                                            <vine-herbaceous>vine</vine-herbaceous>
174
                                            <graminoid>grass</graminoid>
175
                                            <rosette>forb</rosette>
176
                                            <*>*</*>
177
                                            <value>$habit</value>
178
                                        </_map>
179
                                    </growthform>
180
                                    <sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode>
181
                                    <taxondetermination>
182
                                        <taxonverbatim_id>
183
                                            <taxonverbatim>
184
                                                <taxonlabel_id>
185
                                                    <taxonlabel>
186
                                                        <parent_id>
187
                                                            <taxonlabel>
188
                                                                <rank>$infra_rank_1</rank>
189
                                                                <parent_id>
190
                                                                    <taxonlabel>
191
                                                                        <rank>cultivar</rank>
192
                                                                        <parent_id>
193
                                                                            <taxonlabel>
194
                                                                                <rank>forma</rank>
195
                                                                                <parent_id>
196
                                                                                    <taxonlabel>
197
                                                                                        <rank>variety</rank>
198
                                                                                        <parent_id>
199
                                                                                            <taxonlabel>
200
                                                                                                <rank>subspecies</rank>
201
                                                                                                <parent_id>
202
                                                                                                    <taxonlabel>
203
                                                                                                        <rank>species</rank>
204
                                                                                                        <taxonepithet>$specific_epithet</taxonepithet>
205
                                                                                                        <parent_id>
206
                                                                                                            <taxonlabel>
207
                                                                                                                <rank>genus</rank>
208
                                                                                                                <taxonepithet>$genus</taxonepithet>
209
                                                                                                                <parent_id>
210
                                                                                                                    <taxonlabel>
211
                                                                                                                        <rank>family</rank>
212
                                                                                                                        <taxonepithet>$family</taxonepithet>
213
                                                                                                                    </taxonlabel>
214
                                                                                                                </parent_id>
215
                                                                                                            </taxonlabel>
216
                                                                                                        </parent_id>
217
                                                                                                    </taxonlabel>
218
                                                                                                </parent_id>
219
                                                                                            </taxonlabel>
220
                                                                                        </parent_id>
221
                                                                                    </taxonlabel>
222
                                                                                </parent_id>
223
                                                                            </taxonlabel>
224
                                                                        </parent_id>
225
                                                                    </taxonlabel>
226
                                                                </parent_id>
227
                                                                <taxonepithet>$infra_ep_1</taxonepithet>
228
                                                            </taxonlabel>
229
                                                        </parent_id>
230
                                                        <rank>$infra_rank_1</rank>
231
                                                        <taxonomicname>
232
                                                            <_merge_prefix>
233
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
234
                                                                <value>
235
                                                                    <_join_words>
236
                                                                        <1>
237
                                                                            <_join_words>
238
                                                                                <2><_filter_genus><value>$genus</value></_filter_genus></2>
239
                                                                                <3>$specific_epithet</3>
240
                                                                                <5>
241
                                                                                    <_join_words>
242
                                                                                        <1>
243
                                                                                            <_if name="if has infraspecificEpithet">
244
                                                                                                <cond>$infra_ep_1</cond>
245
                                                                                                <then>$infra_rank_1</then>
246
                                                                                            </_if>
247
                                                                                        </1>
248
                                                                                        <2>$infra_ep_1</2>
249
                                                                                    </_join_words>
250
                                                                                </5>
251
                                                                            </_join_words>
252
                                                                        </1>
253
                                                                        <2>$specific_authority</2>
254
                                                                    </_join_words>
255
                                                                </value>
256
                                                            </_merge_prefix>
257
                                                        </taxonomicname>
258
                                                    </taxonlabel>
259
                                                </taxonlabel_id>
260
                                                <author>$specific_authority</author>
261
                                                <family>$family</family>
262
                                                <genus>$genus</genus>
263
                                                <specific_epithet>$specific_epithet</specific_epithet>
264
                                                <verbatimrank>$infra_rank_1</verbatimrank>
265
                                            </taxonverbatim>
266
                                        </taxonverbatim_id>
267
                                        <taxonfit>$cf_aff</taxonfit>
268
                                    </taxondetermination>
269
                                    <taxondetermination>
270
                                        <isoriginal>true</isoriginal>
271
                                        <taxonverbatim_id>
272
                                            <taxonverbatim>
273
                                                <family>$orig_family</family>
274
                                                <specific_epithet>$orig_species</specific_epithet>
275
                                            </taxonverbatim>
276
                                        </taxonverbatim_id>
277
                                    </taxondetermination>
278
                                    <voucher>
279
                                        <specimenreplicate_id>
280
                                            <specimenreplicate>
281
                                                <collectionnumber>
282
                                                    <_if name="if indirect voucher">
283
                                                        <cond>
284
                                                            <_eq>
285
                                                                <right>indirect</right>
286
                                                                <left>$det_type</left>
287
                                                            </_eq>
288
                                                        </cond>
289
                                                        <then>
290
                                                            <_alt>
291
                                                                <1>$coll_number</1>
292
                                                                <2>$voucher_string</2>
293
                                                            </_alt>
294
                                                        </then>
295
                                                    </_if>
296
                                                </collectionnumber>
297
                                            </specimenreplicate>
298
                                        </specimenreplicate_id>
299
                                    </voucher>
300
                                </taxonoccurrence>
301
                            </locationevent>
302 6217 aaronmk
                            <obsenddate><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></obsenddate>
303
                            <obsstartdate><_dateRangeStart><value>$census_date</value></_dateRangeStart></obsstartdate>
304 6403 aaronmk
                        </locationevent>
305
                        <sourceaccessioncode>
306
                            <_join>
307
                                <1>$PLOT_ID</1>
308
                                <2>$subplot</2>
309
                            </_join>
310
                        </sourceaccessioncode>
311
                    </location>
312
                </path>
313
            </_simplifyPath>
314 4621 aaronmk
        </path>
315 6403 aaronmk
    </_setDefault>
316 3641 aaronmk
</VegBIEN>
317 7175 aaronmk
Inserted 45 new rows into database