don't show library facet if singleBranchMode is ON

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Joshua Ferraro 2008-03-19 17:46:26 -04:00
parent d4bde52e7a
commit 9d0fdfab5a
1 changed files with 12 additions and 6 deletions

View File

@ -587,14 +587,18 @@ sub getFacets {
tags => ['225'],
subfield => 'a',
},
{
];
my $library_facet;
$library_facet = {
link_value => 'branch',
label_value => 'Libraries',
tags => [ '995', ],
subfield => 'b',
expanded => '1',
},
];
};
push @$facets, $library_facet unless C4::Context->preference("singleBranchMode");
}
else {
$facets = [
@ -635,14 +639,16 @@ sub getFacets {
tags => [ '440', '490', ],
subfield => 'a',
},
{
];
my $library_facet;
$library_facet = {
link_value => 'branch',
label_value => 'Libraries',
tags => [ '952', ],
subfield => 'b',
expanded => '1',
},
];
};
push @$facets, $library_facet unless C4::Context->preference("singleBranchMode");
}
return $facets;
}