Commit f5333b96 authored by Matija Obreza's avatar Matija Obreza

Taxonomy2: Clear MCPD SUBTAUTHOR if SUBTAXA is blank

- Rename "spp." to "sp."
parent db40eafa
......@@ -259,10 +259,15 @@ public class Taxonomy2 extends GlobalVersionedAuditedModel {
subtaxa = StringUtils.trimToEmpty(subtaxa);
subtAuthor = StringUtils.trimToEmpty(subtAuthor);
if (StringUtils.isBlank(species) || "sp".equalsIgnoreCase(species)) {
if (StringUtils.isBlank(species) || "sp".equalsIgnoreCase(species) || "spp.".equalsIgnoreCase(species)) {
species = "sp.";
}
// Force blank subtAuthor when subtaxa is blank
if (StringUtils.isBlank(subtaxa)) {
subtAuthor = "";
}
return this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment