From b925afc451590acf9f30bcacde160b70f10b8be7 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 16 Feb 2017 14:26:20 +0000 Subject: [PATCH] Bug 17169 - Use CCODE descriptions instead of codes Signed-off-by: Jonathan Druart Signed-off-by: Brendan A Gallagher --- koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc | 2 ++ koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc index 887c38c919..572be95594 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc @@ -1,3 +1,4 @@ +[% USE AuthorisedValues %] [% IF ( opacfacets ) %] [% IF ( facets_loop ) %]
@@ -27,6 +28,7 @@ [% url = BLOCK %][% url %][% "&sort_by=" _ sort_by |url %][% END %] [% END %] [% FOREACH facet IN facets_loo.facets %] + [% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetByCode('CCODE',facet.facet_label_value,0) || facet.facet_label_value %][% END %]
  • [% IF facet.active %] [% SET local_url = url _ "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] 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 b1505b7c61..e89a6936cd 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc @@ -1,3 +1,4 @@ +[% USE AuthorisedValues %] [% IF ( opacfacets && facets_loop && total ) %]

    Refine your search

    @@ -36,6 +37,7 @@ [% url = BLOCK %][% url %][% "&sort_by=" _ sort_by |url %][% END %] [% END %] [% FOREACH facet IN facets_loo.facets %] + [% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetByCode('CCODE',facet.facet_label_value,1) || facet.facet_label_value %][% END %]
  • [% IF facet.active %] [% SET local_url = url _ "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %] -- 2.39.5