okfn / ckanext-tsbsatellites

repo for Satellites Catapult's CKAN
http://data.satapps.org/
GNU Affero General Public License v3.0
3 stars 3 forks source link

Custom filter for Spatial resolution? #61

Open adamamyl opened 9 years ago

adamamyl commented 9 years ago

Can we think about the issues involved in looking at building a filter along these lines:

using the metadata for the resolution, offer the user four options on which to filter --

This is possibly a work-around to the issues mentioned in #59, and how CKAN sorts things (quantity of datasets).

Would this be equally complicated to build?

adamamyl commented 9 years ago

(sorting / filtering by spatial is much sought after)

amercader commented 9 years ago

That's definitely possible, it will take a bit of work though. We'd need to add a number field in Solr for the resolution values and create a custom facet widget that constructs the appropriate queries under the hood (much in the same way that it was done for the date of collection field, but with a much easier UI).

What will be difficult is getting the counts for each category directly from Solr, but we can always add them up on the templates.