[Koha-bugs] [Bug 27035] Shows the number of results in a facets

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 16 18:02:47 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27035

Ivan Dziuba <ivan.dziuba at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #113670|0                           |1
        is obsolete|                            |
 Attachment #113670|1                           |0
           is patch|                            |

--- Comment #5 from Ivan Dziuba <ivan.dziuba at inlibro.com> ---
Comment on attachment 113670
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113670
Bug 27035:  Shows the number of results in a facets. Test: 1. Apply the patch.
2. The number of results is displayed for each facet after searching.

>From 959186a3bb4fc82f49e703a107f636007217000b Mon Sep 17 00:00:00 2001
>From: Ivan Dziuba <ivan.dziuba at inlibro.com>
>Date: Mon, 16 Nov 2020 11:26:29 -0500
>Subject: [PATCH] Bug 27035:  Shows the number of results in a facets. Test: 1.
> Apply the patch. 2. The number of results is displayed for each facet after
> searching.
>
>---
> koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 4 ++--
> 1 file changed, 2 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 dad168a4ef..0f20cb37fa 100644
>--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc
>+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc
>@@ -52,11 +52,11 @@
>                             [% END %]
>                                   [% IF facet.active %]
>                                     [% local_url = BLOCK %][% url | $raw %][% "&nolimit=" _  facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %]
>-                                    <span class="facet-label">[% facet.facet_label_value | html %]</span>
>+                                    <span class="facet-label">[% facet.facet_label_value | html %]</span> <strong>([% facet.facet_count | html %])</strong>
>                                     [<a href="[% local_url | $raw %]" title="Remove facet [% facet.facet_link_value | html %]">x</a>]
>                                   [% ELSE %]
>                                     [% local_url = BLOCK %][% url | $raw %][% "&limit=" _  facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %]
>-                                    <span class="facet-label"><a href="[% local_url | $raw %]" title="[% facet.facet_title_value | html %]">[% facet.facet_label_value | html %]</a></span>
>+                                    <span class="facet-label"><a href="[% local_url | $raw %]" title="[% facet.facet_title_value | html %]">[% facet.facet_label_value | html %] <strong>([% facet.facet_count | html %])</strong></a></span>
>                                     [% IF ( displayFacetCount ) %]
>                                       <span class="facet-count"> ([% facet.facet_count | html %])</span>
>                                     [% END %]
>-- 
>2.17.1

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list