Project

General

Profile

Revision a333126e

IDa333126e94ddf5f1e392d1e801d3a329cdee5ef2
Parent 9fc0e990
Child 9892fe45

Added by Andreas Müller almost 4 years ago

fix #6057 Accent Graph in author parser

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImplRegExBase.java
92 92

  
93 93

  
94 94
    //AuthorString
95
    protected static String qm = "[" + UTF8.RIGHT_SINGLE_QUOT + "']";
95
    protected static String qm = "[" + UTF8.RIGHT_SINGLE_QUOT + "'`]";
96 96
    protected static String authorPart = "(" + "([OdDL]"+qm+"|[’']t|ten\\s||le\\s|zur\\s)?" + "(" + capital2charDotWord + "|DC.)" + "('" + nonCapitalDotWord + ")?" + "|[vV][ao]n(\\sder)?|da|du|de(n|l|\\sla)?)" ;
97 97
    protected static String author = "(" + authorPart + "(" + fWs + "|-)" + ")+" + "(f\\.|fil\\.|secundus)?" ;
98 98
    protected static String finalTeamSplitter = "(" + fWs + "(&)" + fWs + "|" + oWs + "et" + oWs + ")";
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImplTest.java
2025 2025
        assertEquals("109", name.getNomenclaturalMicroReference());
2026 2026
        assertEquals("1893", nomRef.getYear());
2027 2027

  
2028
        //Accent graph in author name #6057
2029
        name = parser.parseReferencedName("Sedum plicatum O`Brian");
2030
        Assert.assertFalse("Name should be parsable", name.isProtectedTitleCache());
2031
        assertEquals( "O`Brian", name.getCombinationAuthorship().getNomenclaturalTitle());
2032

  
2033

  
2028 2034
 }
2029 2035

  
2030 2036
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)