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
        <parent_id>
5
            <location>
6
                <authorlocationcode>$PlotCode</authorlocationcode>
7
                <sourceaccessioncode>$PlotID</sourceaccessioncode>
8
            </location>
9
        </parent_id>
4 10
        <authorlocationcode>
5 11
            <_alt>
6 12
                <1>$Line</1>
......
260 266
                </voucher>
261 267
            </taxonoccurrence>
262 268
        </locationevent>
263
        <parent_id>
264
            <location>
265
                <authorlocationcode>$PlotCode</authorlocationcode>
266
                <sourceaccessioncode>$PlotID</sourceaccessioncode>
267
            </location>
268
        </parent_id>
269 269
    </location>
270 270
</VegBIEN>
271 271
Inserted 42 new rows into database

Also available in: Unified diff