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
53 53
                                                        <taxonlabel>
54 54
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
55 55
                                                            <taxonomicname>
56
                                                                <_join_words>
57
                                                                    <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
58
                                                                    <2>
56
                                                                <_merge_prefix>
57
                                                                    <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
58
                                                                    <value>
59 59
                                                                        <_join_words>
60 60
                                                                            <2>$Genus</2>
61 61
                                                                            <3>$Species</3>
62 62
                                                                        </_join_words>
63
                                                                    </2>
64
                                                                </_join_words>
63
                                                                    </value>
64
                                                                </_merge_prefix>
65 65
                                                            </taxonomicname>
66 66
                                                        </taxonlabel>
67 67
                                                    </matched_label_id>
......
108 108
                                                        </taxonlabel>
109 109
                                                    </parent_id>
110 110
                                                    <taxonomicname>
111
                                                        <_join_words>
112
                                                            <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
113
                                                            <2>
111
                                                        <_merge_prefix>
112
                                                            <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
113
                                                            <value>
114 114
                                                                <_join_words>
115 115
                                                                    <2>$Genus</2>
116 116
                                                                    <3>$Species</3>
117 117
                                                                </_join_words>
118
                                                            </2>
119
                                                        </_join_words>
118
                                                            </value>
119
                                                        </_merge_prefix>
120 120
                                                    </taxonomicname>
121 121
                                                </taxonlabel>
122 122
                                            </taxonlabel_id>

Also available in: Unified diff