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
51 51
                                                        <taxonlabel>
52 52
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
53 53
                                                            <taxonomicname>
54
                                                                <_join_words>
55
                                                                    <1>
56
                                                                        <_taxon_family_require_std>
57
                                                                            <family>
58
                                                                                <_nullIf>
59
                                                                                    <null>$taxon</null>
60
                                                                                    <value>$family</value>
61
                                                                                </_nullIf>
62
                                                                            </family>
63
                                                                        </_taxon_family_require_std>
64
                                                                    </1>
65
                                                                    <2>
54
                                                                <_merge_prefix>
55
                                                                    <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
56
                                                                    <value>
66 57
                                                                        <_alt>
67 58
                                                                            <1>$taxon</1>
68 59
                                                                            <2>
......
77 68
                                                                                </_join_words>
78 69
                                                                            </2>
79 70
                                                                        </_alt>
80
                                                                    </2>
81
                                                                </_join_words>
71
                                                                    </value>
72
                                                                </_merge_prefix>
82 73
                                                            </taxonomicname>
83 74
                                                        </taxonlabel>
84 75
                                                    </matched_label_id>
......
125 116
                                                        </taxonlabel>
126 117
                                                    </parent_id>
127 118
                                                    <taxonomicname>
128
                                                        <_join_words>
129
                                                            <1>
130
                                                                <_taxon_family_require_std>
131
                                                                    <family>
132
                                                                        <_nullIf>
133
                                                                            <null>$taxon</null>
134
                                                                            <value>$family</value>
135
                                                                        </_nullIf>
136
                                                                    </family>
137
                                                                </_taxon_family_require_std>
138
                                                            </1>
139
                                                            <2>
119
                                                        <_merge_prefix>
120
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
121
                                                            <value>
140 122
                                                                <_alt>
141 123
                                                                    <1>$taxon</1>
142 124
                                                                    <2>
......
151 133
                                                                        </_join_words>
152 134
                                                                    </2>
153 135
                                                                </_alt>
154
                                                            </2>
155
                                                        </_join_words>
136
                                                            </value>
137
                                                        </_merge_prefix>
156 138
                                                    </taxonomicname>
157 139
                                                </taxonlabel>
158 140
                                            </taxonlabel_id>

Also available in: Unified diff