Revision 6403
Added by Aaron Marcuse-Kubitza over 11 years ago
test.xml.ref | ||
---|---|---|
1 | 1 |
Put template: |
2 | 2 |
<VegBIEN> |
3 |
<_simplifyPath id="-1"> |
|
4 |
<next>parent_id</next> |
|
3 |
<_setDefault id="-1"> |
|
4 |
<col>source_id</col> |
|
5 |
<value><source><shortname>CTFS</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<parent_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></parent_id> |
|
8 |
<authorlocationcode>$QuadratID</authorlocationcode> |
|
9 |
<locationevent> |
|
10 |
<parent_id> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<parent_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></parent_id> |
|
12 |
<authorlocationcode>$QuadratID</authorlocationcode> |
|
11 | 13 |
<locationevent> |
12 |
<location_id> |
|
13 |
<location> |
|
14 |
<sourceaccessioncode> |
|
15 |
<_if name="if subplot"> |
|
16 |
<cond>$QuadratID</cond> |
|
17 |
<then>$PlotID</then> |
|
18 |
</_if> |
|
19 |
</sourceaccessioncode> |
|
20 |
</location> |
|
21 |
</location_id> |
|
22 |
<sourceaccessioncode>$CensusID</sourceaccessioncode> |
|
23 |
</locationevent> |
|
24 |
</parent_id> |
|
25 |
<taxonoccurrence> |
|
26 |
<aggregateoccurrence> |
|
27 |
<plantobservation> |
|
14 |
<parent_id> |
|
15 |
<locationevent> |
|
16 |
<location_id> |
|
17 |
<location> |
|
18 |
<sourceaccessioncode> |
|
19 |
<_if name="if subplot"> |
|
20 |
<cond>$QuadratID</cond> |
|
21 |
<then>$PlotID</then> |
|
22 |
</_if> |
|
23 |
</sourceaccessioncode> |
|
24 |
</location> |
|
25 |
</location_id> |
|
26 |
<sourceaccessioncode>$CensusID</sourceaccessioncode> |
|
27 |
</locationevent> |
|
28 |
</parent_id> |
|
29 |
<taxonoccurrence> |
|
30 |
<aggregateoccurrence> |
|
31 |
<plantobservation> |
|
32 |
<sourceaccessioncode>$MeasureID</sourceaccessioncode> |
|
33 |
<stemobservation> |
|
34 |
<authorstemcode>$StemID</authorstemcode> |
|
35 |
<diameterbreastheight_m><_cm_to_m><value>$DBH</value></_cm_to_m></diameterbreastheight_m> |
|
36 |
<tag> |
|
37 |
<_alt> |
|
38 |
<0>$StemTag</0> |
|
39 |
<1>$Tag</1> |
|
40 |
</_alt> |
|
41 |
</tag> |
|
42 |
<xposition_m>$x</xposition_m> |
|
43 |
<yposition_m>$y</yposition_m> |
|
44 |
</stemobservation> |
|
45 |
</plantobservation> |
|
46 |
</aggregateoccurrence> |
|
47 |
<authortaxoncode> |
|
48 |
<_alt> |
|
49 |
<0>$StemTag</0> |
|
50 |
<1>$Tag</1> |
|
51 |
</_alt> |
|
52 |
</authortaxoncode> |
|
28 | 53 |
<sourceaccessioncode>$MeasureID</sourceaccessioncode> |
29 |
<stemobservation> |
|
30 |
<authorstemcode>$StemID</authorstemcode> |
|
31 |
<diameterbreastheight_m><_cm_to_m><value>$DBH</value></_cm_to_m></diameterbreastheight_m> |
|
32 |
<tag> |
|
33 |
<_alt> |
|
34 |
<0>$StemTag</0> |
|
35 |
<1>$Tag</1> |
|
36 |
</_alt> |
|
37 |
</tag> |
|
38 |
<xposition_m>$x</xposition_m> |
|
39 |
<yposition_m>$y</yposition_m> |
|
40 |
</stemobservation> |
|
41 |
</plantobservation> |
|
42 |
</aggregateoccurrence> |
|
43 |
<authortaxoncode> |
|
44 |
<_alt> |
|
45 |
<0>$StemTag</0> |
|
46 |
<1>$Tag</1> |
|
47 |
</_alt> |
|
48 |
</authortaxoncode> |
|
49 |
<sourceaccessioncode>$MeasureID</sourceaccessioncode> |
|
50 |
<taxondetermination> |
|
51 |
<taxonverbatim_id> |
|
52 |
<taxonverbatim> |
|
53 |
<taxonlabel_id> |
|
54 |
<taxonlabel> |
|
55 |
<matched_label_id> |
|
54 |
<taxondetermination> |
|
55 |
<taxonverbatim_id> |
|
56 |
<taxonverbatim> |
|
57 |
<taxonlabel_id> |
|
56 | 58 |
<taxonlabel> |
57 |
<source_id><source><shortname>TNRS</shortname></source></source_id> |
|
58 |
<taxonomicname> |
|
59 |
<_join_words> |
|
60 |
<1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1> |
|
61 |
<2> |
|
59 |
<matched_label_id> |
|
60 |
<taxonlabel> |
|
61 |
<source_id><source><shortname>TNRS</shortname></source></source_id> |
|
62 |
<taxonomicname> |
|
62 | 63 |
<_join_words> |
63 |
<1> |
|
64 |
<1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1> |
|
65 |
<2> |
|
64 | 66 |
<_join_words> |
65 |
<2>$Genus</2> |
|
66 |
<3>$SpeciesName</3> |
|
67 |
<4>$SubSpeciesName</4> |
|
67 |
<1> |
|
68 |
<_join_words> |
|
69 |
<2>$Genus</2> |
|
70 |
<3>$SpeciesName</3> |
|
71 |
<4>$SubSpeciesName</4> |
|
72 |
</_join_words> |
|
73 |
</1> |
|
74 |
<2>$SpeciesAuthority</2> |
|
68 | 75 |
</_join_words> |
69 |
</1> |
|
70 |
<2>$SpeciesAuthority</2> |
|
76 |
</2> |
|
71 | 77 |
</_join_words> |
72 |
</2> |
|
73 |
</_join_words> |
|
74 |
</taxonomicname> |
|
75 |
</taxonlabel> |
|
76 |
</matched_label_id> |
|
77 |
<parent_id> |
|
78 |
<taxonlabel> |
|
78 |
</taxonomicname> |
|
79 |
</taxonlabel> |
|
80 |
</matched_label_id> |
|
79 | 81 |
<parent_id> |
80 | 82 |
<taxonlabel> |
81 |
<rank>cultivar</rank> |
|
82 | 83 |
<parent_id> |
83 | 84 |
<taxonlabel> |
84 |
<rank>forma</rank>
|
|
85 |
<rank>cultivar</rank>
|
|
85 | 86 |
<parent_id> |
86 | 87 |
<taxonlabel> |
87 |
<rank>variety</rank>
|
|
88 |
<rank>forma</rank>
|
|
88 | 89 |
<parent_id> |
89 | 90 |
<taxonlabel> |
90 |
<rank>subspecies</rank> |
|
91 |
<taxonepithet>$SubSpeciesName</taxonepithet> |
|
91 |
<rank>variety</rank> |
|
92 | 92 |
<parent_id> |
93 | 93 |
<taxonlabel> |
94 |
<rank>species</rank> |
|
95 |
<taxonepithet>$SpeciesName</taxonepithet> |
|
94 |
<rank>subspecies</rank>
|
|
95 |
<taxonepithet>$SubSpeciesName</taxonepithet>
|
|
96 | 96 |
<parent_id> |
97 | 97 |
<taxonlabel> |
98 |
<rank>genus</rank>
|
|
99 |
<taxonepithet>$Genus</taxonepithet>
|
|
98 |
<rank>species</rank>
|
|
99 |
<taxonepithet>$SpeciesName</taxonepithet>
|
|
100 | 100 |
<parent_id> |
101 | 101 |
<taxonlabel> |
102 |
<rank>family</rank> |
|
103 |
<taxonepithet>$Family</taxonepithet> |
|
102 |
<rank>genus</rank> |
|
103 |
<taxonepithet>$Genus</taxonepithet> |
|
104 |
<parent_id> |
|
105 |
<taxonlabel> |
|
106 |
<rank>family</rank> |
|
107 |
<taxonepithet>$Family</taxonepithet> |
|
108 |
</taxonlabel> |
|
109 |
</parent_id> |
|
104 | 110 |
</taxonlabel> |
105 | 111 |
</parent_id> |
106 | 112 |
</taxonlabel> |
... | ... | |
115 | 121 |
</parent_id> |
116 | 122 |
</taxonlabel> |
117 | 123 |
</parent_id> |
118 |
</taxonlabel> |
|
119 |
</parent_id> |
|
120 |
<taxonomicname> |
|
121 |
<_join_words> |
|
122 |
<1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1> |
|
123 |
<2> |
|
124 |
<taxonomicname> |
|
124 | 125 |
<_join_words> |
125 |
<1> |
|
126 |
<1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1> |
|
127 |
<2> |
|
126 | 128 |
<_join_words> |
127 |
<2>$Genus</2> |
|
128 |
<3>$SpeciesName</3> |
|
129 |
<4>$SubSpeciesName</4> |
|
129 |
<1> |
|
130 |
<_join_words> |
|
131 |
<2>$Genus</2> |
|
132 |
<3>$SpeciesName</3> |
|
133 |
<4>$SubSpeciesName</4> |
|
134 |
</_join_words> |
|
135 |
</1> |
|
136 |
<2>$SpeciesAuthority</2> |
|
130 | 137 |
</_join_words> |
131 |
</1> |
|
132 |
<2>$SpeciesAuthority</2> |
|
138 |
</2> |
|
133 | 139 |
</_join_words> |
134 |
</2>
|
|
135 |
</_join_words>
|
|
136 |
</taxonomicname>
|
|
137 |
</taxonlabel>
|
|
138 |
</taxonlabel_id>
|
|
139 |
<author>$SpeciesAuthority</author>
|
|
140 |
<family>$Family</family>
|
|
141 |
<genus>$Genus</genus>
|
|
142 |
<specific_epithet>$SpeciesName</specific_epithet>
|
|
143 |
</taxonverbatim>
|
|
144 |
</taxonverbatim_id>
|
|
145 |
</taxondetermination>
|
|
146 |
</taxonoccurrence>
|
|
147 |
</locationevent>
|
|
148 |
<sourceaccessioncode>
|
|
149 |
<_join>
|
|
150 |
<1>$PlotID</1>
|
|
151 |
<2>$QuadratID</2>
|
|
152 |
</_join>
|
|
153 |
</sourceaccessioncode>
|
|
154 |
</location>
|
|
140 |
</taxonomicname>
|
|
141 |
</taxonlabel>
|
|
142 |
</taxonlabel_id>
|
|
143 |
<author>$SpeciesAuthority</author>
|
|
144 |
<family>$Family</family>
|
|
145 |
<genus>$Genus</genus>
|
|
146 |
<specific_epithet>$SpeciesName</specific_epithet>
|
|
147 |
</taxonverbatim>
|
|
148 |
</taxonverbatim_id>
|
|
149 |
</taxondetermination>
|
|
150 |
</taxonoccurrence>
|
|
151 |
</locationevent>
|
|
152 |
<sourceaccessioncode>
|
|
153 |
<_join>
|
|
154 |
<1>$PlotID</1>
|
|
155 |
<2>$QuadratID</2>
|
|
156 |
</_join>
|
|
157 |
</sourceaccessioncode>
|
|
158 |
</location>
|
|
159 |
</path>
|
|
160 |
</_simplifyPath>
|
|
155 | 161 |
</path> |
156 |
</_simplifyPath>
|
|
162 |
</_setDefault>
|
|
157 | 163 |
</VegBIEN> |
158 | 164 |
Inserted 20 new rows into database |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: Set the source_id col_default to the datasource name using the new _setDefault() built-in function and _env()