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
114 114
                                                        <taxonlabel>
115 115
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
116 116
                                                            <taxonomicname>
117
                                                                <_join_words>
118
                                                                    <1>
119
                                                                        <_taxon_family_require_std>
120
                                                                            <family>
121
                                                                                <_nullIf>
122
                                                                                    <null>$ScientificName</null>
123
                                                                                    <value>$Family</value>
124
                                                                                </_nullIf>
125
                                                                            </family>
126
                                                                        </_taxon_family_require_std>
127
                                                                    </1>
128
                                                                    <2>
117
                                                                <_merge_prefix>
118
                                                                    <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
119
                                                                    <value>
129 120
                                                                        <_alt>
130 121
                                                                            <1>$ScientificNameAuthor</1>
131 122
                                                                            <2>
......
141 132
                                                                                </_alt>
142 133
                                                                            </2>
143 134
                                                                        </_alt>
144
                                                                    </2>
145
                                                                </_join_words>
135
                                                                    </value>
136
                                                                </_merge_prefix>
146 137
                                                            </taxonomicname>
147 138
                                                        </taxonlabel>
148 139
                                                    </matched_label_id>
......
239 230
                                                        </taxonlabel>
240 231
                                                    </parent_id>
241 232
                                                    <taxonomicname>
242
                                                        <_join_words>
243
                                                            <1>
244
                                                                <_taxon_family_require_std>
245
                                                                    <family>
246
                                                                        <_nullIf>
247
                                                                            <null>$ScientificName</null>
248
                                                                            <value>$Family</value>
249
                                                                        </_nullIf>
250
                                                                    </family>
251
                                                                </_taxon_family_require_std>
252
                                                            </1>
253
                                                            <2>
233
                                                        <_merge_prefix>
234
                                                            <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
235
                                                            <value>
254 236
                                                                <_alt>
255 237
                                                                    <1>$ScientificNameAuthor</1>
256 238
                                                                    <2>
......
266 248
                                                                        </_alt>
267 249
                                                                    </2>
268 250
                                                                </_alt>
269
                                                            </2>
270
                                                        </_join_words>
251
                                                            </value>
252
                                                        </_merge_prefix>
271 253
                                                    </taxonomicname>
272 254
                                                </taxonlabel>
273 255
                                            </taxonlabel_id>

Also available in: Unified diff