@@ -, +, @@ from other libraries with IndependentBranches - circulate (all) - catalogue - borrowers - delete_borrowers - edit_borrowers - reserveforothers (all) - reports (all) -- The patron from the other library appears in the list -- The patron from the other library is inaccessible --- reports/borrowers_out.pl | 5 +++++ 1 file changed, 5 insertions(+) --- a/reports/borrowers_out.pl +++ a/reports/borrowers_out.pl @@ -212,6 +212,11 @@ sub calculate { $strcalc .= " , " . $dbh->quote($colfield) if ($colfield); $strcalc .= " FROM borrowers "; $strcalc .= "WHERE 1 "; + if(C4::Context->preference('IndependentBranches') && !C4::Context->IsSuperLibrarian()){ + $strcalc .= "AND branchcode = '".C4::Context->userenv->{branch}."' "; + } + + my @query_args; if ( @$filters[0] ) { @$filters[0]=~ s/\*/%/g; --