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
18 18
                                                        <taxonlabel>
19 19
                                                            <rank>$Accepted_name_rank</rank>
20 20
                                                            <taxonomicname>
21
                                                                <_join_words>
22
                                                                    <1>
21
                                                                <_merge_prefix>
22
                                                                    <prefix>
23 23
                                                                        <_taxon_family_require_std>
24 24
                                                                            <family>
25 25
                                                                                <_nullIf>
26
                                                                                    <null>$Accepted_name</null>
27
                                                                                    <value>
28
                                                                                        <_nullIf>
29
                                                                                            <null>Unknown</null>
30
                                                                                            <value>$Accepted_name_family</value>
31
                                                                                        </_nullIf>
32
                                                                                    </value>
26
                                                                                    <null>Unknown</null>
27
                                                                                    <value>$Accepted_name_family</value>
33 28
                                                                                </_nullIf>
34 29
                                                                            </family>
35 30
                                                                        </_taxon_family_require_std>
36
                                                                    </1>
37
                                                                    <2>
31
                                                                    </prefix>
32
                                                                    <value>
38 33
                                                                        <_join_words>
39 34
                                                                            <1>$Accepted_name</1>
40 35
                                                                            <2>$Accepted_name_author</2>
41 36
                                                                        </_join_words>
42
                                                                    </2>
43
                                                                </_join_words>
37
                                                                    </value>
38
                                                                </_merge_prefix>
44 39
                                                            </taxonomicname>
45 40
                                                            <taxonverbatim>
46 41
                                                                <author>$Accepted_name_author</author>
......
125 120
                                                        </taxonverbatim>
126 121
                                                    </taxonlabel>
127 122
                                                    <taxonomicname>
128
                                                        <_join_words>
129
                                                            <1>
130
                                                                <_taxon_family_require_std>
131
                                                                    <family>
132
                                                                        <_nullIf>
133
                                                                            <null>$Name_matched</null>
134
                                                                            <value>$Name_matched_accepted_family</value>
135
                                                                        </_nullIf>
136
                                                                    </family>
137
                                                                </_taxon_family_require_std>
138
                                                            </1>
139
                                                            <2>
123
                                                        <_merge_prefix>
124
                                                            <prefix><_taxon_family_require_std><family>$Name_matched_accepted_family</family></_taxon_family_require_std></prefix>
125
                                                            <value>
140 126
                                                                <_join_words>
141 127
                                                                    <1>
142 128
                                                                        <_alt>
......
162 148
                                                                    </1>
163 149
                                                                    <2>$Name_matched_author</2>
164 150
                                                                </_join_words>
165
                                                            </2>
166
                                                        </_join_words>
151
                                                            </value>
152
                                                        </_merge_prefix>
167 153
                                                    </taxonomicname>
168 154
                                                    <taxonstatus>$Taxonomic_status</taxonstatus>
169 155
                                                </taxonlabel>

Also available in: Unified diff