Commit 2fd38e7f authored by Matija Obreza's avatar Matija Obreza
Browse files

Decode HTML in selected fields

parent 7ace7374
......@@ -25,6 +25,7 @@ import java.util.Date;
import com.opencsv.CSVParser;
import com.opencsv.CSVReader;
import org.apache.commons.lang3.StringEscapeUtils;
import org.genesys2.gringlobal.taxonomy.model.GenusRow;
import org.genesys2.gringlobal.taxonomy.model.Qualifier;
import org.genesys2.gringlobal.taxonomy.model.SpeciesRow;
......@@ -88,7 +89,7 @@ public class TaxonomyReader {
genusRow.setSubSectionName(row[9]);
genusRow.setSeriesName(row[10]);
genusRow.setSubSeriesName(row[11]);
genusRow.setNote(row[12]);
genusRow.setNote(StringEscapeUtils.unescapeHtml4(row[12]));
genusRow.setCreatedDate(toDate(row[13]));
genusRow.setCreatedById(toLong(row[14]));
genusRow.setModifiedDate(toDate(row[15]));
......@@ -146,8 +147,8 @@ public class TaxonomyReader {
speciesRow.setNameVerifiedDate(toDate(row[30]));
speciesRow.setName(row[31]);
speciesRow.setNameAuthority(row[32]);
speciesRow.setProtologue(row[33]);
speciesRow.setNote(row[34]);
speciesRow.setProtologue(StringEscapeUtils.unescapeHtml4(row[33]));
speciesRow.setNote(StringEscapeUtils.unescapeHtml4(row[34]));
speciesRow.setSiteNote(row[35]);
speciesRow.setAlternateName(row[36]);
speciesRow.setCreatedDate(toDate(row[37]));
......
Supports Markdown
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