Bug 41377 - Longer names in search facets do not wrap, or hide the overflow
Summary: Longer names in search facets do not wrap, or hide the overflow
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-04 17:32 UTC by Lucas Gass (lukeg)
Modified: 2026-01-02 21:20 UTC (History)
1 user (show)

See Also:
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 (21.88 KB, image/png)
2025-12-04 17:32 UTC, Lucas Gass (lukeg)
Details
better example (20.42 KB, image/png)
2025-12-04 17:33 UTC, Lucas Gass (lukeg)
Details
(Staff intranet) Example with FacetLabelTruncationLength set to 20 when using ElasticSearch (55.16 KB, image/png)
2026-01-02 17:18 UTC, Michael Adamyk
Details
(OPAC) Example with FacetLabelTruncationLength set to 20 when using ElasticSearch (85.33 KB, image/png)
2026-01-02 21:19 UTC, Michael Adamyk
Details

Note You need to log in before you can comment on or make changes to this bug.
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.