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 |
<plantobservation> |
|
11 |
<sourceaccessioncode>$stemcount_id</sourceaccessioncode> |
|
12 |
<stemcount>$stemcount</stemcount> |
|
13 |
<stemobservation> |
|
14 |
<diameterbreastheight_m><_cm_to_m><value>$stemdiameter</value></_cm_to_m></diameterbreastheight_m> |
|
15 |
<height_m>$stemheight</height_m> |
|
16 |
</stemobservation> |
|
17 |
</plantobservation> |
|
18 |
<sourceaccessioncode>$taxonimportance_id</sourceaccessioncode> |
|
19 |
</aggregateoccurrence> |
|
20 |
</taxonoccurrence> |
|
21 |
</locationevent> |
|
22 |
</location> |
|
7 |
<_simplifyPath> |
|
8 |
<next>parent_id</next> |
|
9 |
<path> |
|
10 |
<location> |
|
11 |
<locationevent> |
|
12 |
<taxonoccurrence> |
|
13 |
<aggregateoccurrence> |
|
14 |
<plantobservation> |
|
15 |
<sourceaccessioncode>$stemcount_id</sourceaccessioncode> |
|
16 |
<stemcount>$stemcount</stemcount> |
|
17 |
<stemobservation> |
|
18 |
<diameterbreastheight_m><_cm_to_m><value>$stemdiameter</value></_cm_to_m></diameterbreastheight_m> |
|
19 |
<height_m>$stemheight</height_m> |
|
20 |
</stemobservation> |
|
21 |
</plantobservation> |
|
22 |
<sourceaccessioncode>$taxonimportance_id</sourceaccessioncode> |
|
23 |
</aggregateoccurrence> |
|
24 |
</taxonoccurrence> |
|
25 |
</locationevent> |
|
26 |
</location> |
|
27 |
</path> |
|
28 |
</_simplifyPath> |
|
23 | 29 |
</path> |
24 |
</_simplifyPath>
|
|
30 |
</_setDefault>
|
|
25 | 31 |
</VegBIEN> |
26 | 32 |
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()