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:

VegCore-VegBIEN.csv
1 1
VegCore[Veg+],VegBIEN:,Comments
2
subplot,"/location/_if[@name=""if subplot""]/cond/_exists",
3
locationID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
4
plotName,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
5
locationID,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode",
2 6
plotArea,//location/area,
3 7
subplot,//location/authorlocationcode,
4 8
subplot,"//location/authorlocationcode/_if[@name=""if subplot""]/cond/_exists",
......
136 140
verbatimLocality,//location/locationnarrative,
137 141
habitat,"//location/locationnarrative/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
138 142
plotNotes,//location/notespublic,
139
subplot,"//location/authorlocationcode/_if[@name=""if subplot""]/cond/_exists",
140
plotName,"//location/authorlocationcode/_if[@name=""if subplot""]/then",
141
subplot,"//location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_exists",
142
locationID,"//location/sourceaccessioncode/_if[@name=""if subplot""]/then",
143 143
slopeAspect,//location/slopeaspect,
144 144
slopeGradient,//location/slopegradient,
145 145
subplotID,//location/sourceaccessioncode,
146
subplot,"//location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_exists",
147
locationID,"//location/sourceaccessioncode/_if[@name=""if subplot""]/else",
148 146
subplotX,//location/sublocationxposition,
149 147
subplotY,//location/sublocationyposition,

Also available in: Unified diff