Project

General

Profile

« Previous | Next » 

Revision 5109

mappings/VegCore-VegBIEN.csv: Don't combine taxonRank with infraspecificEpithet if there is no infraspecificEpithet, because the taxonRank is only the infraspecificEpithet's prefix when there is an actual infraspecificEpithet. Often, taxonRank contains values like "genus" or "species" which cannot be used for this purpose.

View differences:

test.xml.ref
153 153
                                    <species>$specific_epithet</species>
154 154
                                    <subspecies>
155 155
                                        <_join_words>
156
                                            <1>$infra_rank_1</1>
156
                                            <1>
157
                                                <_if name="if has infraspecificEpithet">
158
                                                    <cond>$infra_ep_1</cond>
159
                                                    <then>$infra_rank_1</then>
160
                                                </_if>
161
                                            </1>
157 162
                                            <2>$infra_ep_1</2>
158 163
                                        </_join_words>
159 164
                                    </subspecies>
......
166 171
                                                    <3>$specific_epithet</3>
167 172
                                                    <5>
168 173
                                                        <_join_words>
169
                                                            <1>$infra_rank_1</1>
174
                                                            <1>
175
                                                                <_if name="if has infraspecificEpithet">
176
                                                                    <cond>$infra_ep_1</cond>
177
                                                                    <then>$infra_rank_1</then>
178
                                                                </_if>
179
                                                            </1>
170 180
                                                            <2>$infra_ep_1</2>
171 181
                                                        </_join_words>
172 182
                                                    </5>

Also available in: Unified diff