Bug 11277: fix errors with search facet links in Bootstrap theme
authorFrédéric Demians <f.demians@tamil.fr>
Tue, 26 Nov 2013 09:16:41 +0000 (10:16 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 15 Dec 2013 18:55:39 +0000 (18:55 +0000)
commit4e64ea8870cca3715f838ae3b577cb05da2f7879
tree701508c365b23adaaff11f67156201ebaac478e7
parent4a7bb58b1daf5edc47581f17b3dfef1e7beac601
Bug 11277: fix errors with search facet links in Bootstrap theme

This patch fixes the following rwo errors:

  1. When selecting 'show more' above a facet, the advanced search page
     is displayed.
  2. When restricting search on a library facet, all the biblio records
     of this library are returned.

The patch fixes the way URL are encoded with TT filter. See:

http://search.cpan.org/~abw/Template-Toolkit-2.25/lib/Template/Manual/Filters.pod#url

Signed-off-by: Liz Rea <liz@catalyst.net.nz>

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Patch works nicely. Tests done:
- 'More' link on facets redirects to advanced search before applying
  the patch. After appyling the link works correctly.
- In my tests, the facet links themselves worked nicely, limiting the
  search as expected.
- Availability search works ok for me with patch applied.
- Also made sure to click on some links containing diacritcts (German
  umlauts).

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc