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
59 59
                                                        <taxonlabel>
60 60
                                                            <source_id><source><shortname>TNRS</shortname></source></source_id>
61 61
                                                            <taxonomicname>
62
                                                                <_join_words>
63
                                                                    <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
64
                                                                    <2>
62
                                                                <_merge_prefix>
63
                                                                    <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
64
                                                                    <value>
65 65
                                                                        <_join_words>
66 66
                                                                            <1>
67 67
                                                                                <_join_words>
......
72 72
                                                                            </1>
73 73
                                                                            <2>$SpeciesAuthority</2>
74 74
                                                                        </_join_words>
75
                                                                    </2>
76
                                                                </_join_words>
75
                                                                    </value>
76
                                                                </_merge_prefix>
77 77
                                                            </taxonomicname>
78 78
                                                        </taxonlabel>
79 79
                                                    </matched_label_id>
......
121 121
                                                        </taxonlabel>
122 122
                                                    </parent_id>
123 123
                                                    <taxonomicname>
124
                                                        <_join_words>
125
                                                            <1><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></1>
126
                                                            <2>
124
                                                        <_merge_prefix>
125
                                                            <prefix><_taxon_family_require_std><family>$Family</family></_taxon_family_require_std></prefix>
126
                                                            <value>
127 127
                                                                <_join_words>
128 128
                                                                    <1>
129 129
                                                                        <_join_words>
......
134 134
                                                                    </1>
135 135
                                                                    <2>$SpeciesAuthority</2>
136 136
                                                                </_join_words>
137
                                                            </2>
138
                                                        </_join_words>
137
                                                            </value>
138
                                                        </_merge_prefix>
139 139
                                                    </taxonomicname>
140 140
                                                </taxonlabel>
141 141
                                            </taxonlabel_id>

Also available in: Unified diff