Skip to content

Commit

Permalink
Capitalize vernacular names after matching
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbov committed Jun 28, 2024
1 parent 83a5819 commit 78c22fe
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class HelperService {
if(match && match.success){
// Not necessary
sli.matchedName = match.scientificName
sli.commonName = match.vernacularName
sli.commonName = StringUtils.capitalize(match.vernacularName)
//Legacy: 'family, kingdom' field is used by group query for facades
sli.family = match.getFamily()
sli.kingdom = match.getKingdom()
Expand All @@ -644,7 +644,7 @@ class HelperService {
newMS.taxonConceptID = match.taxonConceptID
newMS.scientificName = match.scientificName
newMS.scientificNameAuthorship = match.scientificNameAuthorship
newMS.vernacularName = match.vernacularName
newMS.vernacularName = StringUtils.capitalize(match.vernacularName)
newMS.kingdom = match.kingdom
newMS.phylum = match.phylum
newMS.taxonClass = match.classs
Expand Down Expand Up @@ -678,15 +678,15 @@ class HelperService {
sli.guid = match.getTaxonConceptID()
sli.matchedName = match.getScientificName()
sli.author = match.getScientificNameAuthorship()
sli.commonName = match.getVernacularName()
sli.commonName = StringUtils.capitalize(match.getVernacularName())
sli.family = match.getFamily()
sli.kingdom = match.getKingdom()

MatchedSpecies newMS = new MatchedSpecies()
newMS.taxonConceptID = match.taxonConceptID
newMS.scientificName = match.scientificName
newMS.scientificNameAuthorship = match.scientificNameAuthorship
newMS.vernacularName = match.vernacularName
newMS.vernacularName = StringUtils.capitalize(match.vernacularName)
newMS.kingdom = match.kingdom
newMS.phylum = match.phylum
newMS.taxonClass = match.classs
Expand Down

0 comments on commit 78c22fe

Please sign in to comment.