From 1bf93a36db3b81352e9907979cb7377921a31a44 Mon Sep 17 00:00:00 2001 From: Frederic Demians Date: Tue, 20 May 2008 22:06:58 +0200 Subject: [PATCH] Facets (current) translatable via template This patch allows to translate facets label with standart templates / PO files. Facets are still hard coded in Koha.pm. Template wait those hard coded facets: Topics, Places, Titles, Autors and Libraries. Signed-off-by: Joshua Ferraro --- C4/Search.pm | 3 +-- koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc | 8 +++++++- 2 files changed, 8 insertions(+), 3 deletions(-) mode change 100644 => 100755 C4/Search.pm mode change 100644 => 100755 koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc diff --git a/C4/Search.pm b/C4/Search.pm old mode 100644 new mode 100755 index b9ed475e27..853ab20875 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -592,8 +592,7 @@ sub getRecords { { type_link_value => $link_value, type_id => $link_value . "_id", - type_label => - $facets_info->{$link_value}->{'label_value'}, + "type_label_" . $facets_info->{$link_value}->{'label_value'} => 1, facets => \@this_facets_array, expandable => $expandable, expand => $link_value, diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc old mode 100644 new mode 100755 index 8cc3c87e65..af7b18c436 --- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc @@ -8,7 +8,13 @@ -
  • ">