[Koha-patches] [PATCH] bugfix opac-user stomps mylibraryfirst value in quick search label
Michael Hafen
mdhafen at tech.washk12.org
Mon Aug 10 19:24:05 CEST 2009
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.
---
opac/opac-user.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opac/opac-user.pl b/opac/opac-user.pl
index 708ba7f..e1f5aaf 100755
--- a/opac/opac-user.pl
+++ b/opac/opac-user.pl
@@ -171,7 +171,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 );
--
1.6.0.4
More information about the Koha-patches
mailing list