Project

General

Profile

« Previous | Next » 

Revision 7142

mappings/VegCore-VegBIEN.csv: taxonlabel.taxonomicname: Prepend the family to the rest of the name using new _merge_prefix() instead of _join_words()/_nullIf(), so that any input taxonomic name that includes the family will not have the family duplicated in the combined taxonomic name. Previously, the duplication was removed only when the rest of the input name was equal to the family. This change fixes a bug in the new TNRS import where a pre-concatenated taxonomic name (Accepted_scientific_name) which includes the family is now used instead of Accepted_name, which only includes it when it's equal to the family.

View differences:

test.xml.ref
68 68
                                                        <taxonlabel>
69 69
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
70 70
                                                            <taxonomicname>
71
                                                                <_join_words>
72
                                                                    <1>
73
                                                                        <_taxon_family_require_std>
74
                                                                            <family>
75
                                                                                <_nullIf>
76
                                                                                    <null>$Species and morphotypes</null>
77
                                                                                    <value>$Family (revised)</value>
78
                                                                                </_nullIf>
79
                                                                            </family>
80
                                                                        </_taxon_family_require_std>
81
                                                                    </1>
82
                                                                    <2>
71
                                                                <_merge_prefix>
72
                                                                    <prefix><_taxon_family_require_std><family>$Family (revised)</family></_taxon_family_require_std></prefix>
73
                                                                    <value>
83 74
                                                                        <_alt>
84 75
                                                                            <1>$Specie+autor</1>
85 76
                                                                            <2>
......
99 90
                                                                                </_join_words>
100 91
                                                                            </2>
101 92
                                                                        </_alt>
102
                                                                    </2>
103
                                                                </_join_words>
93
                                                                    </value>
94
                                                                </_merge_prefix>
104 95
                                                            </taxonomicname>
105 96
                                                        </taxonlabel>
106 97
                                                    </matched_label_id>
......
147 138
                                                        </taxonlabel>
148 139
                                                    </parent_id>
149 140
                                                    <taxonomicname>
150
                                                        <_join_words>
151
                                                            <1>
152
                                                                <_taxon_family_require_std>
153
                                                                    <family>
154
                                                                        <_nullIf>
155
                                                                            <null>$Species and morphotypes</null>
156
                                                                            <value>$Family (revised)</value>
157
                                                                        </_nullIf>
158
                                                                    </family>
159
                                                                </_taxon_family_require_std>
160
                                                            </1>
161
                                                            <2>
141
                                                        <_merge_prefix>
142
                                                            <prefix><_taxon_family_require_std><family>$Family (revised)</family></_taxon_family_require_std></prefix>
143
                                                            <value>
162 144
                                                                <_alt>
163 145
                                                                    <1>$Specie+autor</1>
164 146
                                                                    <2>
......
178 160
                                                                        </_join_words>
179 161
                                                                    </2>
180 162
                                                                </_alt>
181
                                                            </2>
182
                                                        </_join_words>
163
                                                            </value>
164
                                                        </_merge_prefix>
183 165
                                                    </taxonomicname>
184 166
                                                </taxonlabel>
185 167
                                            </taxonlabel_id>
......
203 185
                                                        <taxonlabel>
204 186
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
205 187
                                                            <taxonomicname>
206
                                                                <_join_words>
207
                                                                    <1><_taxon_family_require_std><family>$Field family</family></_taxon_family_require_std></1>
208
                                                                    <2>$Field name</2>
209
                                                                </_join_words>
188
                                                                <_merge_prefix>
189
                                                                    <prefix><_taxon_family_require_std><family>$Field family</family></_taxon_family_require_std></prefix>
190
                                                                    <value>$Field name</value>
191
                                                                </_merge_prefix>
210 192
                                                            </taxonomicname>
211 193
                                                        </taxonlabel>
212 194
                                                    </matched_label_id>
......
252 234
                                                        </taxonlabel>
253 235
                                                    </parent_id>
254 236
                                                    <taxonomicname>
255
                                                        <_join_words>
256
                                                            <1><_taxon_family_require_std><family>$Field family</family></_taxon_family_require_std></1>
257
                                                            <2>$Field name</2>
258
                                                        </_join_words>
237
                                                        <_merge_prefix>
238
                                                            <prefix><_taxon_family_require_std><family>$Field family</family></_taxon_family_require_std></prefix>
239
                                                            <value>$Field name</value>
240
                                                        </_merge_prefix>
259 241
                                                    </taxonomicname>
260 242
                                                </taxonlabel>
261 243
                                            </taxonlabel_id>

Also available in: Unified diff