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
Madidi[Veg+],VegBIEN:,Comments
2
Inventory code,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
3
Inventory name,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
4
Inventory code,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode",
2 5
Area,/location/area,
3 6
Inventory name,"/location/authorlocationcode/_alt/1/_if[@name=""if subplot""]/else",
4 7
Inventory code,"/location/authorlocationcode/_alt/2/_if[@name=""if locationID""]/cond/_exists",
......
34 37
Textural class,/location/locationevent/soilobs/texture,
35 38
Locality,/location/locationnarrative/_merge/1,
36 39
Observaciones,/location/notespublic,
37
Inventory name,"/location/parent_id/location/authorlocationcode/_if[@name=""if subplot""]/then",
38
Inventory code,"/location/parent_id/location/sourceaccessioncode/_if[@name=""if subplot""]/then",
39 40
Direction,/location/slopeaspect/_compass/value/_alt/1,Part files provide either this field or Direction
40 41
OrientaciĆ³n/exposicion,/location/slopeaspect/_compass/value/_alt/2,Part files provide either this field or OrientaciĆ³n
41 42
Slope,/location/slopegradient,
42
Inventory code,"/location/sourceaccessioncode/_if[@name=""if subplot""]/else",

Also available in: Unified diff