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>bien_web</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<authorlocationcode>$plotCode</authorlocationcode> |
|
8 |
<sourceaccessioncode>$plotID</sourceaccessioncode> |
|
9 |
<area_m2><_ha_to_m2><value>$plotAreaHa</value></_ha_to_m2></area_m2> |
|
10 |
<elevation_m>$elevation_m</elevation_m> |
|
11 |
<locationevent> |
|
12 |
<method_id><method><name>$plotMethod</name></method></method_id> |
|
13 |
<taxonoccurrence> |
|
14 |
<aggregateoccurrence> |
|
15 |
<collectiondate>$observationDate</collectiondate> |
|
16 |
<cover_fraction><_percent_to_fraction><value>$pctCover</value></_percent_to_fraction></cover_fraction> |
|
17 |
<plantobservation> |
|
18 |
<collectionnumber>$collectionNumber</collectionnumber> |
|
19 |
<specimenreplicate> |
|
20 |
<institution_id> |
|
21 |
<sourcename> |
|
22 |
<matched_source_id><source><shortname>$dataSourceName</shortname></source></matched_source_id> |
|
23 |
<name>$dataSourceName</name> |
|
24 |
</sourcename> |
|
25 |
</institution_id> |
|
26 |
<sourceaccessioncode>$observationID</sourceaccessioncode> |
|
27 |
</specimenreplicate> |
|
28 |
</plantobservation> |
|
29 |
</aggregateoccurrence> |
|
30 |
<authortaxoncode>$collectionNumber</authortaxoncode> |
|
31 |
<collector_id><party><fullname>$collector</fullname></party></collector_id> |
|
32 |
<iscultivated>$isCultivated</iscultivated> |
|
33 |
<sourceaccessioncode>$observationID</sourceaccessioncode> |
|
34 |
<taxondetermination> |
|
35 |
<party_id><party><fullname>$identifiedBy</fullname></party></party_id> |
|
36 |
<taxonverbatim_id> |
|
37 |
<taxonverbatim> |
|
38 |
<taxonlabel_id> |
|
39 |
<taxonlabel> |
|
40 |
<matched_label_id> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<authorlocationcode>$plotCode</authorlocationcode> |
|
12 |
<sourceaccessioncode>$plotID</sourceaccessioncode> |
|
13 |
<area_m2><_ha_to_m2><value>$plotAreaHa</value></_ha_to_m2></area_m2> |
|
14 |
<elevation_m>$elevation_m</elevation_m> |
|
15 |
<locationevent> |
|
16 |
<method_id><method><name>$plotMethod</name></method></method_id> |
|
17 |
<taxonoccurrence> |
|
18 |
<aggregateoccurrence> |
|
19 |
<collectiondate>$observationDate</collectiondate> |
|
20 |
<cover_fraction><_percent_to_fraction><value>$pctCover</value></_percent_to_fraction></cover_fraction> |
|
21 |
<plantobservation> |
|
22 |
<collectionnumber>$collectionNumber</collectionnumber> |
|
23 |
<specimenreplicate> |
|
24 |
<institution_id> |
|
25 |
<sourcename> |
|
26 |
<matched_source_id><source><shortname>$dataSourceName</shortname></source></matched_source_id> |
|
27 |
<name>$dataSourceName</name> |
|
28 |
</sourcename> |
|
29 |
</institution_id> |
|
30 |
<sourceaccessioncode>$observationID</sourceaccessioncode> |
|
31 |
</specimenreplicate> |
|
32 |
</plantobservation> |
|
33 |
</aggregateoccurrence> |
|
34 |
<authortaxoncode>$collectionNumber</authortaxoncode> |
|
35 |
<collector_id><party><fullname>$collector</fullname></party></collector_id> |
|
36 |
<iscultivated>$isCultivated</iscultivated> |
|
37 |
<sourceaccessioncode>$observationID</sourceaccessioncode> |
|
38 |
<taxondetermination> |
|
39 |
<party_id><party><fullname>$identifiedBy</fullname></party></party_id> |
|
40 |
<taxonverbatim_id> |
|
41 |
<taxonverbatim> |
|
42 |
<taxonlabel_id> |
|
41 | 43 |
<taxonlabel> |
42 |
<source_id><source><shortname>TNRS</shortname></source></source_id> |
|
43 |
<taxonomicname> |
|
44 |
<_join_words> |
|
45 |
<1> |
|
46 |
<_taxon_family_require_std> |
|
47 |
<family> |
|
48 |
<_nullIf> |
|
49 |
<null>$taxon</null> |
|
50 |
<value>$family</value> |
|
51 |
</_nullIf> |
|
52 |
</family> |
|
53 |
</_taxon_family_require_std> |
|
54 |
</1> |
|
55 |
<2> |
|
56 |
<_alt> |
|
57 |
<1>$taxon</1> |
|
44 |
<matched_label_id> |
|
45 |
<taxonlabel> |
|
46 |
<source_id><source><shortname>TNRS</shortname></source></source_id> |
|
47 |
<taxonomicname> |
|
48 |
<_join_words> |
|
49 |
<1> |
|
50 |
<_taxon_family_require_std> |
|
51 |
<family> |
|
52 |
<_nullIf> |
|
53 |
<null>$taxon</null> |
|
54 |
<value>$family</value> |
|
55 |
</_nullIf> |
|
56 |
</family> |
|
57 |
</_taxon_family_require_std> |
|
58 |
</1> |
|
58 | 59 |
<2> |
59 |
<_join_words> |
|
60 |
<1> |
|
60 |
<_alt> |
|
61 |
<1>$taxon</1> |
|
62 |
<2> |
|
61 | 63 |
<_join_words> |
62 |
<2>$genus</2> |
|
63 |
<3>$species</3> |
|
64 |
<1> |
|
65 |
<_join_words> |
|
66 |
<2>$genus</2> |
|
67 |
<3>$species</3> |
|
68 |
</_join_words> |
|
69 |
</1> |
|
70 |
<2>$taxonAuthor</2> |
|
64 | 71 |
</_join_words> |
65 |
</1> |
|
66 |
<2>$taxonAuthor</2> |
|
67 |
</_join_words> |
|
72 |
</2> |
|
73 |
</_alt> |
|
68 | 74 |
</2> |
69 |
</_alt> |
|
70 |
</2> |
|
71 |
</_join_words> |
|
72 |
</taxonomicname> |
|
73 |
</taxonlabel> |
|
74 |
</matched_label_id> |
|
75 |
<parent_id> |
|
76 |
<taxonlabel> |
|
75 |
</_join_words> |
|
76 |
</taxonomicname> |
|
77 |
</taxonlabel> |
|
78 |
</matched_label_id> |
|
77 | 79 |
<parent_id> |
78 | 80 |
<taxonlabel> |
79 |
<rank>cultivar</rank> |
|
80 | 81 |
<parent_id> |
81 | 82 |
<taxonlabel> |
82 |
<rank>forma</rank>
|
|
83 |
<rank>cultivar</rank>
|
|
83 | 84 |
<parent_id> |
84 | 85 |
<taxonlabel> |
85 |
<rank>variety</rank>
|
|
86 |
<rank>forma</rank>
|
|
86 | 87 |
<parent_id> |
87 | 88 |
<taxonlabel> |
88 |
<rank>subspecies</rank>
|
|
89 |
<rank>variety</rank>
|
|
89 | 90 |
<parent_id> |
90 | 91 |
<taxonlabel> |
91 |
<rank>species</rank> |
|
92 |
<taxonepithet>$species</taxonepithet> |
|
92 |
<rank>subspecies</rank> |
|
93 | 93 |
<parent_id> |
94 | 94 |
<taxonlabel> |
95 |
<rank>genus</rank>
|
|
96 |
<taxonepithet>$genus</taxonepithet>
|
|
95 |
<rank>species</rank>
|
|
96 |
<taxonepithet>$species</taxonepithet>
|
|
97 | 97 |
<parent_id> |
98 | 98 |
<taxonlabel> |
99 |
<rank>family</rank> |
|
100 |
<taxonepithet>$family</taxonepithet> |
|
99 |
<rank>genus</rank> |
|
100 |
<taxonepithet>$genus</taxonepithet> |
|
101 |
<parent_id> |
|
102 |
<taxonlabel> |
|
103 |
<rank>family</rank> |
|
104 |
<taxonepithet>$family</taxonepithet> |
|
105 |
</taxonlabel> |
|
106 |
</parent_id> |
|
101 | 107 |
</taxonlabel> |
102 | 108 |
</parent_id> |
103 | 109 |
</taxonlabel> |
... | ... | |
112 | 118 |
</parent_id> |
113 | 119 |
</taxonlabel> |
114 | 120 |
</parent_id> |
115 |
</taxonlabel> |
|
116 |
</parent_id> |
|
117 |
<taxonomicname> |
|
118 |
<_join_words> |
|
119 |
<1> |
|
120 |
<_taxon_family_require_std> |
|
121 |
<family> |
|
122 |
<_nullIf> |
|
123 |
<null>$taxon</null> |
|
124 |
<value>$family</value> |
|
125 |
</_nullIf> |
|
126 |
</family> |
|
127 |
</_taxon_family_require_std> |
|
128 |
</1> |
|
129 |
<2> |
|
130 |
<_alt> |
|
131 |
<1>$taxon</1> |
|
121 |
<taxonomicname> |
|
122 |
<_join_words> |
|
123 |
<1> |
|
124 |
<_taxon_family_require_std> |
|
125 |
<family> |
|
126 |
<_nullIf> |
|
127 |
<null>$taxon</null> |
|
128 |
<value>$family</value> |
|
129 |
</_nullIf> |
|
130 |
</family> |
|
131 |
</_taxon_family_require_std> |
|
132 |
</1> |
|
132 | 133 |
<2> |
133 |
<_join_words> |
|
134 |
<1> |
|
134 |
<_alt> |
|
135 |
<1>$taxon</1> |
|
136 |
<2> |
|
135 | 137 |
<_join_words> |
136 |
<2>$genus</2> |
|
137 |
<3>$species</3> |
|
138 |
<1> |
|
139 |
<_join_words> |
|
140 |
<2>$genus</2> |
|
141 |
<3>$species</3> |
|
142 |
</_join_words> |
|
143 |
</1> |
|
144 |
<2>$taxonAuthor</2> |
|
138 | 145 |
</_join_words> |
139 |
</1> |
|
140 |
<2>$taxonAuthor</2> |
|
141 |
</_join_words> |
|
146 |
</2> |
|
147 |
</_alt> |
|
142 | 148 |
</2> |
143 |
</_alt> |
|
144 |
</2> |
|
145 |
</_join_words> |
|
146 |
</taxonomicname> |
|
147 |
</taxonlabel> |
|
148 |
</taxonlabel_id> |
|
149 |
<author>$taxonAuthor</author> |
|
150 |
<family>$family</family> |
|
151 |
<genus>$genus</genus> |
|
152 |
<specific_epithet>$species</specific_epithet> |
|
153 |
<taxonomicname>$taxon</taxonomicname> |
|
154 |
</taxonverbatim> |
|
155 |
</taxonverbatim_id> |
|
156 |
</taxondetermination> |
|
157 |
</taxonoccurrence> |
|
158 |
</locationevent> |
|
159 |
<locationplace> |
|
160 |
<place_id> |
|
161 |
<place> |
|
162 |
<coordinates_id> |
|
163 |
<coordinates> |
|
164 |
<latitude_deg> |
|
165 |
<_nullIf> |
|
166 |
<null>0</null> |
|
167 |
<type>float</type> |
|
168 |
<value>$latitude</value> |
|
169 |
</_nullIf> |
|
170 |
</latitude_deg> |
|
171 |
<longitude_deg> |
|
172 |
<_nullIf> |
|
173 |
<null>0</null> |
|
174 |
<type>float</type> |
|
175 |
<value>$longitude</value> |
|
176 |
</_nullIf> |
|
177 |
</longitude_deg> |
|
178 |
</coordinates> |
|
179 |
</coordinates_id> |
|
180 |
<country>$country</country> |
|
181 |
<county>$countyParish</county> |
|
182 |
<matched_place_id> |
|
149 |
</_join_words> |
|
150 |
</taxonomicname> |
|
151 |
</taxonlabel> |
|
152 |
</taxonlabel_id> |
|
153 |
<author>$taxonAuthor</author> |
|
154 |
<family>$family</family> |
|
155 |
<genus>$genus</genus> |
|
156 |
<specific_epithet>$species</specific_epithet> |
|
157 |
<taxonomicname>$taxon</taxonomicname> |
|
158 |
</taxonverbatim> |
|
159 |
</taxonverbatim_id> |
|
160 |
</taxondetermination> |
|
161 |
</taxonoccurrence> |
|
162 |
</locationevent> |
|
163 |
<locationplace> |
|
164 |
<place_id> |
|
183 | 165 |
<place> |
184 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
185 | 166 |
<coordinates_id> |
186 | 167 |
<coordinates> |
187 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
188 | 168 |
<latitude_deg> |
189 | 169 |
<_nullIf> |
190 | 170 |
<null>0</null> |
... | ... | |
203 | 183 |
</coordinates_id> |
204 | 184 |
<country>$country</country> |
205 | 185 |
<county>$countyParish</county> |
186 |
<matched_place_id> |
|
187 |
<place> |
|
188 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
189 |
<coordinates_id> |
|
190 |
<coordinates> |
|
191 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
192 |
<latitude_deg> |
|
193 |
<_nullIf> |
|
194 |
<null>0</null> |
|
195 |
<type>float</type> |
|
196 |
<value>$latitude</value> |
|
197 |
</_nullIf> |
|
198 |
</latitude_deg> |
|
199 |
<longitude_deg> |
|
200 |
<_nullIf> |
|
201 |
<null>0</null> |
|
202 |
<type>float</type> |
|
203 |
<value>$longitude</value> |
|
204 |
</_nullIf> |
|
205 |
</longitude_deg> |
|
206 |
</coordinates> |
|
207 |
</coordinates_id> |
|
208 |
<country>$country</country> |
|
209 |
<county>$countyParish</county> |
|
210 |
<stateprovince>$stateProvince</stateprovince> |
|
211 |
</place> |
|
212 |
</matched_place_id> |
|
206 | 213 |
<stateprovince>$stateProvince</stateprovince> |
207 | 214 |
</place> |
208 |
</matched_place_id> |
|
209 |
<stateprovince>$stateProvince</stateprovince> |
|
210 |
</place> |
|
211 |
</place_id> |
|
212 |
</locationplace> |
|
213 |
</location> |
|
215 |
</place_id> |
|
216 |
</locationplace> |
|
217 |
</location> |
|
218 |
</path> |
|
219 |
</_simplifyPath> |
|
214 | 220 |
</path> |
215 |
</_simplifyPath>
|
|
221 |
</_setDefault>
|
|
216 | 222 |
</VegBIEN> |
217 |
Inserted 1 new rows into database |
|
223 |
Inserted 0 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()