Bug 9980: Fix for anonymous searches
To test Search in the OPAC both logged and logged out Signed-off-by: Magnus Enger <magnus@enger.priv.no> When I turn off XSLT for the OPAC I can recreate the problem. After applying the patch things work as expected for all combinations of: - Search results and detail view - Logged in and not logged in - XSLT and non-XSLT view Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests, QA script and test plan. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
7b1a091a80
commit
ae06a83cf0
1 changed files with 4 additions and 2 deletions
|
@ -715,8 +715,10 @@ for (my $i=0;$i<@servers;$i++) {
|
|||
$template->param(results_per_page => $results_per_page);
|
||||
my $hide = C4::Context->preference('OpacHiddenItems');
|
||||
$hide = ($hide =~ m/\S/) if $hide; # Just in case it has some spaces/new lines
|
||||
|
||||
my $branch = C4::Context->userenv->{branch};
|
||||
my $branch = '';
|
||||
if (C4::Context->userenv){
|
||||
$branch = C4::Context->userenv->{branch};
|
||||
}
|
||||
if ( C4::Context->preference('HighlightOwnItemsOnOPAC') ) {
|
||||
if (
|
||||
( ( C4::Context->preference('HighlightOwnItemsOnOPACWhich') eq 'PatronBranch' ) && $branch )
|
||||
|
|
Loading…
Reference in a new issue