Lines 75-80
if ($session->param('branch') eq 'NO_LIBRARY_SET'){
Link Here
|
75 |
print $query->redirect("/cgi-bin/koha/circ/selectbranchprinter.pl"); |
75 |
print $query->redirect("/cgi-bin/koha/circ/selectbranchprinter.pl"); |
76 |
exit; |
76 |
exit; |
77 |
} |
77 |
} |
|
|
78 |
my $desk_id = C4::Context->userenv->{"desk_id"} || ''; |
78 |
|
79 |
|
79 |
# Print a reserve slip on this page |
80 |
# Print a reserve slip on this page |
80 |
if ( $query->param('print_slip') ) { |
81 |
if ( $query->param('print_slip') ) { |
Lines 166-172
if ( $query->param('reserve_id') ) {
Link Here
|
166 |
my $diffBranchSend = ($userenv_branch ne $diffBranchReturned) ? $diffBranchReturned : undef; |
167 |
my $diffBranchSend = ($userenv_branch ne $diffBranchReturned) ? $diffBranchReturned : undef; |
167 |
# diffBranchSend tells ModReserveAffect whether document is expected in this library or not, |
168 |
# diffBranchSend tells ModReserveAffect whether document is expected in this library or not, |
168 |
# i.e., whether to apply waiting status |
169 |
# i.e., whether to apply waiting status |
169 |
ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id ); |
170 |
ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id, $desk_id ); |
170 |
} |
171 |
} |
171 |
# check if we have other reserves for this document, if we have a return send the message of transfer |
172 |
# check if we have other reserves for this document, if we have a return send the message of transfer |
172 |
my ( $messages, $nextreservinfo ) = GetOtherReserves($itemnumber); |
173 |
my ( $messages, $nextreservinfo ) = GetOtherReserves($itemnumber); |
Lines 423-429
if ( $messages->{'ResFound'}) {
Link Here
|
423 |
my $biblio = $item->biblio; |
424 |
my $biblio = $item->biblio; |
424 |
|
425 |
|
425 |
my $diffBranchSend = !$branchCheck ? $reserve->{branchcode} : undef; |
426 |
my $diffBranchSend = !$branchCheck ? $reserve->{branchcode} : undef; |
426 |
ModReserveAffect( $reserve->{itemnumber}, $reserve->{borrowernumber}, $diffBranchSend, $reserve->{reserve_id} ); |
427 |
ModReserveAffect( $reserve->{itemnumber}, $reserve->{borrowernumber}, $diffBranchSend, $reserve->{reserve_id}, $desk_id ); |
427 |
my ( $messages, $nextreservinfo ) = GetOtherReserves($reserve->{itemnumber}); |
428 |
my ( $messages, $nextreservinfo ) = GetOtherReserves($reserve->{itemnumber}); |
428 |
|
429 |
|
429 |
my $patron = Koha::Patrons->find( $nextreservinfo ); |
430 |
my $patron = Koha::Patrons->find( $nextreservinfo ); |