From 33f709cf8ed8415e82e4fc1a2b592035c40f2358 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 4 Dec 2023 15:47:23 +0000 Subject: [PATCH] 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: Show more After: Show more Signed-off-by: Lucas Gass Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer (cherry picked from commit 24845a8861a1cc07b552fe126dab8ed897be950f) Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 c1ac9a57ef..8a62c4cd93 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc @@ -45,8 +45,8 @@ [% more_less_labels.Topics = { more = t("Show more topics"), less = t("Show fewer topics") } %] [% more_less_labels.Places = { more = t("Show more places"), less = t("Show fewer places") } %] [% more_less_labels.Series = { more = t("Show more series"), less = t("Show fewer series") } %] - [% more_less_labels.ItemTypes = { more = t("Show more types"), less = t("Show fewer types") } %] - [% more_less_labels.CollectionCodes = { more = t("Show more collection codes"), less = t("Show fewer collection codes") } %] + [% more_less_labels.ItemTypes = { more = t("Show more item types"), less = t("Show fewer item types") } %] + [% more_less_labels.CollectionCodes = { more = t("Show more collections"), less = t("Show fewer collections") } %] [% more_less_labels.Language = { more = t("Show more languages"), less = t("Show fewer languages") } %] [% more_less_labels.HomeLibrary = { more = t("Show more home libraries"), less = t("Show fewer home libraries") } %] [% more_less_labels.HoldingLibrary = { more = t("Show more holding libraries"), less = t("Show fewer holding libraries") } %] @@ -103,14 +103,14 @@
  • [% FOR label IN more_less_labels.keys %] [% IF facets_loo.item('type_label_' _ label) %] - Show more + Show more [% END %] [% END %]
  • -- 2.39.5