diff --git a/C4/Koha.pm b/C4/Koha.pm index 41b6003de4..1c3e2ceb2d 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -347,7 +347,7 @@ sub getFacets { }, { idx => 'ccode', - label => 'CollectionCodes', + label => 'Collections', tags => [ qw / 099t 955h / ], } ]; @@ -362,7 +362,7 @@ sub getFacets { @$facets, { idx => 'holdingbranch', - label => 'HoldingLibrary', + label => 'Holding libraries', tags => [qw / 995c /], } ); @@ -375,7 +375,7 @@ sub getFacets { @$facets, { idx => 'homebranch', - label => 'HomeLibrary', + label => 'Home libraries', tags => [qw / 995b /], } ); @@ -422,7 +422,7 @@ sub getFacets { }, { idx => 'itype', - label => 'ItemTypes', + label => 'Item types', tags => [ qw/ 952y 942c / ], sep => ', ', }, @@ -433,7 +433,7 @@ sub getFacets { }, { idx => 'ccode', - label => 'CollectionCodes', + label => 'Collections', tags => [ qw / 9528 / ], } ]; @@ -448,7 +448,7 @@ sub getFacets { @$facets, { idx => 'holdingbranch', - label => 'HoldingLibrary', + label => 'Holding libraries', tags => [qw / 952b /], } ); @@ -461,7 +461,7 @@ sub getFacets { @$facets, { idx => 'homebranch', - label => 'HomeLibrary', + label => 'Home libraries', tags => [qw / 952a /], } ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc index 2834691541..82262f6c25 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc @@ -85,9 +85,9 @@ [% url = BLOCK %][% url | $raw %][% "&count=" _ results_per_page | url %][% END %] [% END %] [% FOREACH facet IN facets_loo.facets %] - [% IF facets_loo.type_label_CollectionCodes %] + [% 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 %] - [% ELSIF facets_loo.type_label_Language %] + [% 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 %] @@ -95,7 +95,7 @@ [% ELSE %]