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
110 110
                                    <species>$specificEpithet</species>
111 111
                                    <subspecies>
112 112
                                        <_join_words>
113
                                            <1>$taxonRank</1>
113
                                            <1>
114
                                                <_if name="if has infraspecificEpithet">
115
                                                    <cond>$infraspecificEpithet</cond>
116
                                                    <then>$taxonRank</then>
117
                                                </_if>
118
                                            </1>
114 119
                                            <2>$infraspecificEpithet</2>
115 120
                                        </_join_words>
116 121
                                    </subspecies>
......
127 132
                                                            <3>$specificEpithet</3>
128 133
                                                            <5>
129 134
                                                                <_join_words>
130
                                                                    <1>$taxonRank</1>
135
                                                                    <1>
136
                                                                        <_if name="if has infraspecificEpithet">
137
                                                                            <cond>$infraspecificEpithet</cond>
138
                                                                            <then>$taxonRank</then>
139
                                                                        </_if>
140
                                                                    </1>
131 141
                                                                    <2>$infraspecificEpithet</2>
132 142
                                                                </_join_words>
133 143
                                                            </5>

Also available in: Unified diff