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>IUCN</shortname></source></value>
5 6
        <path>
6
            <location>
7
                <locationevent>
8
                    <taxonoccurrence>
9
                        <taxondetermination>
10
                            <taxonverbatim_id>
11
                                <taxonverbatim>
12
                                    <taxonlabel_id>
13
                                        <taxonlabel>
14
                                            <matched_label_id>
7
            <_simplifyPath>
8
                <next>parent_id</next>
9
                <path>
10
                    <location>
11
                        <locationevent>
12
                            <taxonoccurrence>
13
                                <taxondetermination>
14
                                    <taxonverbatim_id>
15
                                        <taxonverbatim>
16
                                            <taxonlabel_id>
15 17
                                                <taxonlabel>
16
                                                    <source_id><source><shortname>TNRS</shortname></source></source_id>
17
                                                    <taxonomicname>
18
                                                        <_join_words>
19
                                                            <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
20
                                                            <2>$Species</2>
21
                                                        </_join_words>
22
                                                    </taxonomicname>
23
                                                </taxonlabel>
24
                                            </matched_label_id>
25
                                            <parent_id>
26
                                                <taxonlabel>
18
                                                    <matched_label_id>
19
                                                        <taxonlabel>
20
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
21
                                                            <taxonomicname>
22
                                                                <_join_words>
23
                                                                    <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
24
                                                                    <2>$Species</2>
25
                                                                </_join_words>
26
                                                            </taxonomicname>
27
                                                        </taxonlabel>
28
                                                    </matched_label_id>
27 29
                                                    <parent_id>
28 30
                                                        <taxonlabel>
29
                                                            <rank>cultivar</rank>
30 31
                                                            <parent_id>
31 32
                                                                <taxonlabel>
32
                                                                    <rank>forma</rank>
33
                                                                    <rank>cultivar</rank>
33 34
                                                                    <parent_id>
34 35
                                                                        <taxonlabel>
35
                                                                            <rank>variety</rank>
36
                                                                            <rank>forma</rank>
36 37
                                                                            <parent_id>
37 38
                                                                                <taxonlabel>
38
                                                                                    <rank>subspecies</rank>
39
                                                                                    <rank>variety</rank>
39 40
                                                                                    <parent_id>
40 41
                                                                                        <taxonlabel>
41
                                                                                            <rank>species</rank>
42
                                                                                            <taxonepithet>$Species</taxonepithet>
42
                                                                                            <rank>subspecies</rank>
43 43
                                                                                            <parent_id>
44 44
                                                                                                <taxonlabel>
45
                                                                                                    <rank>genus</rank>
45
                                                                                                    <rank>species</rank>
46
                                                                                                    <taxonepithet>$Species</taxonepithet>
46 47
                                                                                                    <parent_id>
47 48
                                                                                                        <taxonlabel>
48
                                                                                                            <rank>family</rank>
49
                                                                                                            <taxonepithet>$Family</taxonepithet>
49
                                                                                                            <rank>genus</rank>
50
                                                                                                            <parent_id>
51
                                                                                                                <taxonlabel>
52
                                                                                                                    <rank>family</rank>
53
                                                                                                                    <taxonepithet>$Family</taxonepithet>
54
                                                                                                                </taxonlabel>
55
                                                                                                            </parent_id>
50 56
                                                                                                        </taxonlabel>
51 57
                                                                                                    </parent_id>
52 58
                                                                                                </taxonlabel>
......
61 67
                                                            </parent_id>
62 68
                                                        </taxonlabel>
63 69
                                                    </parent_id>
70
                                                    <taxonomicname>
71
                                                        <_join_words>
72
                                                            <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
73
                                                            <2>$Species</2>
74
                                                        </_join_words>
75
                                                    </taxonomicname>
64 76
                                                </taxonlabel>
65
                                            </parent_id>
66
                                            <taxonomicname>
67
                                                <_join_words>
68
                                                    <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
69
                                                    <2>$Species</2>
70
                                                </_join_words>
71
                                            </taxonomicname>
72
                                        </taxonlabel>
73
                                    </taxonlabel_id>
74
                                    <family>$Family</family>
75
                                    <specific_epithet>$Species</specific_epithet>
76
                                </taxonverbatim>
77
                            </taxonverbatim_id>
78
                        </taxondetermination>
79
                    </taxonoccurrence>
80
                </locationevent>
81
            </location>
77
                                            </taxonlabel_id>
78
                                            <family>$Family</family>
79
                                            <specific_epithet>$Species</specific_epithet>
80
                                        </taxonverbatim>
81
                                    </taxonverbatim_id>
82
                                </taxondetermination>
83
                            </taxonoccurrence>
84
                        </locationevent>
85
                    </location>
86
                </path>
87
            </_simplifyPath>
82 88
        </path>
83
    </_simplifyPath>
89
    </_setDefault>
84 90
</VegBIEN>
85 91
Inserted 12 new rows into database

Also available in: Unified diff