Project

General

Profile

« Previous | Next » 

Revision 10419

inputs/CTFS/: switched to new-style import, using the steps at wiki.vegpath.org/Adding_new-style_import_to_a_datasource

View differences:

test.xml.ref
7 7
                <next>parent_id</next>
8 8
                <path>
9 9
                    <location>
10
                        <parent_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></parent_id>
11
                        <authorlocationcode>$QuadratID</authorlocationcode>
10
                        <parent_id><location><sourceaccessioncode>$locationID</sourceaccessioncode></location></parent_id>
11
                        <authorlocationcode>$subplot</authorlocationcode>
12 12
                        <locationevent>
13 13
                            <parent_id>
14 14
                                <locationevent>
......
16 16
                                        <location>
17 17
                                            <sourceaccessioncode>
18 18
                                                <_if name="if subplot">
19
                                                    <cond>$QuadratID</cond>
20
                                                    <then>$PlotID</then>
19
                                                    <cond>$subplot</cond>
20
                                                    <then>$locationID</then>
21 21
                                                </_if>
22 22
                                            </sourceaccessioncode>
23 23
                                        </location>
24 24
                                    </location_id>
25
                                    <sourceaccessioncode>$CensusID</sourceaccessioncode>
25
                                    <sourceaccessioncode>$eventID</sourceaccessioncode>
26 26
                                </locationevent>
27 27
                            </parent_id>
28 28
                            <taxonoccurrence>
29 29
                                <aggregateoccurrence>
30 30
                                    <plantobservation>
31
                                        <sourceaccessioncode>$MeasureID</sourceaccessioncode>
31
                                        <sourceaccessioncode>$individualID</sourceaccessioncode>
32 32
                                        <stemobservation>
33
                                            <authorstemcode>$StemID</authorstemcode>
34
                                            <diameterbreastheight_m><_cm_to_m><value>$DBH</value></_cm_to_m></diameterbreastheight_m>
33
                                            <authorstemcode>$authorStemCode</authorstemcode>
34
                                            <diameterbreastheight_m><_cm_to_m><value>$diameterBreastHeight_cm</value></_cm_to_m></diameterbreastheight_m>
35 35
                                            <tag>$tag</tag>
36
                                            <xposition_m>$x</xposition_m>
37
                                            <yposition_m>$y</yposition_m>
36
                                            <xposition_m>$organismX_m</xposition_m>
37
                                            <yposition_m>$organismY_m</yposition_m>
38 38
                                        </stemobservation>
39 39
                                    </plantobservation>
40 40
                                </aggregateoccurrence>
41 41
                                <authortaxoncode>$tag</authortaxoncode>
42
                                <sourceaccessioncode>$MeasureID</sourceaccessioncode>
42
                                <sourceaccessioncode>$individualID</sourceaccessioncode>
43 43
                                <taxondetermination>
44 44
                                    <taxonverbatim_id>
45 45
                                        <taxonverbatim>
......
59 59
                                                                                    <parent_id>
60 60
                                                                                        <taxonlabel>
61 61
                                                                                            <rank>subspecies</rank>
62
                                                                                            <taxonepithet>$SubSpeciesName</taxonepithet>
62
                                                                                            <taxonepithet>$subspecies</taxonepithet>
63 63
                                                                                            <parent_id>
64 64
                                                                                                <taxonlabel>
65 65
                                                                                                    <rank>species</rank>
66
                                                                                                    <taxonepithet>$SpeciesName</taxonepithet>
66
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
67 67
                                                                                                    <parent_id>
68 68
                                                                                                        <taxonlabel>
69 69
                                                                                                            <rank>genus</rank>
70
                                                                                                            <taxonepithet>$Genus</taxonepithet>
70
                                                                                                            <taxonepithet>$genus</taxonepithet>
71 71
                                                                                                            <parent_id>
72 72
                                                                                                                <taxonlabel>
73 73
                                                                                                                    <rank>family</rank>
74
                                                                                                                    <taxonepithet>$Family</taxonepithet>
74
                                                                                                                    <taxonepithet>$family</taxonepithet>
75 75
                                                                                                                </taxonlabel>
76 76
                                                                                                            </parent_id>
77 77
                                                                                                        </taxonlabel>
......
90 90
                                                    </parent_id>
91 91
                                                    <taxonomicname>
92 92
                                                        <_merge_prefix>
93
                                                            <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
93
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
94 94
                                                            <value>
95 95
                                                                <_join_words>
96 96
                                                                    <1>
97 97
                                                                        <_join_words>
98
                                                                            <2><_filter_genus><value>$Genus</value></_filter_genus></2>
99
                                                                            <3>$SpeciesName</3>
100
                                                                            <4>$SubSpeciesName</4>
98
                                                                            <2><_filter_genus><value>$genus</value></_filter_genus></2>
99
                                                                            <3>$specificEpithet</3>
100
                                                                            <4>$subspecies</4>
101 101
                                                                        </_join_words>
102 102
                                                                    </1>
103
                                                                    <2>$SpeciesAuthority</2>
103
                                                                    <2>$scientificNameAuthorship</2>
104 104
                                                                </_join_words>
105 105
                                                            </value>
106 106
                                                        </_merge_prefix>
107 107
                                                    </taxonomicname>
108 108
                                                </taxonlabel>
109 109
                                            </taxonlabel_id>
110
                                            <author>$SpeciesAuthority</author>
111
                                            <family>$Family</family>
112
                                            <genus>$Genus</genus>
113
                                            <specific_epithet>$SpeciesName</specific_epithet>
110
                                            <author>$scientificNameAuthorship</author>
111
                                            <family>$family</family>
112
                                            <genus>$genus</genus>
113
                                            <specific_epithet>$specificEpithet</specific_epithet>
114 114
                                        </taxonverbatim>
115 115
                                    </taxonverbatim_id>
116 116
                                </taxondetermination>
......
118 118
                        </locationevent>
119 119
                        <sourceaccessioncode>
120 120
                            <_join>
121
                                <1>$PlotID</1>
122
                                <2>$QuadratID</2>
121
                                <1>$locationID</1>
122
                                <2>$subplot</2>
123 123
                            </_join>
124 124
                        </sourceaccessioncode>
125 125
                    </location>

Also available in: Unified diff