From db529b57f41fe5274e27333d4716af3b233f1394 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Mon, 10 Aug 2009 11:24:05 -0600 Subject: [PATCH] bugfix opac-user stomps mylibraryfirst value in quick search label the system preference mylibraryfirst is exported by Auth containing the logged in users branchcode. It is also exported as the value of the syspref by opac-user.pl. The effect is that when mylibraryfirst is on and the user logged in the text label for the OPAC quick search instead of displaying 'Search (in [branchcode] only)' shows 'Search (in 1 only)'. Other user pages are uneffected. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- opac/opac-user.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index b1bbe5f393..d8f83178d4 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -185,7 +185,7 @@ for my $branch_hash (sort keys %$branches ) { selected => $selected }; } -$template->param( branchloop => \@branch_loop, "mylibraryfirst"=>C4::Context->preference("SearchMyLibraryFirst")); +$template->param( branchloop => \@branch_loop ); # now the reserved items.... my @reserves = GetReservesFromBorrowernumber( $borrowernumber ); -- 2.20.1