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:

test.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3 3
    <location id="-1">
4
        <sourceaccessioncode>$PLOT_ID</sourceaccessioncode>
4 5
        <area>$plot_area_ha</area>
5 6
        <authorlocationcode>$plot_code</authorlocationcode>
6 7
        <elevation>
......
271 272
        <locationnarrative>$locality_description</locationnarrative>
272 273
        <slopeaspect><_compass><value>$slope_aspect</value></_compass></slopeaspect>
273 274
        <slopegradient>$slope_gradient</slopegradient>
274
        <sourceaccessioncode>$PLOT_ID</sourceaccessioncode>
275 275
    </location>
276 276
</VegBIEN>
277 277
Inserted 16 new rows into database

Also available in: Unified diff