diff --git a/src/fellchensammlung/static/fellchensammlung/js/custom.js b/src/fellchensammlung/static/fellchensammlung/js/custom.js index 25df97b..419acb8 100644 --- a/src/fellchensammlung/static/fellchensammlung/js/custom.js +++ b/src/fellchensammlung/static/fellchensammlung/js/custom.js @@ -16,6 +16,6 @@ function geojson_to_summary(location) { } function geojson_to_searchable_string(location) { - return ifdef(location.properties.name, "", ", ") + ifdef(location.properties.street, "", ifdef(location.properties.housenumber, " ","")) + ifdef(location.properties.city, ", ", "") + ifdef(location.properties.country, ", ", "") + return ifdef(location.properties.name, "", ", ") + ifdef(location.properties.street, "", ifdef(location.properties.housenumber, " ",", ")) + ifdef(location.properties.city, "", ", ") + ifdef(location.properties.country, "", "") }