Lines 131-137
if ($findborrower) {
Link Here
|
131 |
# If we have the borrowernumber because we've performed an action, then we |
131 |
# If we have the borrowernumber because we've performed an action, then we |
132 |
# don't want to try to place another reserve. |
132 |
# don't want to try to place another reserve. |
133 |
if ($borrowernumber_hold && !$action) { |
133 |
if ($borrowernumber_hold && !$action) { |
134 |
my $borrowerinfo = GetMemberDetails( $borrowernumber_hold ); |
134 |
my $borrowerinfo = GetMember( borrowernumber => $borrowernumber_hold ); |
135 |
my $diffbranch; |
135 |
my $diffbranch; |
136 |
my @getreservloop; |
136 |
my @getreservloop; |
137 |
my $count_reserv = 0; |
137 |
my $count_reserv = 0; |
Lines 219-226
if ($borrowerslist) {
Link Here
|
219 |
); |
219 |
); |
220 |
} |
220 |
} |
221 |
|
221 |
|
222 |
# FIXME launch another time GetMemberDetails perhaps until |
222 |
# FIXME launch another time GetMember perhaps until |
223 |
my $borrowerinfo = GetMemberDetails( $borrowernumber_hold ); |
223 |
my $borrowerinfo = GetMember( borrowernumber => $borrowernumber_hold ); |
224 |
|
224 |
|
225 |
my @biblionumbers = (); |
225 |
my @biblionumbers = (); |
226 |
my $biblionumbers = $input->param('biblionumbers'); |
226 |
my $biblionumbers = $input->param('biblionumbers'); |
Lines 375-381
foreach my $biblionumber (@biblionumbers) {
Link Here
|
375 |
|
375 |
|
376 |
# checking reserve |
376 |
# checking reserve |
377 |
my ($reservedate,$reservedfor,$expectedAt) = GetReservesFromItemnumber($itemnumber); |
377 |
my ($reservedate,$reservedfor,$expectedAt) = GetReservesFromItemnumber($itemnumber); |
378 |
my $ItemBorrowerReserveInfo = GetMemberDetails( $reservedfor, 0); |
378 |
my $ItemBorrowerReserveInfo = GetMember( borrowernumber => $reservedfor ); |
379 |
|
379 |
|
380 |
if ( defined $reservedate ) { |
380 |
if ( defined $reservedate ) { |
381 |
$item->{backgroundcolor} = 'reserved'; |
381 |
$item->{backgroundcolor} = 'reserved'; |
Lines 544-550
foreach my $biblionumber (@biblionumbers) {
Link Here
|
544 |
} |
544 |
} |
545 |
|
545 |
|
546 |
# get borrowers reserve info |
546 |
# get borrowers reserve info |
547 |
my $reserveborrowerinfo = GetMemberDetails( $res->{'borrowernumber'}, 0); |
547 |
my $reserveborrowerinfo = GetMember( borrowernumber => $res->{'borrowernumber'} ); |
548 |
if (C4::Context->preference('HidePatronName')){ |
548 |
if (C4::Context->preference('HidePatronName')){ |
549 |
$reserve{'hidename'} = 1; |
549 |
$reserve{'hidename'} = 1; |
550 |
$reserve{'cardnumber'} = $reserveborrowerinfo->{'cardnumber'}; |
550 |
$reserve{'cardnumber'} = $reserveborrowerinfo->{'cardnumber'}; |
551 |
- |
|
|