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
88 88
                                                        <taxonlabel>
89 89
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
90 90
                                                            <taxonomicname>
91
                                                                <_join_words>
92
                                                                    <1>
93
                                                                        <_taxon_family_require_std>
94
                                                                            <family>
95
                                                                                <_nullIf>
96
                                                                                    <null>$scientificName</null>
97
                                                                                    <value>$family</value>
98
                                                                                </_nullIf>
99
                                                                            </family>
100
                                                                        </_taxon_family_require_std>
101
                                                                    </1>
102
                                                                    <2>
91
                                                                <_merge_prefix>
92
                                                                    <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
93
                                                                    <value>
103 94
                                                                        <_alt>
104 95
                                                                            <1>$scientificName</1>
105 96
                                                                            <2>
......
109 100
                                                                                </_join_words>
110 101
                                                                            </2>
111 102
                                                                        </_alt>
112
                                                                    </2>
113
                                                                </_join_words>
103
                                                                    </value>
104
                                                                </_merge_prefix>
114 105
                                                            </taxonomicname>
115 106
                                                        </taxonlabel>
116 107
                                                    </matched_label_id>
......
179 170
                                                        </taxonlabel>
180 171
                                                    </parent_id>
181 172
                                                    <taxonomicname>
182
                                                        <_join_words>
183
                                                            <1>
184
                                                                <_taxon_family_require_std>
185
                                                                    <family>
186
                                                                        <_nullIf>
187
                                                                            <null>$scientificName</null>
188
                                                                            <value>$family</value>
189
                                                                        </_nullIf>
190
                                                                    </family>
191
                                                                </_taxon_family_require_std>
192
                                                            </1>
193
                                                            <2>
173
                                                        <_merge_prefix>
174
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
175
                                                            <value>
194 176
                                                                <_alt>
195 177
                                                                    <1>$scientificName</1>
196 178
                                                                    <2>
......
200 182
                                                                        </_join_words>
201 183
                                                                    </2>
202 184
                                                                </_alt>
203
                                                            </2>
204
                                                        </_join_words>
185
                                                            </value>
186
                                                        </_merge_prefix>
205 187
                                                    </taxonomicname>
206 188
                                                </taxonlabel>
207 189
                                            </taxonlabel_id>

Also available in: Unified diff