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
30 30
                                                        <taxonlabel>
31 31
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
32 32
                                                            <taxonomicname>
33
                                                                <_join_words>
34
                                                                    <1>
35
                                                                        <_taxon_family_require_std>
36
                                                                            <family>
37
                                                                                <_nullIf>
38
                                                                                    <null>$Taxon</null>
39
                                                                                    <value>$Family</value>
40
                                                                                </_nullIf>
41
                                                                            </family>
42
                                                                        </_taxon_family_require_std>
43
                                                                    </1>
44
                                                                    <2>
33
                                                                <_merge_prefix>
34
                                                                    <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
35
                                                                    <value>
45 36
                                                                        <_join_words>
46 37
                                                                            <1>
47 38
                                                                                <_alt>
......
67 58
                                                                            </1>
68 59
                                                                            <2>$AuthorOfScientificName</2>
69 60
                                                                        </_join_words>
70
                                                                    </2>
71
                                                                </_join_words>
61
                                                                    </value>
62
                                                                </_merge_prefix>
72 63
                                                            </taxonomicname>
73 64
                                                        </taxonlabel>
74 65
                                                    </matched_label_id>
......
119 110
                                                    </parent_id>
120 111
                                                    <rank>$InfraspecificRank</rank>
121 112
                                                    <taxonomicname>
122
                                                        <_join_words>
123
                                                            <1>
124
                                                                <_taxon_family_require_std>
125
                                                                    <family>
126
                                                                        <_nullIf>
127
                                                                            <null>$Taxon</null>
128
                                                                            <value>$Family</value>
129
                                                                        </_nullIf>
130
                                                                    </family>
131
                                                                </_taxon_family_require_std>
132
                                                            </1>
133
                                                            <2>
113
                                                        <_merge_prefix>
114
                                                            <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
115
                                                            <value>
134 116
                                                                <_join_words>
135 117
                                                                    <1>
136 118
                                                                        <_alt>
......
156 138
                                                                    </1>
157 139
                                                                    <2>$AuthorOfScientificName</2>
158 140
                                                                </_join_words>
159
                                                            </2>
160
                                                        </_join_words>
141
                                                            </value>
142
                                                        </_merge_prefix>
161 143
                                                    </taxonomicname>
162 144
                                                </taxonlabel>
163 145
                                            </taxonlabel_id>

Also available in: Unified diff