Revision 4324
Added by Aaron Marcuse-Kubitza almost 12 years ago
test.xml.ref | ||
---|---|---|
1 | 1 |
Put template: |
2 | 2 |
<VegBIEN> |
3 | 3 |
<location id="-1"> |
4 |
<parent_id> |
|
5 |
<location> |
|
6 |
<authorlocationcode>$plot_code</authorlocationcode> |
|
7 |
<sourceaccessioncode>$PLOT_ID</sourceaccessioncode> |
|
8 |
</location> |
|
9 |
</parent_id> |
|
4 | 10 |
<authorlocationcode> |
5 | 11 |
<_alt> |
6 | 12 |
<1>$subplot</1> |
... | ... | |
287 | 293 |
</voucher> |
288 | 294 |
</taxonoccurrence> |
289 | 295 |
</locationevent> |
290 |
<parent_id> |
|
291 |
<location> |
|
292 |
<authorlocationcode>$plot_code</authorlocationcode> |
|
293 |
<sourceaccessioncode>$PLOT_ID</sourceaccessioncode> |
|
294 |
</location> |
|
295 |
</parent_id> |
|
296 | 296 |
</location> |
297 | 297 |
</VegBIEN> |
298 | 298 |
Inserted 51 new rows into database |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: Moved "if subplot" _if statement around /location/parent_id and /location/sourceaccessioncode themselves, so that only one _if cond mapping for subplot is needed. Note that this is only possible because this _if statement uses _exists, allowing it to be fully evaluated by the XML template simplifying mechanism, which supports subtrees as arguments to _if.