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
39 39
                                                        <taxonlabel>
40 40
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
41 41
                                                            <taxonomicname>
42
                                                                <_join_words>
43
                                                                    <1>
42
                                                                <_merge_prefix>
43
                                                                    <prefix>
44 44
                                                                        <_taxon_family_require_std>
45 45
                                                                            <family>
46
                                                                                <_nullIf>
47
                                                                                    <null>$plantname</null>
48
                                                                                    <value>
49
                                                                                        <_alt>
50
                                                                                            <1>$denorm_family</1>
51
                                                                                            <2>$family</2>
52
                                                                                        </_alt>
53
                                                                                    </value>
54
                                                                                </_nullIf>
46
                                                                                <_alt>
47
                                                                                    <1>$denorm_family</1>
48
                                                                                    <2>$family</2>
49
                                                                                </_alt>
55 50
                                                                            </family>
56 51
                                                                        </_taxon_family_require_std>
57
                                                                    </1>
58
                                                                    <2>
52
                                                                    </prefix>
53
                                                                    <value>
59 54
                                                                        <_alt>
60 55
                                                                            <1>$plantNameWithAuthority</1>
61 56
                                                                            <2>
......
87 82
                                                                                </_alt>
88 83
                                                                            </2>
89 84
                                                                        </_alt>
90
                                                                    </2>
91
                                                                </_join_words>
85
                                                                    </value>
86
                                                                </_merge_prefix>
92 87
                                                            </taxonomicname>
93 88
                                                        </taxonlabel>
94 89
                                                    </matched_label_id>
......
184 179
                                                    </parent_id>
185 180
                                                    <rank>$taxonLevel</rank>
186 181
                                                    <taxonomicname>
187
                                                        <_join_words>
188
                                                            <1>
182
                                                        <_merge_prefix>
183
                                                            <prefix>
189 184
                                                                <_taxon_family_require_std>
190 185
                                                                    <family>
191
                                                                        <_nullIf>
192
                                                                            <null>$plantname</null>
193
                                                                            <value>
194
                                                                                <_alt>
195
                                                                                    <1>$denorm_family</1>
196
                                                                                    <2>$family</2>
197
                                                                                </_alt>
198
                                                                            </value>
199
                                                                        </_nullIf>
186
                                                                        <_alt>
187
                                                                            <1>$denorm_family</1>
188
                                                                            <2>$family</2>
189
                                                                        </_alt>
200 190
                                                                    </family>
201 191
                                                                </_taxon_family_require_std>
202
                                                            </1>
203
                                                            <2>
192
                                                            </prefix>
193
                                                            <value>
204 194
                                                                <_alt>
205 195
                                                                    <1>$plantNameWithAuthority</1>
206 196
                                                                    <2>
......
232 222
                                                                        </_alt>
233 223
                                                                    </2>
234 224
                                                                </_alt>
235
                                                            </2>
236
                                                        </_join_words>
225
                                                            </value>
226
                                                        </_merge_prefix>
237 227
                                                    </taxonomicname>
238 228
                                                </taxonlabel>
239 229
                                            </taxonlabel_id>

Also available in: Unified diff