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>NCBI</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<locationevent> |
|
8 |
<taxonoccurrence> |
|
9 |
<taxondetermination> |
|
10 |
<taxonverbatim_id> |
|
11 |
<taxonverbatim> |
|
12 |
<taxonlabel_id> |
|
13 |
<taxonlabel> |
|
14 |
<_taxonlabel_set_parent_id><parent_id><taxonlabel><sourceaccessioncode>$parent tax_id</sourceaccessioncode></taxonlabel></parent_id></_taxonlabel_set_parent_id> |
|
15 |
<rank>$rank</rank> |
|
16 |
<sourceaccessioncode>$tax_id</sourceaccessioncode> |
|
17 |
<taxonepithet> |
|
18 |
<_if name="if taxonomic name is epithet"> |
|
19 |
<cond> |
|
20 |
<_alt> |
|
21 |
<2>true</2> |
|
22 |
<1><_taxonomic_name_is_epithet><rank>$rank</rank></_taxonomic_name_is_epithet></1> |
|
23 |
</_alt> |
|
24 |
</cond> |
|
25 |
<then>$name_txt</then> |
|
26 |
</_if> |
|
27 |
</taxonepithet> |
|
28 |
<taxonomicname>$name_txt</taxonomicname> |
|
29 |
</taxonlabel> |
|
30 |
</taxonlabel_id> |
|
31 |
<verbatimrank>$rank</verbatimrank> |
|
32 |
</taxonverbatim> |
|
33 |
</taxonverbatim_id> |
|
34 |
</taxondetermination> |
|
35 |
</taxonoccurrence> |
|
36 |
</locationevent> |
|
37 |
</location> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<locationevent> |
|
12 |
<taxonoccurrence> |
|
13 |
<taxondetermination> |
|
14 |
<taxonverbatim_id> |
|
15 |
<taxonverbatim> |
|
16 |
<taxonlabel_id> |
|
17 |
<taxonlabel> |
|
18 |
<_taxonlabel_set_parent_id><parent_id><taxonlabel><sourceaccessioncode>$parent tax_id</sourceaccessioncode></taxonlabel></parent_id></_taxonlabel_set_parent_id> |
|
19 |
<rank>$rank</rank> |
|
20 |
<sourceaccessioncode>$tax_id</sourceaccessioncode> |
|
21 |
<taxonepithet> |
|
22 |
<_if name="if taxonomic name is epithet"> |
|
23 |
<cond> |
|
24 |
<_alt> |
|
25 |
<2>true</2> |
|
26 |
<1><_taxonomic_name_is_epithet><rank>$rank</rank></_taxonomic_name_is_epithet></1> |
|
27 |
</_alt> |
|
28 |
</cond> |
|
29 |
<then>$name_txt</then> |
|
30 |
</_if> |
|
31 |
</taxonepithet> |
|
32 |
<taxonomicname>$name_txt</taxonomicname> |
|
33 |
</taxonlabel> |
|
34 |
</taxonlabel_id> |
|
35 |
<verbatimrank>$rank</verbatimrank> |
|
36 |
</taxonverbatim> |
|
37 |
</taxonverbatim_id> |
|
38 |
</taxondetermination> |
|
39 |
</taxonoccurrence> |
|
40 |
</locationevent> |
|
41 |
</location> |
|
42 |
</path> |
|
43 |
</_simplifyPath> |
|
38 | 44 |
</path> |
39 |
</_simplifyPath>
|
|
45 |
</_setDefault>
|
|
40 | 46 |
</VegBIEN> |
41 | 47 |
Inserted 6 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()