From 71e436504b3bb33f78561ac0c135ec104b246efb Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Fri, 18 Jul 2008 17:54:11 -0500 Subject: [PATCH] Removes the Libraries facet if singleBranchMode is ON --- C4/Search.pm | 2 +- koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 11be63b928..e350ff3100 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -606,7 +606,7 @@ sub getRecords { expandable => $expandable, expand => $link_value, } - ); + ) unless ( ($facets_info->{$link_value}->{'label_value'} =~ /Libraries/) and (C4::Context->preference('singleBranchMode')) ); } } } diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc index d2e6d680bb..aba1e3bc1f 100755 --- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc @@ -14,7 +14,9 @@ Topics Places Series + Libraries +