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
65 65
                                                        <taxonlabel>
66 66
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
67 67
                                                            <taxonomicname>
68
                                                                <_join_words>
69
                                                                    <1><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></1>
70
                                                                    <2>$genus</2>
71
                                                                </_join_words>
68
                                                                <_merge_prefix>
69
                                                                    <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
70
                                                                    <value>$genus</value>
71
                                                                </_merge_prefix>
72 72
                                                            </taxonomicname>
73 73
                                                        </taxonlabel>
74 74
                                                    </matched_label_id>
......
114 114
                                                        </taxonlabel>
115 115
                                                    </parent_id>
116 116
                                                    <taxonomicname>
117
                                                        <_join_words>
118
                                                            <1><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></1>
119
                                                            <2>$genus</2>
120
                                                        </_join_words>
117
                                                        <_merge_prefix>
118
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
119
                                                            <value>$genus</value>
120
                                                        </_merge_prefix>
121 121
                                                    </taxonomicname>
122 122
                                                </taxonlabel>
123 123
                                            </taxonlabel_id>

Also available in: Unified diff