Bug 41377

Summary: Longer names in search facets do not wrap, or hide the overflow
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: SearchingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: michael.adamyk
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: example
better example
(Staff intranet) Example with FacetLabelTruncationLength set to 20 when using ElasticSearch
(OPAC) Example with FacetLabelTruncationLength set to 20 when using ElasticSearch

Description Lucas Gass (lukeg) 2025-12-04 17:32:28 UTC
Created attachment 190158 [details]
example

To recreate:

1. Add a really long author name to a record/
2. Do a search that returns that record.
3. Look at the facet, it can bleed into the actual record.  

We should include CSS to either wrap, or hide the overflow.
Comment 1 Lucas Gass (lukeg) 2025-12-04 17:33:10 UTC
Created attachment 190159 [details]
better example
Comment 2 Katrin Fischer 2025-12-29 22:30:20 UTC
Does FacetLabelTruncationLength fix the issue?
Comment 3 Michael Adamyk 2026-01-02 17:17:05 UTC
Hi Katrin,
It does not fix it, no. I have the FacetLabelTruncationLength set to 20, and it is still showing up strange (I'll upload an example).The setting on that system preference states that it requires Zebra, while my example is using ElasticSearch. Perhaps that's part of the problem?
Comment 4 Michael Adamyk 2026-01-02 17:18:40 UTC
Created attachment 190841 [details]
(Staff intranet) Example with FacetLabelTruncationLength set to 20 when using ElasticSearch
Comment 5 Katrin Fischer 2026-01-02 18:48:00 UTC
Hi Michael, it looks like it might not be working... or maybe only in OPAC? Did you test in staff interface? (just to narrow it down a bit more)
Comment 6 Michael Adamyk 2026-01-02 21:17:33 UTC
Comment on attachment 190841 [details]
(Staff intranet) Example with FacetLabelTruncationLength set to 20 when using ElasticSearch

This is the view from the staff intranet search.
Comment 7 Michael Adamyk 2026-01-02 21:19:57 UTC
Created attachment 190852 [details]
(OPAC) Example with FacetLabelTruncationLength set to 20 when using ElasticSearch

This is the view from the OPAC with the same search, it also appears to not be working.