Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python
Branch: master

README.rst

GLAMkit-facettools

A tool for dealing with facets in collections. It is part of the GLAMkit project. For more information, see the documentation.

View a full list of GLAMkit components.

Approach

Facets present ways of narrowing down an item selection, by showing what the options are, and how many results will be produced.

This module does most of the legwork in setting up facets for collections.

The emphasis is on performance, at the occasional expense of memory.

Refer to tests.py for more examples of behaviour.

Overview

A FacetGroup is an ordered set of `FacetField`s on a particular collection.

A FacetField is an ordered set of `FacetLabel`s, plus a heading.

A FacetLabel contains the information necessary to render a single facet option, as part of a list or drop-down.

Requirements

django-generic from https://bitbucket.org/cogat/django-generic

Something went wrong with that request. Please try again.