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
188 188
                                                        <taxonlabel>
189 189
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
190 190
                                                            <taxonomicname>
191
                                                                <_join_words>
192
                                                                    <1><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></1>
193
                                                                    <2>
191
                                                                <_merge_prefix>
192
                                                                    <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
193
                                                                    <value>
194 194
                                                                        <_join_words>
195 195
                                                                            <1>
196 196
                                                                                <_join_words>
......
211 211
                                                                            </1>
212 212
                                                                            <2>$specific_authority</2>
213 213
                                                                        </_join_words>
214
                                                                    </2>
215
                                                                </_join_words>
214
                                                                    </value>
215
                                                                </_merge_prefix>
216 216
                                                            </taxonomicname>
217 217
                                                        </taxonlabel>
218 218
                                                    </matched_label_id>
......
263 263
                                                    </parent_id>
264 264
                                                    <rank>$infra_rank_1</rank>
265 265
                                                    <taxonomicname>
266
                                                        <_join_words>
267
                                                            <1><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></1>
268
                                                            <2>
266
                                                        <_merge_prefix>
267
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
268
                                                            <value>
269 269
                                                                <_join_words>
270 270
                                                                    <1>
271 271
                                                                        <_join_words>
......
286 286
                                                                    </1>
287 287
                                                                    <2>$specific_authority</2>
288 288
                                                                </_join_words>
289
                                                            </2>
290
                                                        </_join_words>
289
                                                            </value>
290
                                                        </_merge_prefix>
291 291
                                                    </taxonomicname>
292 292
                                                </taxonlabel>
293 293
                                            </taxonlabel_id>
......
310 310
                                                        <taxonlabel>
311 311
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
312 312
                                                            <taxonomicname>
313
                                                                <_join_words>
314
                                                                    <1><_taxon_family_require_std><family>$orig_family</family></_taxon_family_require_std></1>
315
                                                                    <2>$orig_species</2>
316
                                                                </_join_words>
313
                                                                <_merge_prefix>
314
                                                                    <prefix><_taxon_family_require_std><family>$orig_family</family></_taxon_family_require_std></prefix>
315
                                                                    <value>$orig_species</value>
316
                                                                </_merge_prefix>
317 317
                                                            </taxonomicname>
318 318
                                                        </taxonlabel>
319 319
                                                    </matched_label_id>
......
359 359
                                                        </taxonlabel>
360 360
                                                    </parent_id>
361 361
                                                    <taxonomicname>
362
                                                        <_join_words>
363
                                                            <1><_taxon_family_require_std><family>$orig_family</family></_taxon_family_require_std></1>
364
                                                            <2>$orig_species</2>
365
                                                        </_join_words>
362
                                                        <_merge_prefix>
363
                                                            <prefix><_taxon_family_require_std><family>$orig_family</family></_taxon_family_require_std></prefix>
364
                                                            <value>$orig_species</value>
365
                                                        </_merge_prefix>
366 366
                                                    </taxonomicname>
367 367
                                                </taxonlabel>
368 368
                                            </taxonlabel_id>

Also available in: Unified diff