Bug 32252

Summary: Number of results in a facet do not show after facet selection
Product: Koha Reporter: Catrina Berka <catrina>
Component: SearchingAssignee: Eric Garcia <cubingguy714>
Status: RESOLVED FIXED QA Contact: Lucas Gass (lukeg) <lucas>
Severity: minor    
Priority: P5 - low CC: lucas
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.11.00
Circulation function:
Attachments: Bug 32252: Show number of results after facet selection
Bug 32252: Show number of results after facet selection
Bug 32252: Show number of results after facet selection

Description Catrina Berka 2022-11-17 16:00:19 UTC
Bug 27035 was supposed to show the number of results in a facet after selection, but the old behavior persists, only showing [x] that the facet has been selected, not the (n) indicating the number of results. 

This screencast shows the results on the staff interface: https://watch.screencastify.com/v/rWbvqeBLY7hXTex8TekX
Comment 1 Katrin Fischer 2022-11-17 16:33:21 UTC
Hi Catrina, did you set displayFacetCount to show?
Comment 2 Catrina Berka 2022-11-17 16:44:13 UTC
Yes, displayFacetCount = show
Comment 3 Lucas Gass (lukeg) 2022-11-17 19:28:13 UTC
Confirmed on master. In the staff client the (n) will not show after making a selection, only the [x].

However, it does show the number after making a selection when searching in the OPAC. 

Ultimately, they should function the same.
Comment 4 Eric Garcia 2024-07-02 15:34:56 UTC
Created attachment 168383 [details] [review]
Bug 32252: Show number of results after facet selection

To test:
1. In system preferences, set displatFacetCount to show.
2. Search catalog and select a facet.
3. Notice next to the facet it only shows [x], and not (n) the indicated number of results.
4. Apply patch.
5. Search catalog and select a facet.
6. Notice next to the facet it now shows (n) the indicated number of results and [x] to deselect the facet.
Comment 5 Roman Dolny 2024-07-02 21:58:07 UTC
Created attachment 168408 [details] [review]
Bug 32252: Show number of results after facet selection

To test:
1. In system preferences, set displatFacetCount to show.
2. Search catalog and select a facet.
3. Notice next to the facet it only shows [x], and not (n) the indicated number of results.
4. Apply patch.
5. Search catalog and select a facet.
6. Notice next to the facet it now shows (n) the indicated number of results and [x] to deselect the facet.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Comment 6 Lucas Gass (lukeg) 2024-07-02 22:43:40 UTC
Created attachment 168412 [details] [review]
Bug 32252: Show number of results after facet selection

To test:
1. In system preferences, set displatFacetCount to show.
2. Search catalog and select a facet.
3. Notice next to the facet it only shows [x], and not (n) the indicated number of results.
4. Apply patch.
5. Search catalog and select a facet.
6. Notice next to the facet it now shows (n) the indicated number of results and [x] to deselect the facet.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Mentored-by: ByWater Solutions
Comment 7 Katrin Fischer 2024-07-05 13:50:23 UTC
Pushed for 24.11!

Well done everyone, thank you!