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>TEAM</shortname></source></value>
5 6
        <path>
6
            <location>
7
                <parent_id><location><authorlocationcode>$1ha Plot Number</authorlocationcode></location></parent_id>
8
                <authorlocationcode>$Subplot Number</authorlocationcode>
9
                <locationevent>
10
                    <project_id><project><projectname>$Site Name</projectname></project></project_id>
11
                    <parent_id>
7
            <_simplifyPath>
8
                <next>parent_id</next>
9
                <path>
10
                    <location>
11
                        <parent_id><location><authorlocationcode>$1ha Plot Number</authorlocationcode></location></parent_id>
12
                        <authorlocationcode>$Subplot Number</authorlocationcode>
12 13
                        <locationevent>
13
                            <location_id>
14
                                <location>
15
                                    <authorlocationcode>
16
                                        <_if name="if subplot">
17
                                            <cond>$Subplot Number</cond>
18
                                            <then>$1ha Plot Number</then>
19
                                        </_if>
20
                                    </authorlocationcode>
21
                                </location>
22
                            </location_id>
14
                            <project_id><project><projectname>$Site Name</projectname></project></project_id>
15
                            <parent_id>
16
                                <locationevent>
17
                                    <location_id>
18
                                        <location>
19
                                            <authorlocationcode>
20
                                                <_if name="if subplot">
21
                                                    <cond>$Subplot Number</cond>
22
                                                    <then>$1ha Plot Number</then>
23
                                                </_if>
24
                                            </authorlocationcode>
25
                                        </location>
26
                                    </location_id>
27
                                    <obsenddate><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></obsenddate>
28
                                    <obsstartdate><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></obsstartdate>
29
                                </locationevent>
30
                            </parent_id>
23 31
                            <obsenddate><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></obsenddate>
24 32
                            <obsstartdate><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></obsstartdate>
25
                        </locationevent>
26
                    </parent_id>
27
                    <obsenddate><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></obsenddate>
28
                    <obsstartdate><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></obsstartdate>
29
                    <taxonoccurrence>
30
                        <aggregateoccurrence>
31
                            <plantobservation>
32
                                <specimenreplicate><sourceaccessioncode>$Id</sourceaccessioncode></specimenreplicate>
33
                                <stemobservation>
34
                                    <diameterbreastheight_m><_cm_to_m><value>$Diameter</value></_cm_to_m></diameterbreastheight_m>
35
                                    <tag>$Tree Number</tag>
36
                                    <xposition_m>$1ha Plot X Coordinate</xposition_m>
37
                                    <yposition_m>$1ha Plot Y Coordinate</yposition_m>
38
                                </stemobservation>
39
                            </plantobservation>
40
                        </aggregateoccurrence>
41
                        <authortaxoncode>$Tree Number</authortaxoncode>
42
                        <collector_id><party><fullname>$Names of Collectors</fullname></party></collector_id>
43
                        <sourceaccessioncode>$Id</sourceaccessioncode>
44
                        <taxondetermination>
45
                            <taxonverbatim_id>
46
                                <taxonverbatim>
47
                                    <taxonlabel_id>
48
                                        <taxonlabel>
49
                                            <matched_label_id>
33
                            <taxonoccurrence>
34
                                <aggregateoccurrence>
35
                                    <plantobservation>
36
                                        <specimenreplicate><sourceaccessioncode>$Id</sourceaccessioncode></specimenreplicate>
37
                                        <stemobservation>
38
                                            <diameterbreastheight_m><_cm_to_m><value>$Diameter</value></_cm_to_m></diameterbreastheight_m>
39
                                            <tag>$Tree Number</tag>
40
                                            <xposition_m>$1ha Plot X Coordinate</xposition_m>
41
                                            <yposition_m>$1ha Plot Y Coordinate</yposition_m>
42
                                        </stemobservation>
43
                                    </plantobservation>
44
                                </aggregateoccurrence>
45
                                <authortaxoncode>$Tree Number</authortaxoncode>
46
                                <collector_id><party><fullname>$Names of Collectors</fullname></party></collector_id>
47
                                <sourceaccessioncode>$Id</sourceaccessioncode>
48
                                <taxondetermination>
49
                                    <taxonverbatim_id>
50
                                        <taxonverbatim>
51
                                            <taxonlabel_id>
50 52
                                                <taxonlabel>
51
                                                    <source_id><source><shortname>TNRS</shortname></source></source_id>
52
                                                    <taxonomicname>
53
                                                        <_join_words>
54
                                                            <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
55
                                                            <2>
53
                                                    <matched_label_id>
54
                                                        <taxonlabel>
55
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
56
                                                            <taxonomicname>
56 57
                                                                <_join_words>
57
                                                                    <2>$Genus</2>
58
                                                                    <3>$Species</3>
58
                                                                    <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
59
                                                                    <2>
60
                                                                        <_join_words>
61
                                                                            <2>$Genus</2>
62
                                                                            <3>$Species</3>
63
                                                                        </_join_words>
64
                                                                    </2>
59 65
                                                                </_join_words>
60
                                                            </2>
61
                                                        </_join_words>
62
                                                    </taxonomicname>
63
                                                </taxonlabel>
64
                                            </matched_label_id>
65
                                            <parent_id>
66
                                                <taxonlabel>
66
                                                            </taxonomicname>
67
                                                        </taxonlabel>
68
                                                    </matched_label_id>
67 69
                                                    <parent_id>
68 70
                                                        <taxonlabel>
69
                                                            <rank>cultivar</rank>
70 71
                                                            <parent_id>
71 72
                                                                <taxonlabel>
72
                                                                    <rank>forma</rank>
73
                                                                    <rank>cultivar</rank>
73 74
                                                                    <parent_id>
74 75
                                                                        <taxonlabel>
75
                                                                            <rank>variety</rank>
76
                                                                            <rank>forma</rank>
76 77
                                                                            <parent_id>
77 78
                                                                                <taxonlabel>
78
                                                                                    <rank>subspecies</rank>
79
                                                                                    <rank>variety</rank>
79 80
                                                                                    <parent_id>
80 81
                                                                                        <taxonlabel>
81
                                                                                            <rank>species</rank>
82
                                                                                            <taxonepithet>$Species</taxonepithet>
82
                                                                                            <rank>subspecies</rank>
83 83
                                                                                            <parent_id>
84 84
                                                                                                <taxonlabel>
85
                                                                                                    <rank>genus</rank>
86
                                                                                                    <taxonepithet>$Genus</taxonepithet>
85
                                                                                                    <rank>species</rank>
86
                                                                                                    <taxonepithet>$Species</taxonepithet>
87 87
                                                                                                    <parent_id>
88 88
                                                                                                        <taxonlabel>
89
                                                                                                            <rank>family</rank>
90
                                                                                                            <taxonepithet>$Family</taxonepithet>
89
                                                                                                            <rank>genus</rank>
90
                                                                                                            <taxonepithet>$Genus</taxonepithet>
91
                                                                                                            <parent_id>
92
                                                                                                                <taxonlabel>
93
                                                                                                                    <rank>family</rank>
94
                                                                                                                    <taxonepithet>$Family</taxonepithet>
95
                                                                                                                </taxonlabel>
96
                                                                                                            </parent_id>
91 97
                                                                                                        </taxonlabel>
92 98
                                                                                                    </parent_id>
93 99
                                                                                                </taxonlabel>
......
102 108
                                                            </parent_id>
103 109
                                                        </taxonlabel>
104 110
                                                    </parent_id>
105
                                                </taxonlabel>
106
                                            </parent_id>
107
                                            <taxonomicname>
108
                                                <_join_words>
109
                                                    <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
110
                                                    <2>
111
                                                    <taxonomicname>
111 112
                                                        <_join_words>
112
                                                            <2>$Genus</2>
113
                                                            <3>$Species</3>
113
                                                            <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
114
                                                            <2>
115
                                                                <_join_words>
116
                                                                    <2>$Genus</2>
117
                                                                    <3>$Species</3>
118
                                                                </_join_words>
119
                                                            </2>
114 120
                                                        </_join_words>
115
                                                    </2>
116
                                                </_join_words>
117
                                            </taxonomicname>
118
                                        </taxonlabel>
119
                                    </taxonlabel_id>
120
                                    <family>$Family</family>
121
                                    <genus>$Genus</genus>
122
                                    <specific_epithet>$Species</specific_epithet>
123
                                </taxonverbatim>
124
                            </taxonverbatim_id>
125
                        </taxondetermination>
126
                    </taxonoccurrence>
127
                </locationevent>
128
                <locationplace>
129
                    <place_id>
130
                        <place>
131
                            <coordinates_id>
132
                                <coordinates>
133
                                    <latitude_deg>
134
                                        <_nullIf>
135
                                            <null>0</null>
136
                                            <type>float</type>
137
                                            <value>$Latitude</value>
138
                                        </_nullIf>
139
                                    </latitude_deg>
140
                                    <longitude_deg>
141
                                        <_nullIf>
142
                                            <null>0</null>
143
                                            <type>float</type>
144
                                            <value>$Longitude</value>
145
                                        </_nullIf>
146
                                    </longitude_deg>
147
                                </coordinates>
148
                            </coordinates_id>
149
                            <matched_place_id>
121
                                                    </taxonomicname>
122
                                                </taxonlabel>
123
                                            </taxonlabel_id>
124
                                            <family>$Family</family>
125
                                            <genus>$Genus</genus>
126
                                            <specific_epithet>$Species</specific_epithet>
127
                                        </taxonverbatim>
128
                                    </taxonverbatim_id>
129
                                </taxondetermination>
130
                            </taxonoccurrence>
131
                        </locationevent>
132
                        <locationplace>
133
                            <place_id>
150 134
                                <place>
151
                                    <source_id><source><shortname>geoscrub</shortname></source></source_id>
152 135
                                    <coordinates_id>
153 136
                                        <coordinates>
154
                                            <source_id><source><shortname>geoscrub</shortname></source></source_id>
155 137
                                            <latitude_deg>
156 138
                                                <_nullIf>
157 139
                                                    <null>0</null>
......
168 150
                                            </longitude_deg>
169 151
                                        </coordinates>
170 152
                                    </coordinates_id>
153
                                    <matched_place_id>
154
                                        <place>
155
                                            <source_id><source><shortname>geoscrub</shortname></source></source_id>
156
                                            <coordinates_id>
157
                                                <coordinates>
158
                                                    <source_id><source><shortname>geoscrub</shortname></source></source_id>
159
                                                    <latitude_deg>
160
                                                        <_nullIf>
161
                                                            <null>0</null>
162
                                                            <type>float</type>
163
                                                            <value>$Latitude</value>
164
                                                        </_nullIf>
165
                                                    </latitude_deg>
166
                                                    <longitude_deg>
167
                                                        <_nullIf>
168
                                                            <null>0</null>
169
                                                            <type>float</type>
170
                                                            <value>$Longitude</value>
171
                                                        </_nullIf>
172
                                                    </longitude_deg>
173
                                                </coordinates>
174
                                            </coordinates_id>
175
                                        </place>
176
                                    </matched_place_id>
171 177
                                </place>
172
                            </matched_place_id>
173
                        </place>
174
                    </place_id>
175
                </locationplace>
176
                <sourceaccessioncode>
177
                    <_join>
178
                        <1>$1ha Plot Number</1>
179
                        <2>$Subplot Number</2>
180
                    </_join>
181
                </sourceaccessioncode>
182
            </location>
178
                            </place_id>
179
                        </locationplace>
180
                        <sourceaccessioncode>
181
                            <_join>
182
                                <1>$1ha Plot Number</1>
183
                                <2>$Subplot Number</2>
184
                            </_join>
185
                        </sourceaccessioncode>
186
                    </location>
187
                </path>
188
            </_simplifyPath>
183 189
        </path>
184
    </_simplifyPath>
190
    </_setDefault>
185 191
</VegBIEN>
186 192
Inserted 33 new rows into database

Also available in: Unified diff