From 27d96937f99d1ef3f0d269f1b99bb3decd886f54 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 10 Jan 2014 17:22:47 +0100 Subject: [PATCH] [PASSED QA] Bug 10857: Add facets cancellation - bootstrap theme. Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- .../opac-tmpl/bootstrap/en/includes/opac-facets.inc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc index 5669ce1..3f0dc0c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc @@ -31,10 +31,24 @@
    [% FOREACH facet IN facets_loo.facets %]
  • - [% facet.facet_label_value %] + [% SET query_cgi_f = query_cgi | url %] + [% SET limit_cgi_f = limit_cgi | url %] + [% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi_f _ limit_cgi_f %] + [% IF ( sort_by ) %] + [% SET url = url _ "&sort_by=" _ sort_by |url %] + [% END %] + [% facet.facet_link_value = BLOCK %][% facet.facet_link_value | uri %][% END %] + [% IF facet.active %] + [% SET url = url _ "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] + [% facet.facet_label_value %] + [x] + [% ELSE %] + [% SET url = url _ "&limit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] + [% facet.facet_label_value %] [% IF ( displayFacetCount ) %] - ([% facet.facet_count %]) + ([% facet.facet_count %]) [% END %] + [% END %]
  • [% END %] [% IF ( facets_loo.expandable ) %] -- 1.8.3.2