Revision 6002
Added by Aaron Marcuse-Kubitza about 12 years ago
test.xml.ref | ||
---|---|---|
16 | 16 |
<locationevent> |
17 | 17 |
<location_id> |
18 | 18 |
<location> |
19 |
<authorlocationcode>$plot_code</authorlocationcode> |
|
20 |
<sourceaccessioncode>$PLOT_ID</sourceaccessioncode> |
|
19 |
<authorlocationcode> |
|
20 |
<_if name="if subplot"> |
|
21 |
<cond>$subplot</cond> |
|
22 |
<then>$plot_code</then> |
|
23 |
</_if> |
|
24 |
</authorlocationcode> |
|
25 |
<sourceaccessioncode> |
|
26 |
<_if name="if subplot"> |
|
27 |
<cond>$subplot</cond> |
|
28 |
<then>$PLOT_ID</then> |
|
29 |
</_if> |
|
30 |
</sourceaccessioncode> |
|
21 | 31 |
</location> |
22 | 32 |
</location_id> |
23 | 33 |
<obsenddate><_date><date><_dateRangeEnd><value>$census_date</value></_dateRangeEnd></date></_date></obsenddate> |
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.