Project

General

Profile

1
Put template:
2
<VegBIEN>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
5
        <path>
6
            <location>
7
                <parent_id>
8
                    <location>
9
                        <authorlocationcode>$plot_code</authorlocationcode>
10
                        <sourceaccessioncode>$PLOT_ID</sourceaccessioncode>
11
                    </location>
12
                </parent_id>
13
                <authorlocationcode>$subplot</authorlocationcode>
14
                <locationevent>
15
                    <obsenddate><_date><date><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></date></_date></obsenddate>
16
                    <obsstartdate><_date><date><_dateRangeStart><value>$census_date</value></_dateRangeStart></date></_date></obsstartdate>
17
                    <taxonoccurrence>
18
                        <aggregateoccurrence>
19
                            <count>$no_of_individuals</count>
20
                            <cover_fraction><_pct_to_frac><value>$cover_percent</value></_pct_to_frac></cover_fraction>
21
                            <definedvalue fkey="tablerecord_id">
22
                                <userdefined_id>
23
                                    <userdefined>
24
                                        <tablename>aggregateoccurrence</tablename>
25
                                        <userdefinedname>censusNo</userdefinedname>
26
                                    </userdefined>
27
                                </userdefined_id>
28
                                <definedvalue>$census_no</definedvalue>
29
                            </definedvalue>
30
                            <linecover_m><_cm_to_m><value>$intercept_cm</value></_cm_to_m></linecover_m>
31
                            <plantobservation>
32
                                <collectionnumber>$individual_code</collectionnumber>
33
                                <sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode>
34
                                <specimenreplicate>
35
                                    <catalognumber_dwc>
36
                                        <_if name="if indirect voucher">
37
                                            <cond>
38
                                                <_eq>
39
                                                    <right>indirect</right>
40
                                                    <left>$det_type</left>
41
                                                </_eq>
42
                                            </cond>
43
                                            <else>
44
                                                <_alt>
45
                                                    <1>$coll_number</1>
46
                                                    <2>$voucher_string</2>
47
                                                </_alt>
48
                                            </else>
49
                                        </_if>
50
                                    </catalognumber_dwc>
51
                                </specimenreplicate>
52
                                <stemobservation>
53
                                    <basaldiameter_m>$basal_diam</basaldiameter_m>
54
                                    <definedvalue fkey="tablerecord_id">
55
                                        <userdefined_id>
56
                                            <userdefined>
57
                                                <tablename>stemobservation</tablename>
58
                                                <userdefinedname>canopyForm</userdefinedname>
59
                                            </userdefined>
60
                                        </userdefined_id>
61
                                        <definedvalue>$stem_canopy_form</definedvalue>
62
                                    </definedvalue>
63
                                    <definedvalue fkey="tablerecord_id">
64
                                        <userdefined_id>
65
                                            <userdefined>
66
                                                <tablename>stemobservation</tablename>
67
                                                <userdefinedname>canopyPosition</userdefinedname>
68
                                            </userdefined>
69
                                        </userdefined_id>
70
                                        <definedvalue>$stem_canopy_position</definedvalue>
71
                                    </definedvalue>
72
                                    <definedvalue fkey="tablerecord_id">
73
                                        <userdefined_id>
74
                                            <userdefined>
75
                                                <tablename>stemobservation</tablename>
76
                                                <userdefinedname>lianaInfestation</userdefinedname>
77
                                            </userdefined>
78
                                        </userdefined_id>
79
                                        <definedvalue>$stem_liana_infestation</definedvalue>
80
                                    </definedvalue>
81
                                    <definedvalue fkey="tablerecord_id">
82
                                        <userdefined_id>
83
                                            <userdefined>
84
                                                <tablename>stemobservation</tablename>
85
                                                <userdefinedname>notes</userdefinedname>
86
                                            </userdefined>
87
                                        </userdefined_id>
88
                                        <definedvalue>$notes</definedvalue>
89
                                    </definedvalue>
90
                                    <diameterbreastheight_m>$stem_dbh</diameterbreastheight_m>
91
                                    <height_m>
92
                                        <_alt>
93
                                            <1>$stem_height_m</1>
94
                                            <2>$height_m</2>
95
                                        </_alt>
96
                                    </height_m>
97
                                    <heightfirstbranch_m>
98
                                        <_alt>
99
                                            <0>$ht_first_branch_m</0>
100
                                            <1>$stem_height_first_branch_m</1>
101
                                        </_alt>
102
                                    </heightfirstbranch_m>
103
                                    <stemtag>
104
                                        <iscurrent>
105
                                            <_alt>
106
                                                <2>true</2>
107
                                                <1>false</1>
108
                                            </_alt>
109
                                        </iscurrent>
110
                                        <tag>
111
                                            <_alt>
112
                                                <1>$tag1</1>
113
                                                <2>$stem_tag1</2>
114
                                            </_alt>
115
                                        </tag>
116
                                    </stemtag>
117
                                    <stemtag>
118
                                        <iscurrent>true</iscurrent>
119
                                        <tag>
120
                                            <_alt>
121
                                                <1>$tag2</1>
122
                                                <2>$stem_tag2</2>
123
                                            </_alt>
124
                                        </tag>
125
                                    </stemtag>
126
                                    <xposition_m>$x_position</xposition_m>
127
                                    <yposition_m>$y_position</yposition_m>
128
                                </stemobservation>
129
                            </plantobservation>
130
                        </aggregateoccurrence>
131
                        <authortaxoncode>$individual_code</authortaxoncode>
132
                        <growthform>
133
                            <_map>
134
                                <T>tree</T>
135
                                <Arbol>tree</Arbol>
136
                                <palm>tree</palm>
137
                                <H>hemiepiphyte</H>
138
                                <Hemiepífito>hemiepiphyte</Hemiepífito>
139
                                <L>liana</L>
140
                                <l>liana</l>
141
                                <L?>liana</L?>
142
                                <Liana>liana</Liana>
143
                                <E>epiphyte</E>
144
                                <S>shrub</S>
145
                                <Hb>herb</Hb>
146
                                <vine-herbaceous>vine</vine-herbaceous>
147
                                <graminoid>grass</graminoid>
148
                                <rosette>forb</rosette>
149
                                <*>*</*>
150
                                <value>$habit</value>
151
                            </_map>
152
                        </growthform>
153
                        <sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode>
154
                        <taxondetermination>
155
                            <taxonpath_id>
156
                                <taxonpath>
157
                                    <family>$family</family>
158
                                    <genus>$genus</genus>
159
                                    <scientificnameauthor>$specific_authority</scientificnameauthor>
160
                                    <species>$specific_epithet</species>
161
                                    <subspecies>
162
                                        <_name>
163
                                            <first>$infra_rank_1</first>
164
                                            <last>$infra_ep_1</last>
165
                                        </_name>
166
                                    </subspecies>
167
                                </taxonpath>
168
                            </taxonpath_id>
169
                            <taxonfit>$cf_aff</taxonfit>
170
                        </taxondetermination>
171
                        <taxondetermination>
172
                            <isoriginal>true</isoriginal>
173
                            <taxonpath_id>
174
                                <taxonpath>
175
                                    <family>$orig_family</family>
176
                                    <species>$orig_species</species>
177
                                </taxonpath>
178
                            </taxonpath_id>
179
                        </taxondetermination>
180
                        <verbatimcollectorname>
181
                            <_name>
182
                                <first>$coll_firstname</first>
183
                                <last>$coll_lastname</last>
184
                            </_name>
185
                        </verbatimcollectorname>
186
                        <voucher>
187
                            <specimenreplicate_id>
188
                                <specimenreplicate>
189
                                    <catalognumber_dwc>
190
                                        <_if name="if indirect voucher">
191
                                            <cond>
192
                                                <_eq>
193
                                                    <right>indirect</right>
194
                                                    <left>$det_type</left>
195
                                                </_eq>
196
                                            </cond>
197
                                            <then>
198
                                                <_alt>
199
                                                    <1>$coll_number</1>
200
                                                    <2>$voucher_string</2>
201
                                                </_alt>
202
                                            </then>
203
                                        </_if>
204
                                    </catalognumber_dwc>
205
                                </specimenreplicate>
206
                            </specimenreplicate_id>
207
                        </voucher>
208
                    </taxonoccurrence>
209
                </locationevent>
210
            </location>
211
        </path>
212
    </_simplifyPath>
213
</VegBIEN>
214
Inserted 43 new rows into database
(5-5/6)