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
96 96
                                                        </taxonverbatim>
97 97
                                                    </taxonlabel>
98 98
                                                    <taxonomicname>
99
                                                        <_join_words>
100
                                                            <1>
101
                                                                <_taxon_family_require_std>
102
                                                                    <family>
103
                                                                        <_nullIf>
104
                                                                            <null>$Name_matched</null>
105
                                                                            <value>$Name_matched_accepted_family</value>
106
                                                                        </_nullIf>
107
                                                                    </family>
108
                                                                </_taxon_family_require_std>
109
                                                            </1>
110
                                                            <2>
99
                                                        <_merge_prefix>
100
                                                            <prefix><_taxon_family_require_std><family>$Name_matched_accepted_family</family></_taxon_family_require_std></prefix>
101
                                                            <value>
111 102
                                                                <_join_words>
112 103
                                                                    <1>
113 104
                                                                        <_alt>
......
133 124
                                                                    </1>
134 125
                                                                    <2>$Name_matched_author</2>
135 126
                                                                </_join_words>
136
                                                            </2>
137
                                                        </_join_words>
127
                                                            </value>
128
                                                        </_merge_prefix>
138 129
                                                    </taxonomicname>
139 130
                                                    <taxonstatus>$Taxonomic_status</taxonstatus>
140 131
                                                </taxonlabel>

Also available in: Unified diff