Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 facettools
Octocat-spinner-32 .gitignore
Octocat-spinner-32 AUTHORS.txt
Octocat-spinner-32 CHANGES.TXT
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.rst
Octocat-spinner-32 TODO.txt
Octocat-spinner-32 setup.py
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.