Revision 6002
Added by Aaron Marcuse-Kubitza over 12 years ago
test.xml.ref | ||
---|---|---|
9 | 9 |
<locationevent> |
10 | 10 |
<parent_id> |
11 | 11 |
<locationevent> |
12 |
<location_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></location_id> |
|
12 |
<location_id> |
|
13 |
<location> |
|
14 |
<sourceaccessioncode> |
|
15 |
<_if name="if subplot"> |
|
16 |
<cond>$QuadratID</cond> |
|
17 |
<then>$PlotID</then> |
|
18 |
</_if> |
|
19 |
</sourceaccessioncode> |
|
20 |
</location> |
|
21 |
</location_id> |
|
13 | 22 |
<sourceaccessioncode>$CensusID</sourceaccessioncode> |
14 | 23 |
</locationevent> |
15 | 24 |
</parent_id> |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: subplot locationevent: Only populate parent locationevent's location unique IDs if a subplot #/subplotID is actually specified. (The lack of a location unique ID will cause the parent locationevent's location to be removed, as well as the parent locationevent itself if there is no parent locationevent unique ID.) This fixes a bug where top-level plots in datasources that provide a nullable subplot #/subplotID were incorrectly getting connected to parent locationevents.