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
20 20
                                                        <taxonlabel>
21 21
                                                            <rank>$Accepted_name_rank</rank>
22 22
                                                            <taxonomicname>
23
                                                                <_join_words>
24
                                                                    <1>
23
                                                                <_merge_prefix>
24
                                                                    <prefix>
25 25
                                                                        <_taxon_family_require_std>
26 26
                                                                            <family>
27 27
                                                                                <_nullIf>
28
                                                                                    <null>$Accepted_name</null>
29
                                                                                    <value>
30
                                                                                        <_nullIf>
31
                                                                                            <null>Unknown</null>
32
                                                                                            <value>$Accepted_name_family</value>
33
                                                                                        </_nullIf>
34
                                                                                    </value>
28
                                                                                    <null>Unknown</null>
29
                                                                                    <value>$Accepted_name_family</value>
35 30
                                                                                </_nullIf>
36 31
                                                                            </family>
37 32
                                                                        </_taxon_family_require_std>
38
                                                                    </1>
39
                                                                    <2>
33
                                                                    </prefix>
34
                                                                    <value>
40 35
                                                                        <_alt>
41 36
                                                                            <1>$Accepted_scientific_name</1>
42 37
                                                                            <2>
......
67 62
                                                                                </_join_words>
68 63
                                                                            </2>
69 64
                                                                        </_alt>
70
                                                                    </2>
71
                                                                </_join_words>
65
                                                                    </value>
66
                                                                </_merge_prefix>
72 67
                                                            </taxonomicname>
73 68
                                                            <taxonverbatim>
74 69
                                                                <author>$Accepted_name_author</author>
......
156 151
                                                        </taxonverbatim>
157 152
                                                    </taxonlabel>
158 153
                                                    <taxonomicname>
159
                                                        <_join_words>
160
                                                            <1>
161
                                                                <_taxon_family_require_std>
162
                                                                    <family>
163
                                                                        <_nullIf>
164
                                                                            <null>$Name_matched</null>
165
                                                                            <value>$Name_matched_accepted_family</value>
166
                                                                        </_nullIf>
167
                                                                    </family>
168
                                                                </_taxon_family_require_std>
169
                                                            </1>
170
                                                            <2>
154
                                                        <_merge_prefix>
155
                                                            <prefix><_taxon_family_require_std><family>$Name_matched_accepted_family</family></_taxon_family_require_std></prefix>
156
                                                            <value>
171 157
                                                                <_join_words>
172 158
                                                                    <1>
173 159
                                                                        <_alt>
......
193 179
                                                                    </1>
194 180
                                                                    <2>$Name_matched_author</2>
195 181
                                                                </_join_words>
196
                                                            </2>
197
                                                        </_join_words>
182
                                                            </value>
183
                                                        </_merge_prefix>
198 184
                                                    </taxonomicname>
199 185
                                                    <taxonstatus>$Taxonomic_status</taxonstatus>
200 186
                                                </taxonlabel>

Also available in: Unified diff