Project

General

Profile

« Previous | Next » 

Revision 5727

mappings/VegCore-VegBIEN.csv: _is_higher_taxon() calls: Default to true if the rank can't be parsed to a taxonrank enum value

View differences:

test.xml.ref
27 27
                                            <sourceaccessioncode>$tax_id</sourceaccessioncode>
28 28
                                            <taxonepithet>
29 29
                                                <_if name="if is higher taxon">
30
                                                    <cond><_is_higher_taxon><rank>$rank</rank></_is_higher_taxon></cond>
30
                                                    <cond>
31
                                                        <_alt>
32
                                                            <2>true</2>
33
                                                            <1><_is_higher_taxon><rank>$rank</rank></_is_higher_taxon></1>
34
                                                        </_alt>
35
                                                    </cond>
31 36
                                                    <then>$name_txt</then>
32 37
                                                </_if>
33 38
                                            </taxonepithet>
34 39
                                            <taxonomicname>
35 40
                                                <_if name="if is higher taxon">
36
                                                    <cond><_is_higher_taxon><rank>$rank</rank></_is_higher_taxon></cond>
41
                                                    <cond>
42
                                                        <_alt>
43
                                                            <2>true</2>
44
                                                            <1><_is_higher_taxon><rank>$rank</rank></_is_higher_taxon></1>
45
                                                        </_alt>
46
                                                    </cond>
37 47
                                                    <else>$name_txt</else>
38 48
                                                </_if>
39 49
                                            </taxonomicname>

Also available in: Unified diff