1 | /* absent/unknown denomination (ticket #7811) */
|
---|
2 |
|
---|
3 | *[religion =~ /^(christian|jewish|muslim)$/][!denomination][type!=route] {
|
---|
4 | throwOther: tr("religion without denomination");
|
---|
5 | group: tr("missing tag");
|
---|
6 | assertMatch: "node religion=christian";
|
---|
7 | assertNoMatch: "node religion=christian denomination=catholic";
|
---|
8 | assertNoMatch: "node religion=foobar";
|
---|
9 | }
|
---|
10 |
|
---|
11 | *[religion=christian][denomination][denomination !~ /^(anglican|apostolic|baptist|catholic|church_of_scotland|christian_community|christian_scientist|coptic_orthodox|czechoslovak_hussite|dutch_reformed|evangelical|foursquare|greek_catholic|greek_orthodox|iglesia_ni_cristo|jehovahs_witness|kabbalah|karaite|living_waters_church|lutheran|maronite|mennonite|methodist|mormon|new_apostolic|nondenominational|old_catholic|orthodox|pentecostal|presbyterian|protestant|quaker|reformed|roman_catholic|romanian_orthodox|russian_orthodox|salvation_army|serbian_orthodox|seventh_day_adventist|spiritist|united|united_reformed|united|united_methodist|united_reformed|uniting)$/] {
|
---|
12 | throwOther: tr("unknown christian denomination");
|
---|
13 | assertMatch: "node religion=christian denomination=foobar";
|
---|
14 | assertNoMatch: "node religion=christian denomination=catholic";
|
---|
15 | assertNoMatch: "node religion=christian";
|
---|
16 | }
|
---|
17 |
|
---|
18 | *[religion=muslim][denomination][denomination !~ /^(alaouite|druze|ibadi|ismaili|nondenominational|shia|sunni)$/] {
|
---|
19 | throwOther: tr("unknown muslim denomination");
|
---|
20 | assertMatch: "node religion=muslim denomination=foobar";
|
---|
21 | assertNoMatch: "node religion=muslim denomination=alaouite";
|
---|
22 | assertNoMatch: "node religion=muslim";
|
---|
23 | }
|
---|
24 |
|
---|
25 | *[religion=jewish][denomination][denomination !~ /^(alternative|ashkenazi|conservative|hasidic|humanistic|liberal|modern_orthodox|neo_orthodox|nondenominational|orthodox|progressive|reconstructionist|reform|renewal|samaritan|ultra_orthodox)$/] {
|
---|
26 | throwOther: tr("unknown jewish denomination");
|
---|
27 | assertMatch: "node religion=jewish denomination=foobar";
|
---|
28 | assertNoMatch: "node religion=jewish denomination=alternative";
|
---|
29 | assertNoMatch: "node religion=jewish";
|
---|
30 | }
|
---|
31 |
|
---|
32 | *[religion=catholic] {
|
---|
33 | throwWarning: tr("{0}", "{0.tag}");
|
---|
34 | suggestAlternative: "religion=christian + denomination=catholic";
|
---|
35 | fixChangeKey: "religion => denomination";
|
---|
36 | fixAdd: "religion=christian";
|
---|
37 | }
|
---|