Bug 10857: add ability to remove active facets when refining search results
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 11 Jun 2013 09:31:49 +0000 (11:31 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 21:42:59 +0000 (21:42 +0000)
commit6dd221223f1a1bd4c8b15e0342b66f75ddc32b9d
tree4305020ec0ee24d80ae1746767eb905722fbd173
parente590436ee4c85ccb2bc0c556185895e15ca37ce1
Bug 10857: add ability to remove active facets when refining search results

When searching (at the OPAC or pro), facets can be enabled but never
disabled. So a user is obliged to relaunch the search.

This patch adds a new link "[x]" at the right of each selected facet.
This link relaunch the search without this facet.

Test plan:
- Launch a search (OPAC and pro)
- Enable some facets
- Disable some facets

Signed-off-by: sonia bouis <sonia.bouis@univ-lyon3.fr>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Patches pass all tests and QA script. Nice feature!

Tested in Boostrap and Prog, adding end removing multiple
facets in different sequences, adding and removing the
availability limit.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
catalogue/search.pl
koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc
koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc
opac/opac-search.pl