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
102 102
                                                        <taxonlabel>
103 103
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
104 104
                                                            <taxonomicname>
105
                                                                <_join_words>
106
                                                                    <1>
107
                                                                        <_taxon_family_require_std>
108
                                                                            <family>
109
                                                                                <_nullIf>
110
                                                                                    <null>$scientificName</null>
111
                                                                                    <value>$family</value>
112
                                                                                </_nullIf>
113
                                                                            </family>
114
                                                                        </_taxon_family_require_std>
115
                                                                    </1>
116
                                                                    <2>
105
                                                                <_merge_prefix>
106
                                                                    <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
107
                                                                    <value>
117 108
                                                                        <_alt>
118 109
                                                                            <1>$scientificName</1>
119 110
                                                                            <2>
......
139 130
                                                                                </_join_words>
140 131
                                                                            </2>
141 132
                                                                        </_alt>
142
                                                                    </2>
143
                                                                </_join_words>
133
                                                                    </value>
134
                                                                </_merge_prefix>
144 135
                                                            </taxonomicname>
145 136
                                                        </taxonlabel>
146 137
                                                    </matched_label_id>
......
213 204
                                                    </parent_id>
214 205
                                                    <rank>$taxonRank</rank>
215 206
                                                    <taxonomicname>
216
                                                        <_join_words>
217
                                                            <1>
218
                                                                <_taxon_family_require_std>
219
                                                                    <family>
220
                                                                        <_nullIf>
221
                                                                            <null>$scientificName</null>
222
                                                                            <value>$family</value>
223
                                                                        </_nullIf>
224
                                                                    </family>
225
                                                                </_taxon_family_require_std>
226
                                                            </1>
227
                                                            <2>
207
                                                        <_merge_prefix>
208
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
209
                                                            <value>
228 210
                                                                <_alt>
229 211
                                                                    <1>$scientificName</1>
230 212
                                                                    <2>
......
250 232
                                                                        </_join_words>
251 233
                                                                    </2>
252 234
                                                                </_alt>
253
                                                            </2>
254
                                                        </_join_words>
235
                                                            </value>
236
                                                        </_merge_prefix>
255 237
                                                    </taxonomicname>
256 238
                                                </taxonlabel>
257 239
                                            </taxonlabel_id>

Also available in: Unified diff