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>WIN</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location>
|
|
7 |
<authorlocationcode>
|
|
8 |
<_alt>
|
|
9 |
<1>$id</1>
|
|
10 |
<2>
|
|
11 |
<_join>
|
|
12 |
<1>$institutionCode</1>
|
|
7 |
<_simplifyPath>
|
|
8 |
<next>parent_id</next>
|
|
9 |
<path>
|
|
10 |
<location>
|
|
11 |
<authorlocationcode>
|
|
12 |
<_alt>
|
|
13 |
<1>$id</1>
|
|
13 | 14 |
<2> |
14 | 15 |
<_join> |
15 |
<1>$collectionCode</1> |
|
16 |
<2>$collectionID</2> |
|
16 |
<1>$institutionCode</1> |
|
17 |
<2> |
|
18 |
<_join> |
|
19 |
<1>$collectionCode</1> |
|
20 |
<2>$collectionID</2> |
|
21 |
</_join> |
|
22 |
</2> |
|
23 |
<3>$catalogNumber</3> |
|
17 | 24 |
</_join> |
18 | 25 |
</2> |
19 |
<3>$catalogNumber</3> |
|
20 |
</_join> |
|
21 |
</2> |
|
22 |
</_alt> |
|
23 |
</authorlocationcode> |
|
24 |
<elevation_m> |
|
25 |
<_alt> |
|
26 |
<1> |
|
27 |
<_units> |
|
28 |
<to>m</to> |
|
29 |
<to></to> |
|
30 |
<value>$verbatimElevation</value> |
|
31 |
</_units> |
|
32 |
</1> |
|
33 |
<2><_avg><min>$minimumElevationInMeters</min></_avg></2> |
|
34 |
</_alt> |
|
35 |
</elevation_m> |
|
36 |
<locationevent> |
|
37 |
<obsenddate><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></obsenddate> |
|
38 |
<obsstartdate><_dateRangeStart><value>$eventDate</value></_dateRangeStart></obsstartdate> |
|
39 |
<taxonoccurrence> |
|
40 |
<aggregateoccurrence> |
|
41 |
<plantobservation> |
|
42 |
<collectionnumber>$recordNumber</collectionnumber> |
|
43 |
<specimenreplicate> |
|
44 |
<catalognumber_dwc>$catalogNumber</catalognumber_dwc> |
|
45 |
<collectioncode_dwc> |
|
46 |
<_join> |
|
47 |
<1>$collectionCode</1> |
|
48 |
<2>$collectionID</2> |
|
49 |
</_join> |
|
50 |
</collectioncode_dwc> |
|
51 |
<institution_id> |
|
52 |
<sourcename> |
|
53 |
<matched_source_id><source><shortname>$institutionCode</shortname></source></matched_source_id> |
|
54 |
<name>$institutionCode</name> |
|
55 |
</sourcename> |
|
56 |
</institution_id> |
|
57 |
<sourceaccessioncode>$id</sourceaccessioncode> |
|
58 |
</specimenreplicate> |
|
59 |
</plantobservation> |
|
60 |
</aggregateoccurrence> |
|
61 |
<collector_id><party><fullname>$recordedBy</fullname></party></collector_id> |
|
62 |
<sourceaccessioncode>$id</sourceaccessioncode> |
|
63 |
<taxondetermination> |
|
64 |
<party_id><party><fullname>$identifiedBy</fullname></party></party_id> |
|
65 |
<taxonverbatim_id> |
|
66 |
<taxonverbatim> |
|
67 |
<taxonlabel_id> |
|
68 |
<taxonlabel> |
|
69 |
<matched_label_id> |
|
26 |
</_alt> |
|
27 |
</authorlocationcode> |
|
28 |
<elevation_m> |
|
29 |
<_alt> |
|
30 |
<1> |
|
31 |
<_units> |
|
32 |
<to>m</to> |
|
33 |
<to></to> |
|
34 |
<value>$verbatimElevation</value> |
|
35 |
</_units> |
|
36 |
</1> |
|
37 |
<2><_avg><min>$minimumElevationInMeters</min></_avg></2> |
|
38 |
</_alt> |
|
39 |
</elevation_m> |
|
40 |
<locationevent> |
|
41 |
<obsenddate><_dateRangeEnd><value>$eventDate</value></_dateRangeEnd></obsenddate> |
|
42 |
<obsstartdate><_dateRangeStart><value>$eventDate</value></_dateRangeStart></obsstartdate> |
|
43 |
<taxonoccurrence> |
|
44 |
<aggregateoccurrence> |
|
45 |
<plantobservation> |
|
46 |
<collectionnumber>$recordNumber</collectionnumber> |
|
47 |
<specimenreplicate> |
|
48 |
<catalognumber_dwc>$catalogNumber</catalognumber_dwc> |
|
49 |
<collectioncode_dwc> |
|
50 |
<_join> |
|
51 |
<1>$collectionCode</1> |
|
52 |
<2>$collectionID</2> |
|
53 |
</_join> |
|
54 |
</collectioncode_dwc> |
|
55 |
<institution_id> |
|
56 |
<sourcename> |
|
57 |
<matched_source_id><source><shortname>$institutionCode</shortname></source></matched_source_id> |
|
58 |
<name>$institutionCode</name> |
|
59 |
</sourcename> |
|
60 |
</institution_id> |
|
61 |
<sourceaccessioncode>$id</sourceaccessioncode> |
|
62 |
</specimenreplicate> |
|
63 |
</plantobservation> |
|
64 |
</aggregateoccurrence> |
|
65 |
<collector_id><party><fullname>$recordedBy</fullname></party></collector_id> |
|
66 |
<sourceaccessioncode>$id</sourceaccessioncode> |
|
67 |
<taxondetermination> |
|
68 |
<party_id><party><fullname>$identifiedBy</fullname></party></party_id> |
|
69 |
<taxonverbatim_id> |
|
70 |
<taxonverbatim> |
|
71 |
<taxonlabel_id> |
|
70 | 72 |
<taxonlabel> |
71 |
<source_id><source><shortname>TNRS</shortname></source></source_id>
|
|
72 |
<taxonomicname>
|
|
73 |
<_alt>
|
|
74 |
<1>$scientificName</1>
|
|
75 |
<2>
|
|
76 |
<_join_words>
|
|
77 |
<1>
|
|
73 |
<matched_label_id>
|
|
74 |
<taxonlabel>
|
|
75 |
<source_id><source><shortname>TNRS</shortname></source></source_id>
|
|
76 |
<taxonomicname>
|
|
77 |
<_alt>
|
|
78 |
<1>$scientificName</1>
|
|
79 |
<2>
|
|
78 | 80 |
<_join_words> |
79 |
<2>$genus</2> |
|
80 |
<3>$specificEpithet</3> |
|
81 |
<5> |
|
81 |
<1> |
|
82 | 82 |
<_join_words> |
83 |
<1> |
|
84 |
<_if name="if has infraspecificEpithet"> |
|
85 |
<cond>$infraspecificEpithet</cond> |
|
86 |
<then>$taxonRank</then> |
|
87 |
</_if> |
|
88 |
</1> |
|
89 |
<2>$infraspecificEpithet</2> |
|
83 |
<2>$genus</2> |
|
84 |
<3>$specificEpithet</3> |
|
85 |
<5> |
|
86 |
<_join_words> |
|
87 |
<1> |
|
88 |
<_if name="if has infraspecificEpithet"> |
|
89 |
<cond>$infraspecificEpithet</cond> |
|
90 |
<then>$taxonRank</then> |
|
91 |
</_if> |
|
92 |
</1> |
|
93 |
<2>$infraspecificEpithet</2> |
|
94 |
</_join_words> |
|
95 |
</5> |
|
90 | 96 |
</_join_words> |
91 |
</5> |
|
97 |
</1> |
|
98 |
<2>$scientificNameAuthorship</2> |
|
92 | 99 |
</_join_words> |
93 |
</1> |
|
94 |
<2>$scientificNameAuthorship</2> |
|
95 |
</_join_words> |
|
96 |
</2> |
|
97 |
</_alt> |
|
98 |
</taxonomicname> |
|
99 |
</taxonlabel> |
|
100 |
</matched_label_id> |
|
101 |
<creationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></creationdate> |
|
102 |
<parent_id> |
|
103 |
<taxonlabel> |
|
104 |
<rank>$taxonRank</rank> |
|
105 |
<taxonverbatim><verbatimrank>$taxonRank</verbatimrank></taxonverbatim> |
|
100 |
</2> |
|
101 |
</_alt> |
|
102 |
</taxonomicname> |
|
103 |
</taxonlabel> |
|
104 |
</matched_label_id> |
|
105 |
<creationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></creationdate> |
|
106 | 106 |
<parent_id> |
107 | 107 |
<taxonlabel> |
108 |
<rank>cultivar</rank> |
|
108 |
<rank>$taxonRank</rank> |
|
109 |
<taxonverbatim><verbatimrank>$taxonRank</verbatimrank></taxonverbatim> |
|
109 | 110 |
<parent_id> |
110 | 111 |
<taxonlabel> |
111 |
<rank>forma</rank>
|
|
112 |
<rank>cultivar</rank>
|
|
112 | 113 |
<parent_id> |
113 | 114 |
<taxonlabel> |
114 |
<rank>variety</rank>
|
|
115 |
<rank>forma</rank>
|
|
115 | 116 |
<parent_id> |
116 | 117 |
<taxonlabel> |
117 |
<rank>subspecies</rank>
|
|
118 |
<rank>variety</rank>
|
|
118 | 119 |
<parent_id> |
119 | 120 |
<taxonlabel> |
120 |
<rank>species</rank> |
|
121 |
<taxonepithet>$specificEpithet</taxonepithet> |
|
121 |
<rank>subspecies</rank> |
|
122 | 122 |
<parent_id> |
123 | 123 |
<taxonlabel> |
124 |
<rank>genus</rank>
|
|
125 |
<taxonepithet>$genus</taxonepithet>
|
|
124 |
<rank>species</rank>
|
|
125 |
<taxonepithet>$specificEpithet</taxonepithet>
|
|
126 | 126 |
<parent_id> |
127 | 127 |
<taxonlabel> |
128 |
<rank>family</rank> |
|
128 |
<rank>genus</rank> |
|
129 |
<taxonepithet>$genus</taxonepithet> |
|
129 | 130 |
<parent_id> |
130 | 131 |
<taxonlabel> |
131 |
<rank>order</rank>
|
|
132 |
<rank>family</rank>
|
|
132 | 133 |
<parent_id> |
133 | 134 |
<taxonlabel> |
134 |
<rank>class</rank>
|
|
135 |
<rank>order</rank>
|
|
135 | 136 |
<parent_id> |
136 | 137 |
<taxonlabel> |
137 |
<rank>phylum</rank>
|
|
138 |
<rank>class</rank>
|
|
138 | 139 |
<parent_id> |
139 | 140 |
<taxonlabel> |
140 |
<rank>kingdom</rank> |
|
141 |
<taxonepithet>$kingdom</taxonepithet> |
|
141 |
<rank>phylum</rank> |
|
142 |
<parent_id> |
|
143 |
<taxonlabel> |
|
144 |
<rank>kingdom</rank> |
|
145 |
<taxonepithet>$kingdom</taxonepithet> |
|
146 |
</taxonlabel> |
|
147 |
</parent_id> |
|
142 | 148 |
</taxonlabel> |
143 | 149 |
</parent_id> |
144 | 150 |
</taxonlabel> |
... | ... | |
159 | 165 |
</parent_id> |
160 | 166 |
</taxonlabel> |
161 | 167 |
</parent_id> |
168 |
<taxonepithet>$infraspecificEpithet</taxonepithet> |
|
162 | 169 |
</taxonlabel> |
163 | 170 |
</parent_id> |
164 |
<taxonepithet>$infraspecificEpithet</taxonepithet> |
|
165 |
</taxonlabel> |
|
166 |
</parent_id> |
|
167 |
<rank>$taxonRank</rank> |
|
168 |
<taxonomicname> |
|
169 |
<_alt> |
|
170 |
<1>$scientificName</1> |
|
171 |
<2> |
|
172 |
<_join_words> |
|
173 |
<1> |
|
171 |
<rank>$taxonRank</rank> |
|
172 |
<taxonomicname> |
|
173 |
<_alt> |
|
174 |
<1>$scientificName</1> |
|
175 |
<2> |
|
174 | 176 |
<_join_words> |
175 |
<2>$genus</2> |
|
176 |
<3>$specificEpithet</3> |
|
177 |
<5> |
|
177 |
<1> |
|
178 | 178 |
<_join_words> |
179 |
<1> |
|
180 |
<_if name="if has infraspecificEpithet"> |
|
181 |
<cond>$infraspecificEpithet</cond> |
|
182 |
<then>$taxonRank</then> |
|
183 |
</_if> |
|
184 |
</1> |
|
185 |
<2>$infraspecificEpithet</2> |
|
179 |
<2>$genus</2> |
|
180 |
<3>$specificEpithet</3> |
|
181 |
<5> |
|
182 |
<_join_words> |
|
183 |
<1> |
|
184 |
<_if name="if has infraspecificEpithet"> |
|
185 |
<cond>$infraspecificEpithet</cond> |
|
186 |
<then>$taxonRank</then> |
|
187 |
</_if> |
|
188 |
</1> |
|
189 |
<2>$infraspecificEpithet</2> |
|
190 |
</_join_words> |
|
191 |
</5> |
|
186 | 192 |
</_join_words> |
187 |
</5> |
|
193 |
</1> |
|
194 |
<2>$scientificNameAuthorship</2> |
|
188 | 195 |
</_join_words> |
189 |
</1> |
|
190 |
<2>$scientificNameAuthorship</2> |
|
191 |
</_join_words> |
|
192 |
</2> |
|
193 |
</_alt> |
|
194 |
</taxonomicname> |
|
195 |
</taxonlabel> |
|
196 |
</taxonlabel_id> |
|
197 |
<author>$scientificNameAuthorship</author> |
|
198 |
<genus>$genus</genus> |
|
199 |
<specific_epithet>$specificEpithet</specific_epithet> |
|
200 |
<taxonomicname>$scientificName</taxonomicname> |
|
201 |
<verbatimrank>$taxonRank</verbatimrank> |
|
202 |
</taxonverbatim> |
|
203 |
</taxonverbatim_id> |
|
204 |
<determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate> |
|
205 |
</taxondetermination> |
|
206 |
</taxonoccurrence> |
|
207 |
</locationevent> |
|
208 |
<locationnarrative> |
|
209 |
<_merge> |
|
210 |
<1>$locality</1> |
|
211 |
<3> |
|
212 |
<_label> |
|
213 |
<label>habitat</label> |
|
214 |
<value>$habitat</value> |
|
215 |
</_label> |
|
216 |
</3> |
|
217 |
</_merge> |
|
218 |
</locationnarrative> |
|
219 |
<locationplace> |
|
220 |
<place_id> |
|
221 |
<place> |
|
222 |
<coordinates_id> |
|
223 |
<coordinates> |
|
224 |
<coordsaccuracy_m><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_m> |
|
225 |
<latitude_deg> |
|
226 |
<_nullIf> |
|
227 |
<null>0</null> |
|
228 |
<type>float</type> |
|
229 |
<value>$decimalLatitude</value> |
|
230 |
</_nullIf> |
|
231 |
</latitude_deg> |
|
232 |
<longitude_deg> |
|
233 |
<_nullIf> |
|
234 |
<null>0</null> |
|
235 |
<type>float</type> |
|
236 |
<value>$decimalLongitude</value> |
|
237 |
</_nullIf> |
|
238 |
</longitude_deg> |
|
239 |
<verbatimlatitude>$verbatimLatitude</verbatimlatitude> |
|
240 |
<verbatimlongitude>$verbatimLongitude</verbatimlongitude> |
|
241 |
</coordinates> |
|
242 |
</coordinates_id> |
|
243 |
<country>$country</country> |
|
244 |
<county>$county</county> |
|
245 |
<matched_place_id> |
|
196 |
</2> |
|
197 |
</_alt> |
|
198 |
</taxonomicname> |
|
199 |
</taxonlabel> |
|
200 |
</taxonlabel_id> |
|
201 |
<author>$scientificNameAuthorship</author> |
|
202 |
<genus>$genus</genus> |
|
203 |
<specific_epithet>$specificEpithet</specific_epithet> |
|
204 |
<taxonomicname>$scientificName</taxonomicname> |
|
205 |
<verbatimrank>$taxonRank</verbatimrank> |
|
206 |
</taxonverbatim> |
|
207 |
</taxonverbatim_id> |
|
208 |
<determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate> |
|
209 |
</taxondetermination> |
|
210 |
</taxonoccurrence> |
|
211 |
</locationevent> |
|
212 |
<locationnarrative> |
|
213 |
<_merge> |
|
214 |
<1>$locality</1> |
|
215 |
<3> |
|
216 |
<_label> |
|
217 |
<label>habitat</label> |
|
218 |
<value>$habitat</value> |
|
219 |
</_label> |
|
220 |
</3> |
|
221 |
</_merge> |
|
222 |
</locationnarrative> |
|
223 |
<locationplace> |
|
224 |
<place_id> |
|
246 | 225 |
<place> |
247 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
248 | 226 |
<coordinates_id> |
249 | 227 |
<coordinates> |
250 |
<source_id><source><shortname>geoscrub</shortname></source></source_id>
|
|
228 |
<coordsaccuracy_m><_noCV><value>$coordinateUncertaintyInMeters</value></_noCV></coordsaccuracy_m>
|
|
251 | 229 |
<latitude_deg> |
252 | 230 |
<_nullIf> |
253 | 231 |
<null>0</null> |
... | ... | |
262 | 240 |
<value>$decimalLongitude</value> |
263 | 241 |
</_nullIf> |
264 | 242 |
</longitude_deg> |
243 |
<verbatimlatitude>$verbatimLatitude</verbatimlatitude> |
|
244 |
<verbatimlongitude>$verbatimLongitude</verbatimlongitude> |
|
265 | 245 |
</coordinates> |
266 | 246 |
</coordinates_id> |
267 | 247 |
<country>$country</country> |
268 | 248 |
<county>$county</county> |
249 |
<matched_place_id> |
|
250 |
<place> |
|
251 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
252 |
<coordinates_id> |
|
253 |
<coordinates> |
|
254 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
255 |
<latitude_deg> |
|
256 |
<_nullIf> |
|
257 |
<null>0</null> |
|
258 |
<type>float</type> |
|
259 |
<value>$decimalLatitude</value> |
|
260 |
</_nullIf> |
|
261 |
</latitude_deg> |
|
262 |
<longitude_deg> |
|
263 |
<_nullIf> |
|
264 |
<null>0</null> |
|
265 |
<type>float</type> |
|
266 |
<value>$decimalLongitude</value> |
|
267 |
</_nullIf> |
|
268 |
</longitude_deg> |
|
269 |
</coordinates> |
|
270 |
</coordinates_id> |
|
271 |
<country>$country</country> |
|
272 |
<county>$county</county> |
|
273 |
<stateprovince>$stateProvince</stateprovince> |
|
274 |
</place> |
|
275 |
</matched_place_id> |
|
269 | 276 |
<stateprovince>$stateProvince</stateprovince> |
270 | 277 |
</place> |
271 |
</matched_place_id> |
|
272 |
<stateprovince>$stateProvince</stateprovince> |
|
273 |
</place> |
|
274 |
</place_id> |
|
275 |
</locationplace> |
|
276 |
<verbatimelevation>$verbatimElevation</verbatimelevation> |
|
277 |
</location> |
|
278 |
</place_id> |
|
279 |
</locationplace> |
|
280 |
<verbatimelevation>$verbatimElevation</verbatimelevation> |
|
281 |
</location> |
|
282 |
</path> |
|
283 |
</_simplifyPath> |
|
278 | 284 |
</path> |
279 |
</_simplifyPath>
|
|
285 |
</_setDefault>
|
|
280 | 286 |
</VegBIEN> |
281 | 287 |
Inserted 37 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()