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