Project

General

Profile

« Previous | Next » 

Revision 4324

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.

View differences:

VegBIEN.csv
1 1
CTFS[Veg+],VegBIEN:,Comments
2
PlotID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
3
PlotName,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
4
PlotID,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode",
2 5
SizeOfSite,/location/area,
3 6
PlotName,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/else",
4 7
PlotID,"/location/authorlocationcode/_alt/2/_if[@name=""if locationID""]/cond/_exists",
......
9 12
CountryName,"/location/locationdetermination/namedplace_id/_simplifyPath:[next=""parent_id/namedplace"",require=placename]/path/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
10 13
DescriptionOfSite,/location/locationnarrative/_merge/1,
11 14
LocationName,/location/locationnarrative/_merge/1,
12
PlotName,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/then",
13
PlotID,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then",
14
PlotID,"/location/sourceaccessioncode/_if[@name=""if subplot""]/else",

Also available in: Unified diff