boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

better handling of location values in VlrBlacklightMapsHelperBehavior#link_to_placename_field #133

Open ebenenglish opened 8 months ago

ebenenglish commented 8 months ago

See Trac #1686.

The current logic in VlrBlacklightMapsHelperBehavior#link_to_placename_field splits locations on commas, which works well for values like Boston, MA but poorly for values like Green Street, Jamaica Plain (from commonwealth:mp48vj55q) or 14 Green Street, Charlestown, Massachusetts (from commonwealth:fj237526j).

Improve the placename-handling logic so that links to these locations in the maplet popup dialog return the correct results.