DigitalCommons / mykomap

A web application for mapping initiatives in the Solidarity Economy
3 stars 0 forks source link

Handling unspecied entries in primary directory filter #160

Closed ColmMassey closed 1 year ago

ColmMassey commented 1 year ago

If there are empty cells in an organisation's data in a field that is being used as the primary filter in the directory panel, there is no title displayed, but a even though it is possible to select it and view all the co-ops that don't specify anything in that field.

Insert a title Unspecified. Untitled

wu-lee commented 1 year ago

Why this blank occurs

I've updated the CSV transformation rules so that blanks in text fields are interpreted as nulls. (See commit f6fd28069.)

This means that if they're left as nulls by the transform rules, no blank category is added (as before. But they can also now be translated into a default value by the transform (by configuration), such as "Unspecified". This means the coops-uk map can be configured to do this, which results in the "Unspecified" category appearing. I think this does the job (see 0595d813).

ColmDC commented 1 year ago

Seems like an elegant solution.