Bug 35407 - Terminology: Show fewer collection codes
Summary: Terminology: Show fewer collection codes
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords: Academy
Depends on:
Blocks:
 
Reported: 2023-11-27 15:26 UTC by Katrin Fischer
Modified: 2024-12-23 08:06 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.05.00,23.11.03
Circulation function:


Attachments
Bug 35407: Correct terminology: Show fewer collections (4.18 KB, patch)
2023-12-04 16:02 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 35407: Correct terminology: Show fewer collections (4.24 KB, patch)
2023-12-04 16:54 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 35407: Correct terminology: Show fewer collections (4.29 KB, patch)
2024-01-17 18:25 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2023-11-27 15:26:22 UTC
Collection codes should be collection. We don't show codes.

koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc:49 

Text for item types should also be verified.
Comment 1 Owen Leonard 2023-12-04 16:02:20 UTC Comment hidden (obsolete)
Comment 2 Lucas Gass (lukeg) 2023-12-04 16:54:51 UTC
Created attachment 159543 [details] [review]
Bug 35407: Correct terminology: Show fewer collections

In the OPAC, the "Show more" and "Show less" links have aria-labels to
make their function clearer to screen readers. The collection and item
type controls need corrected terminology, and the links also need to
have their template filter corrected (html, not uri).

To test, apply the patch and perform a catalog search in the OPAC.

- Test that the "Show more" and "Show less" links in the facets sidebar
  work correctly to expand and collapse the lists of facets.
- It's not necessary to test with a screen reader. You can view the
  source to confirm the markup on the "Show more collections" and "Show
  more item types" links.

  Before:
  <a href="#" aria-label="%0A%20%20%20%20Show%20more%20collection%20codes%0A"><strong>Show more</strong></a>

  After:
  <a href="#" aria-label="Show more collections"><strong>Show more</strong></a>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 3 Victor Grousset/tuxayo 2024-01-17 18:25:30 UTC
Created attachment 161117 [details] [review]
Bug 35407: Correct terminology: Show fewer collections

In the OPAC, the "Show more" and "Show less" links have aria-labels to
make their function clearer to screen readers. The collection and item
type controls need corrected terminology, and the links also need to
have their template filter corrected (html, not uri).

To test, apply the patch and perform a catalog search in the OPAC.

- Test that the "Show more" and "Show less" links in the facets sidebar
  work correctly to expand and collapse the lists of facets.
- It's not necessary to test with a screen reader. You can view the
  source to confirm the markup on the "Show more collections" and "Show
  more item types" links.

  Before:
  <a href="#" aria-label="%0A%20%20%20%20Show%20more%20collection%20codes%0A"><strong>Show more</strong></a>

  After:
  <a href="#" aria-label="Show more collections"><strong>Show more</strong></a>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 4 Victor Grousset/tuxayo 2024-01-17 18:26:10 UTC
Works, makes sense, QA script happy, code looks good, passing QA :)
Comment 5 Katrin Fischer 2024-01-26 14:17:49 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 6 Fridolin Somers 2024-01-31 14:00:01 UTC
Pushed to 23.11.x for 23.11.03
Comment 7 Lucas Gass (lukeg) 2024-02-09 20:35:08 UTC
Merge conflicts with 23.05.x, no backport.