<tr>
<th> </th>
<th>Card</th>
- <th>Surname</th>
- <th>Firstname</th>
+ <th>Name</th>
+ <th>Branch</th>
<th>Category</th>
<th>Address</th>
<th>OD/Issues</th>
<!-- /TMPL_IF -->
<td><!-- TMPL_VAR NAME="count" --></td>
<td><!-- TMPL_VAR NAME="cardnumber" --></td>
- <td><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="surname" --></a></td>
- <td><!-- TMPL_VAR NAME="firstname" --></a></td>
+ <td><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --></a></td>
+ <td><!-- TMPL_VAR name="branchcode" --></td>
<td><!-- TMPL_VAR NAME="categorycode" --></td>
<td><!-- TMPL_VAR NAME="streetaddress" --> <!-- TMPL_VAR NAME="city" --></td>
<td><!-- TMPL_VAR NAME="odissue" --></td>
categorycode => $results->[$i]{'categorycode'},
streetaddress => $results->[$i]{'streetaddress'},
city => $results->[$i]{'city'},
+ branchcode => $results->[$i]{'branchcode'},
odissue => "$od/$issue",
fines => $fines,
borrowernotes => $results->[$i]{'borrowernotes'});
} else {
$data=borrdata('',$borrowernumber);
}
+ if (C4::Context->preference("IndependantBranches")) {
+ my $userenv = C4::Context->userenv;
+ if ($userenv->{flags} != 1 && $data->{branchcode}){
+ unless ($userenv->{branch} eq $data->{'branchcode'}){
+ print $input->redirect("/cgi-bin/koha/members/members-home.pl");
+ }
+ }
+ }
if ($actionType eq 'Add'){
$template->param( updtype => 'I');
} else {