okfn/openspending — Issue #381: Combine "browser" and "spend-browser"
Author: pudo
Created: 2012-01-22 15:58:53+00:00
State: open

We currently have two search interfaces, one used in OpenSpending and the other one on http://data.gov.uk/openspending. Both have their advantages, and the JS approach is probably the one to build on - although raw solr access may not be the best tool. In general, we should build on the Recline project currently developed in labs: http://github.com/okfn/recline

This ticket will entail the following tasks:
* Make sure @rgrp is settled on the frontent library to use.
* Design an ``/api/2/search`` in the core app and write an OpenSpending backend for recline. In particular: what filters are required for the different locations in which the browser was previously shown?
* Write JS and an API call to support facets well, with the option to show more facet options for a particular item, to add a facet field and to sort facet options by name and hit count. Find out if there is a way to show measure sums instead of hit counts from solr with reasonable performance (stats facets).
* Provide access to the full search index (sans dataset filter).
* Support dynamic addition and removal of columns from the result view, server-side sorting.
* Make sure the browser can easily be embedded into other sites, i.e. it doesn't depend on too much CSS and many JS libraries from OS.
* Theme recline to look like OS.