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
80 80
                                    <subspecies>
81 81
                                        <_join_words>
82 82
                                            <1>
83
                                                <_alt>
84
                                                    <1>$usdaRank</1>
85
                                                    <2>$infrarank</2>
86
                                                </_alt>
83
                                                <_if name="if has infraspecificEpithet">
84
                                                    <cond>$infraname</cond>
85
                                                    <then>
86
                                                        <_alt>
87
                                                            <1>$usdaRank</1>
88
                                                            <2>$infrarank</2>
89
                                                        </_alt>
90
                                                    </then>
91
                                                </_if>
87 92
                                            </1>
88 93
                                            <2>$infraname</2>
89 94
                                        </_join_words>
......
102 107
                                                            <5>
103 108
                                                                <_join_words>
104 109
                                                                    <1>
105
                                                                        <_alt>
106
                                                                            <1>$usdaRank</1>
107
                                                                            <2>$infrarank</2>
108
                                                                        </_alt>
110
                                                                        <_if name="if has infraspecificEpithet">
111
                                                                            <cond>$infraname</cond>
112
                                                                            <then>
113
                                                                                <_alt>
114
                                                                                    <1>$usdaRank</1>
115
                                                                                    <2>$infrarank</2>
116
                                                                                </_alt>
117
                                                                            </then>
118
                                                                        </_if>
109 119
                                                                    </1>
110 120
                                                                    <2>$infraname</2>
111 121
                                                                </_join_words>

Also available in: Unified diff