Project

General

Profile

« Previous | Next » 

Revision 6403

mappings/VegCore-VegBIEN.csv: Set the source_id col_default to the datasource name using the new _setDefault() built-in function and _env()

View differences:

test.xml.ref
1 1
Put template:
2 2
<VegBIEN>
3
    <_simplifyPath id="-1">
4
        <next>parent_id</next>
3
    <_setDefault id="-1">
4
        <col>source_id</col>
5
        <value><source><shortname>CTFS</shortname></source></value>
5 6
        <path>
6
            <location>
7
                <parent_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></parent_id>
8
                <authorlocationcode>$QuadratID</authorlocationcode>
9
                <locationevent>
10
                    <parent_id>
7
            <_simplifyPath>
8
                <next>parent_id</next>
9
                <path>
10
                    <location>
11
                        <parent_id><location><sourceaccessioncode>$PlotID</sourceaccessioncode></location></parent_id>
12
                        <authorlocationcode>$QuadratID</authorlocationcode>
11 13
                        <locationevent>
12
                            <location_id>
13
                                <location>
14
                                    <sourceaccessioncode>
15
                                        <_if name="if subplot">
16
                                            <cond>$QuadratID</cond>
17
                                            <then>$PlotID</then>
18
                                        </_if>
19
                                    </sourceaccessioncode>
20
                                </location>
21
                            </location_id>
22
                            <sourceaccessioncode>$CensusID</sourceaccessioncode>
14
                            <parent_id>
15
                                <locationevent>
16
                                    <location_id>
17
                                        <location>
18
                                            <sourceaccessioncode>
19
                                                <_if name="if subplot">
20
                                                    <cond>$QuadratID</cond>
21
                                                    <then>$PlotID</then>
22
                                                </_if>
23
                                            </sourceaccessioncode>
24
                                        </location>
25
                                    </location_id>
26
                                    <sourceaccessioncode>$CensusID</sourceaccessioncode>
27
                                </locationevent>
28
                            </parent_id>
23 29
                        </locationevent>
24
                    </parent_id>
25
                </locationevent>
26
                <sourceaccessioncode>
27
                    <_join>
28
                        <1>$PlotID</1>
29
                        <2>$QuadratID</2>
30
                    </_join>
31
                </sourceaccessioncode>
32
            </location>
30
                        <sourceaccessioncode>
31
                            <_join>
32
                                <1>$PlotID</1>
33
                                <2>$QuadratID</2>
34
                            </_join>
35
                        </sourceaccessioncode>
36
                    </location>
37
                </path>
38
            </_simplifyPath>
33 39
        </path>
34
    </_simplifyPath>
40
    </_setDefault>
35 41
</VegBIEN>
36 42
Inserted 7 new rows into database

Also available in: Unified diff