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>VegBank</shortname></source></value> |
|
5 | 6 |
<path> |
6 |
<location> |
|
7 |
<locationevent> |
|
8 |
<taxonoccurrence> |
|
9 |
<aggregateoccurrence> |
|
10 |
<cover_fraction><_percent_to_fraction><value>$cover</value></_percent_to_fraction></cover_fraction> |
|
11 |
<sourceaccessioncode>$taxonimportance_id</sourceaccessioncode> |
|
12 |
</aggregateoccurrence> |
|
13 |
<sourceaccessioncode>$taxonobservation_id</sourceaccessioncode> |
|
14 |
</taxonoccurrence> |
|
15 |
</locationevent> |
|
16 |
</location> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<locationevent> |
|
12 |
<taxonoccurrence> |
|
13 |
<aggregateoccurrence> |
|
14 |
<cover_fraction><_percent_to_fraction><value>$cover</value></_percent_to_fraction></cover_fraction> |
|
15 |
<sourceaccessioncode>$taxonimportance_id</sourceaccessioncode> |
|
16 |
</aggregateoccurrence> |
|
17 |
<sourceaccessioncode>$taxonobservation_id</sourceaccessioncode> |
|
18 |
</taxonoccurrence> |
|
19 |
</locationevent> |
|
20 |
</location> |
|
21 |
</path> |
|
22 |
</_simplifyPath> |
|
17 | 23 |
</path> |
18 |
</_simplifyPath>
|
|
24 |
</_setDefault>
|
|
19 | 25 |
</VegBIEN> |
20 | 26 |
Inserted 4 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()