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
                                                                        <_join_words>
104 95
                                                                            <1>
105 96
                                                                                <_alt>
......
115 106
                                                                            </1>
116 107
                                                                            <2>$ScientificNameAuthor</2>
117 108
                                                                        </_join_words>
118
                                                                    </2>
119
                                                                </_join_words>
109
                                                                    </value>
110
                                                                </_merge_prefix>
120 111
                                                            </taxonomicname>
121 112
                                                        </taxonlabel>
122 113
                                                    </matched_label_id>
......
185 176
                                                        </taxonlabel>
186 177
                                                    </parent_id>
187 178
                                                    <taxonomicname>
188
                                                        <_join_words>
189
                                                            <1>
190
                                                                <_taxon_family_require_std>
191
                                                                    <family>
192
                                                                        <_nullIf>
193
                                                                            <null>$ScientificName</null>
194
                                                                            <value>$family</value>
195
                                                                        </_nullIf>
196
                                                                    </family>
197
                                                                </_taxon_family_require_std>
198
                                                            </1>
199
                                                            <2>
179
                                                        <_merge_prefix>
180
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
181
                                                            <value>
200 182
                                                                <_join_words>
201 183
                                                                    <1>
202 184
                                                                        <_alt>
......
212 194
                                                                    </1>
213 195
                                                                    <2>$ScientificNameAuthor</2>
214 196
                                                                </_join_words>
215
                                                            </2>
216
                                                        </_join_words>
197
                                                            </value>
198
                                                        </_merge_prefix>
217 199
                                                    </taxonomicname>
218 200
                                                </taxonlabel>
219 201
                                            </taxonlabel_id>

Also available in: Unified diff