Project

General

Profile

1
Put template:
2
<VegBIEN>
3
    <_ignore><inLabel>SALVIAS</inLabel></_ignore>
4
    <stemobservation id="-1">
5
        <plantobservation_id>
6
            <plantobservation>
7
                <stemcount>$NoInd</stemcount>
8
                <sourceaccessioncode>$PlotObsID</sourceaccessioncode>
9
                <aggregateoccurrence merge="1"><taxonoccurrence_id merge="1"><taxonoccurrence><sourceaccessioncode><_alt><1>$PlotObsID</1></_alt></sourceaccessioncode></taxonoccurrence></taxonoccurrence_id></aggregateoccurrence>
10
                <_if>
11
                    <cond>
12
                        <_eq>
13
                            <left><_ref><addr>../../../../_ignore/voucherType</addr></_ref></left>
14
                            <right>direct</right>
15
                        </_eq>
16
                    </cond>
17
                    <then>
18
                        <specimenreplicate>
19
                            <datasource_id><party><organizationname><_alt><2>SALVIAS</2></_alt></organizationname></party></datasource_id>
20
                            <sourceaccessioncode><_alt><1>$PlotObsID</1></_alt></sourceaccessioncode>
21
                        </specimenreplicate>
22
                    </then>
23
                    <else>
24
                        <aggregateoccurrence merge="1">
25
                            <taxonoccurrence_id>
26
                                <taxonoccurrence>
27
                                    <voucher>
28
                                        <specimenreplicate_id>
29
                                            <specimenreplicate>
30
                                                <datasource_id><party><organizationname><_alt><2>SALVIAS</2></_alt></organizationname></party></datasource_id>
31
                                                <sourceaccessioncode><_alt><1>$PlotObsID</1></_alt></sourceaccessioncode>
32
                                            </specimenreplicate>
33
                                        </specimenreplicate_id>
34
                                    </voucher>
35
                                </taxonoccurrence>
36
                            </taxonoccurrence_id>
37
                        </aggregateoccurrence>
38
                    </else>
39
                </_if>
40
            </plantobservation>
41
        </plantobservation_id>
42
        <basaldiameter>$basal_diam</basaldiameter>
43
        <definedvalue fkey="tablerecord_id">
44
            <userdefined_id>
45
                <userdefined>
46
                    <tablename>stemobservation</tablename>
47
                    <userdefinedname>canopyForm</userdefinedname>
48
                </userdefined>
49
            </userdefined_id>
50
            <definedvalue>$stem_canopy_form</definedvalue>
51
        </definedvalue>
52
        <definedvalue fkey="tablerecord_id">
53
            <userdefined_id>
54
                <userdefined>
55
                    <tablename>stemobservation</tablename>
56
                    <userdefinedname>canopyPosition</userdefinedname>
57
                </userdefined>
58
            </userdefined_id>
59
            <definedvalue>$stem_canopy_position</definedvalue>
60
        </definedvalue>
61
        <definedvalue fkey="tablerecord_id">
62
            <userdefined_id>
63
                <userdefined>
64
                    <tablename>stemobservation</tablename>
65
                    <userdefinedname>gentryDiameter</userdefinedname>
66
                </userdefined>
67
            </userdefined_id>
68
            <definedvalue>$gentry_dbh</definedvalue>
69
        </definedvalue>
70
        <definedvalue fkey="tablerecord_id">
71
            <userdefined_id>
72
                <userdefined>
73
                    <tablename>stemobservation</tablename>
74
                    <userdefinedname>lianaInfestation</userdefinedname>
75
                </userdefined>
76
            </userdefined_id>
77
            <definedvalue>$stem_liana_infestation</definedvalue>
78
        </definedvalue>
79
        <definedvalue fkey="tablerecord_id">
80
            <userdefined_id>
81
                <userdefined>
82
                    <tablename>stemobservation</tablename>
83
                    <userdefinedname>notes</userdefinedname>
84
                </userdefined>
85
            </userdefined_id>
86
            <definedvalue>$stem_notes</definedvalue>
87
        </definedvalue>
88
        <diameterbreastheight>$stem_dbh</diameterbreastheight>
89
        <height>$stem_height_m</height>
90
        <heightfirstbranch>$stem_height_first_branch_m</heightfirstbranch>
91
        <stemtag>
92
            <iscurrent>
93
                <_alt>
94
                    <2>true</2>
95
                    <1>false</1>
96
                </_alt>
97
            </iscurrent>
98
            <tag>$stem_tag1</tag>
99
        </stemtag>
100
        <stemtag>
101
            <iscurrent>true</iscurrent>
102
            <tag>$stem_tag2</tag>
103
        </stemtag>
104
    </stemobservation>
105
</VegBIEN>
106
Inserted 28 new rows into database
(3-3/3)