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>$PlotID</sourceaccessioncode>
4 5
        <area>$SizeOfSite</area>
5 6
        <authorlocationcode>$PlotName</authorlocationcode>
6 7
        <elevation>
......
54 55
                <1>$LocationName</1>
55 56
            </_alt>
56 57
        </locationnarrative>
57
        <sourceaccessioncode>$PlotID</sourceaccessioncode>
58 58
    </location>
59 59
</VegBIEN>
60 60
Inserted 6 new rows into database

Also available in: Unified diff