From 6d0d585c14a5943fad77f1f6481f5213cc4f7983 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 May 2024 15:46:54 +0200 Subject: [PATCH] Bug 36750: Fix Languages vs Language Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc | 1 + koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc index 82262f6c25..403628d52f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc @@ -87,6 +87,7 @@ [% FOREACH facet IN facets_loo.facets %] [% IF facets_loo.label == 'Collections' %] [% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value ) || facet.facet_label_value %] + [% END %] [% IF facets_loo.label == 'Languages' %] [% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %] [% END %] 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 06909fbfc4..a376bbc7bb 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc @@ -78,7 +78,7 @@ [% END %] [% FOREACH facet IN facets_loo.facets %] [% IF facets_loo.label == 'Collections' %][% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value, opac =>1 ) || facet.facet_label_value %][% END %] - [% IF facets_loo.label == 'Language' %][% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %][% END %] + [% IF facets_loo.label == 'Languages' %][% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %][% END %] [% IF loop.count > 5 && !facet.active %]