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>U</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<authorlocationcode> |
|
8 |
<_alt> |
|
9 |
<1>$ID</1> |
|
10 |
<2>$Barcode</2> |
|
11 |
</_alt> |
|
12 |
</authorlocationcode> |
|
13 |
<locationevent> |
|
14 |
<taxonoccurrence> |
|
15 |
<aggregateoccurrence> |
|
16 |
<collectiondate> |
|
17 |
<_date> |
|
18 |
<day> |
|
19 |
<_nullIf> |
|
20 |
<null>0</null> |
|
21 |
<type>float</type> |
|
22 |
<value>$Colldd</value> |
|
23 |
</_nullIf> |
|
24 |
</day> |
|
25 |
<month> |
|
26 |
<_nullIf> |
|
27 |
<null>0</null> |
|
28 |
<type>float</type> |
|
29 |
<value>$Collmm</value> |
|
30 |
</_nullIf> |
|
31 |
</month> |
|
32 |
<year> |
|
33 |
<_nullIf> |
|
34 |
<null>0</null> |
|
35 |
<type>float</type> |
|
36 |
<value>$Collyy</value> |
|
37 |
</_nullIf> |
|
38 |
</year> |
|
39 |
</_date> |
|
40 |
</collectiondate> |
|
41 |
<notes>$Notes</notes> |
|
42 |
<plantobservation> |
|
43 |
<collectionnumber>$Number</collectionnumber> |
|
44 |
<specimenreplicate> |
|
45 |
<catalognumber_dwc>$Barcode</catalognumber_dwc> |
|
46 |
<sourceaccessioncode>$ID</sourceaccessioncode> |
|
47 |
</specimenreplicate> |
|
48 |
</plantobservation> |
|
49 |
</aggregateoccurrence> |
|
50 |
<collector_id> |
|
51 |
<party> |
|
52 |
<fullname> |
|
53 |
<_join> |
|
54 |
<1>$Collector</1> |
|
55 |
<2>$Addcoll</2> |
|
56 |
</_join> |
|
57 |
</fullname> |
|
58 |
</party> |
|
59 |
</collector_id> |
|
60 |
<sourceaccessioncode>$ID</sourceaccessioncode> |
|
61 |
<taxondetermination> |
|
62 |
<party_id><party><fullname>$Detby</fullname></party></party_id> |
|
63 |
<taxonverbatim_id> |
|
64 |
<taxonverbatim> |
|
65 |
<taxonlabel_id> |
|
66 |
<taxonlabel> |
|
67 |
<matched_label_id> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<authorlocationcode> |
|
12 |
<_alt> |
|
13 |
<1>$ID</1> |
|
14 |
<2>$Barcode</2> |
|
15 |
</_alt> |
|
16 |
</authorlocationcode> |
|
17 |
<locationevent> |
|
18 |
<taxonoccurrence> |
|
19 |
<aggregateoccurrence> |
|
20 |
<collectiondate> |
|
21 |
<_date> |
|
22 |
<day> |
|
23 |
<_nullIf> |
|
24 |
<null>0</null> |
|
25 |
<type>float</type> |
|
26 |
<value>$Colldd</value> |
|
27 |
</_nullIf> |
|
28 |
</day> |
|
29 |
<month> |
|
30 |
<_nullIf> |
|
31 |
<null>0</null> |
|
32 |
<type>float</type> |
|
33 |
<value>$Collmm</value> |
|
34 |
</_nullIf> |
|
35 |
</month> |
|
36 |
<year> |
|
37 |
<_nullIf> |
|
38 |
<null>0</null> |
|
39 |
<type>float</type> |
|
40 |
<value>$Collyy</value> |
|
41 |
</_nullIf> |
|
42 |
</year> |
|
43 |
</_date> |
|
44 |
</collectiondate> |
|
45 |
<notes>$Notes</notes> |
|
46 |
<plantobservation> |
|
47 |
<collectionnumber>$Number</collectionnumber> |
|
48 |
<specimenreplicate> |
|
49 |
<catalognumber_dwc>$Barcode</catalognumber_dwc> |
|
50 |
<sourceaccessioncode>$ID</sourceaccessioncode> |
|
51 |
</specimenreplicate> |
|
52 |
</plantobservation> |
|
53 |
</aggregateoccurrence> |
|
54 |
<collector_id> |
|
55 |
<party> |
|
56 |
<fullname> |
|
57 |
<_join> |
|
58 |
<1>$Collector</1> |
|
59 |
<2>$Addcoll</2> |
|
60 |
</_join> |
|
61 |
</fullname> |
|
62 |
</party> |
|
63 |
</collector_id> |
|
64 |
<sourceaccessioncode>$ID</sourceaccessioncode> |
|
65 |
<taxondetermination> |
|
66 |
<party_id><party><fullname>$Detby</fullname></party></party_id> |
|
67 |
<taxonverbatim_id> |
|
68 |
<taxonverbatim> |
|
69 |
<taxonlabel_id> |
|
68 | 70 |
<taxonlabel> |
69 |
<source_id><source><shortname>TNRS</shortname></source></source_id>
|
|
70 |
<taxonomicname>
|
|
71 |
<_join_words>
|
|
72 |
<1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
|
|
73 |
<2>$Genus</2>
|
|
74 |
</_join_words>
|
|
75 |
</taxonomicname>
|
|
76 |
</taxonlabel>
|
|
77 |
</matched_label_id>
|
|
78 |
<creationdate>
|
|
79 |
<_date>
|
|
80 |
<year>
|
|
81 |
<_nullIf>
|
|
82 |
<null>0</null>
|
|
83 |
<type>float</type>
|
|
84 |
<value>$Detyy</value>
|
|
85 |
</_nullIf>
|
|
86 |
</year>
|
|
87 |
</_date>
|
|
88 |
</creationdate>
|
|
89 |
<parent_id>
|
|
90 |
<taxonlabel>
|
|
71 |
<matched_label_id>
|
|
72 |
<taxonlabel>
|
|
73 |
<source_id><source><shortname>TNRS</shortname></source></source_id>
|
|
74 |
<taxonomicname>
|
|
75 |
<_join_words>
|
|
76 |
<1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
|
|
77 |
<2>$Genus</2>
|
|
78 |
</_join_words>
|
|
79 |
</taxonomicname>
|
|
80 |
</taxonlabel>
|
|
81 |
</matched_label_id>
|
|
82 |
<creationdate>
|
|
83 |
<_date>
|
|
84 |
<year>
|
|
85 |
<_nullIf>
|
|
86 |
<null>0</null>
|
|
87 |
<type>float</type>
|
|
88 |
<value>$Detyy</value>
|
|
89 |
</_nullIf>
|
|
90 |
</year>
|
|
91 |
</_date>
|
|
92 |
</creationdate>
|
|
91 | 93 |
<parent_id> |
92 | 94 |
<taxonlabel> |
93 |
<rank>cultivar</rank> |
|
94 | 95 |
<parent_id> |
95 | 96 |
<taxonlabel> |
96 |
<rank>forma</rank>
|
|
97 |
<rank>cultivar</rank>
|
|
97 | 98 |
<parent_id> |
98 | 99 |
<taxonlabel> |
99 |
<rank>variety</rank>
|
|
100 |
<rank>forma</rank>
|
|
100 | 101 |
<parent_id> |
101 | 102 |
<taxonlabel> |
102 |
<rank>subspecies</rank>
|
|
103 |
<rank>variety</rank>
|
|
103 | 104 |
<parent_id> |
104 | 105 |
<taxonlabel> |
105 |
<rank>species</rank> |
|
106 |
<rank>subspecies</rank>
|
|
106 | 107 |
<parent_id> |
107 | 108 |
<taxonlabel> |
108 |
<rank>genus</rank> |
|
109 |
<taxonepithet>$Genus</taxonepithet> |
|
109 |
<rank>species</rank> |
|
110 | 110 |
<parent_id> |
111 | 111 |
<taxonlabel> |
112 |
<rank>family</rank> |
|
113 |
<taxonepithet>$Family</taxonepithet> |
|
112 |
<rank>genus</rank> |
|
113 |
<taxonepithet>$Genus</taxonepithet> |
|
114 |
<parent_id> |
|
115 |
<taxonlabel> |
|
116 |
<rank>family</rank> |
|
117 |
<taxonepithet>$Family</taxonepithet> |
|
118 |
</taxonlabel> |
|
119 |
</parent_id> |
|
114 | 120 |
</taxonlabel> |
115 | 121 |
</parent_id> |
116 | 122 |
</taxonlabel> |
... | ... | |
125 | 131 |
</parent_id> |
126 | 132 |
</taxonlabel> |
127 | 133 |
</parent_id> |
134 |
<taxonomicname> |
|
135 |
<_join_words> |
|
136 |
<1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1> |
|
137 |
<2>$Genus</2> |
|
138 |
</_join_words> |
|
139 |
</taxonomicname> |
|
128 | 140 |
</taxonlabel> |
129 |
</parent_id> |
|
130 |
<taxonomicname> |
|
131 |
<_join_words> |
|
132 |
<1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1> |
|
133 |
<2>$Genus</2> |
|
134 |
</_join_words> |
|
135 |
</taxonomicname> |
|
136 |
</taxonlabel> |
|
137 |
</taxonlabel_id> |
|
138 |
<family>$Family</family> |
|
139 |
<genus>$Genus</genus> |
|
140 |
</taxonverbatim> |
|
141 |
</taxonverbatim_id> |
|
142 |
<determinationdate> |
|
143 |
<_date> |
|
144 |
<year> |
|
145 |
<_nullIf> |
|
146 |
<null>0</null> |
|
147 |
<type>float</type> |
|
148 |
<value>$Detyy</value> |
|
149 |
</_nullIf> |
|
150 |
</year> |
|
151 |
</_date> |
|
152 |
</determinationdate> |
|
153 |
<taxonfit>$cf</taxonfit> |
|
154 |
</taxondetermination> |
|
155 |
</taxonoccurrence> |
|
156 |
</locationevent> |
|
157 |
<locationnarrative> |
|
158 |
<_merge> |
|
159 |
<2> |
|
160 |
<_join> |
|
161 |
<1> |
|
141 |
</taxonlabel_id> |
|
142 |
<family>$Family</family> |
|
143 |
<genus>$Genus</genus> |
|
144 |
</taxonverbatim> |
|
145 |
</taxonverbatim_id> |
|
146 |
<determinationdate> |
|
147 |
<_date> |
|
148 |
<year> |
|
149 |
<_nullIf> |
|
150 |
<null>0</null> |
|
151 |
<type>float</type> |
|
152 |
<value>$Detyy</value> |
|
153 |
</_nullIf> |
|
154 |
</year> |
|
155 |
</_date> |
|
156 |
</determinationdate> |
|
157 |
<taxonfit>$cf</taxonfit> |
|
158 |
</taxondetermination> |
|
159 |
</taxonoccurrence> |
|
160 |
</locationevent> |
|
161 |
<locationnarrative> |
|
162 |
<_merge> |
|
163 |
<2> |
|
164 |
<_join> |
|
165 |
<1> |
|
166 |
<_label> |
|
167 |
<label>gazetteer</label> |
|
168 |
<value> |
|
169 |
<_join> |
|
170 |
<1>$Gazetteer</1> |
|
171 |
<2>$Newgazett</2> |
|
172 |
</_join> |
|
173 |
</value> |
|
174 |
</_label> |
|
175 |
</1> |
|
176 |
<2>$Locnotes</2> |
|
177 |
</_join> |
|
178 |
</2> |
|
179 |
<3> |
|
162 | 180 |
<_label> |
163 |
<label>gazetteer</label> |
|
164 |
<value> |
|
165 |
<_join> |
|
166 |
<1>$Gazetteer</1> |
|
167 |
<2>$Newgazett</2> |
|
168 |
</_join> |
|
169 |
</value> |
|
181 |
<label>habitat</label> |
|
182 |
<value>$Ecology</value> |
|
170 | 183 |
</_label> |
171 |
</1> |
|
172 |
<2>$Locnotes</2> |
|
173 |
</_join> |
|
174 |
</2> |
|
175 |
<3> |
|
176 |
<_label> |
|
177 |
<label>habitat</label> |
|
178 |
<value>$Ecology</value> |
|
179 |
</_label> |
|
180 |
</3> |
|
181 |
</_merge> |
|
182 |
</locationnarrative> |
|
183 |
<locationplace> |
|
184 |
<place_id> |
|
185 |
<place> |
|
186 |
<coordinates_id> |
|
187 |
<coordinates> |
|
188 |
<latitude_deg> |
|
189 |
<_nullIf> |
|
190 |
<null>0</null> |
|
191 |
<type>float</type> |
|
192 |
<value>$Lat</value> |
|
193 |
</_nullIf> |
|
194 |
</latitude_deg> |
|
195 |
<longitude_deg> |
|
196 |
<_nullIf> |
|
197 |
<null>0</null> |
|
198 |
<type>float</type> |
|
199 |
<value>$Long</value> |
|
200 |
</_nullIf> |
|
201 |
</longitude_deg> |
|
202 |
</coordinates> |
|
203 |
</coordinates_id> |
|
204 |
<country>$Country</country> |
|
205 |
<matched_place_id> |
|
184 |
</3> |
|
185 |
</_merge> |
|
186 |
</locationnarrative> |
|
187 |
<locationplace> |
|
188 |
<place_id> |
|
206 | 189 |
<place> |
207 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
208 | 190 |
<coordinates_id> |
209 | 191 |
<coordinates> |
210 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
211 | 192 |
<latitude_deg> |
212 | 193 |
<_nullIf> |
213 | 194 |
<null>0</null> |
... | ... | |
225 | 206 |
</coordinates> |
226 | 207 |
</coordinates_id> |
227 | 208 |
<country>$Country</country> |
209 |
<matched_place_id> |
|
210 |
<place> |
|
211 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
212 |
<coordinates_id> |
|
213 |
<coordinates> |
|
214 |
<source_id><source><shortname>geoscrub</shortname></source></source_id> |
|
215 |
<latitude_deg> |
|
216 |
<_nullIf> |
|
217 |
<null>0</null> |
|
218 |
<type>float</type> |
|
219 |
<value>$Lat</value> |
|
220 |
</_nullIf> |
|
221 |
</latitude_deg> |
|
222 |
<longitude_deg> |
|
223 |
<_nullIf> |
|
224 |
<null>0</null> |
|
225 |
<type>float</type> |
|
226 |
<value>$Long</value> |
|
227 |
</_nullIf> |
|
228 |
</longitude_deg> |
|
229 |
</coordinates> |
|
230 |
</coordinates_id> |
|
231 |
<country>$Country</country> |
|
232 |
</place> |
|
233 |
</matched_place_id> |
|
228 | 234 |
</place> |
229 |
</matched_place_id>
|
|
230 |
</place> |
|
231 |
</place_id>
|
|
232 |
</locationplace>
|
|
233 |
</location>
|
|
235 |
</place_id> |
|
236 |
</locationplace>
|
|
237 |
</location>
|
|
238 |
</path>
|
|
239 |
</_simplifyPath>
|
|
234 | 240 |
</path> |
235 |
</_simplifyPath>
|
|
241 |
</_setDefault>
|
|
236 | 242 |
</VegBIEN> |
237 | 243 |
Inserted 35 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()