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
                <sourceaccessioncode>$PlotID</sourceaccessioncode>
8
                <locationevent>
9
                    <authoreventcode>$PlotCensusNumber</authoreventcode>
10
                    <sourceaccessioncode>$CensusID</sourceaccessioncode>
11
                    <obsenddate>$EndDate</obsenddate>
12
                    <obsstartdate>$StartDate</obsstartdate>
13
                </locationevent>
14
            </location>
7
            <_simplifyPath>
8
                <next>parent_id</next>
9
                <path>
10
                    <location>
11
                        <sourceaccessioncode>$PlotID</sourceaccessioncode>
12
                        <locationevent>
13
                            <authoreventcode>$PlotCensusNumber</authoreventcode>
14
                            <sourceaccessioncode>$CensusID</sourceaccessioncode>
15
                            <obsenddate>$EndDate</obsenddate>
16
                            <obsstartdate>$StartDate</obsstartdate>
17
                        </locationevent>
18
                    </location>
19
                </path>
20
            </_simplifyPath>
15 21
        </path>
16
    </_simplifyPath>
22
    </_setDefault>
17 23
</VegBIEN>
18 24
Inserted 4 new rows into database

Also available in: Unified diff