Opened 5 years ago
Last modified 4 weeks ago
#2390 addressed defect
Escape special characters in locality for mapping page
| Reported by: | Kurt Endress | Owned by: | Kay Kittell |
|---|---|---|---|
| Priority: | medium | Milestone: | Server 2.2.1 |
| Component: | Public Website 2 | Version: | N/A |
| Severity: | 1 -- Low Effort | Keywords: | |
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
The mapping page fails to produce a map if there are certain special characters like new line in the locality note. For species Fragaria nilgerrensis it fails because of this. https://npgsdev.ars-grin.gov/gringlobal/maps?taxonomyid=258
This can be dealt with in the dataview SQL.
Change History (4)
comment:1 by , 5 years ago
comment:2 by , 4 years ago
The dataview is gone from npgsDev. This is what it did to deal with the special characters:
REPLACE(REPLACE(REPLACE(coalesce(asrc.collector_verbatim_locality, ), CHAR(10), '\n'), CHAR(13), '\r'), CHAR(9), '\t') as location,
comment:3 by , 4 weeks ago
| Owner: | changed from to |
|---|---|
| Severity: | → 1 -- Low Effort |
Put modified sql in dataview npgsDev web_taxonomyspecies_view_accessionmaps
comment:4 by , 4 weeks ago
| Status: | assigned → addressed |
|---|

Dataview changed for testing on npgsDev web_taxonomyspecies_view_accessionmaps_20211018.dataviewxml