Lines 217-223
if ($dotransfer){
Link Here
|
217 |
# An item has been returned to a branch other than the homebranch, and the librarian has chosen to initiate a transfer |
217 |
# An item has been returned to a branch other than the homebranch, and the librarian has chosen to initiate a transfer |
218 |
my $transferitem = $query->param('transferitem'); |
218 |
my $transferitem = $query->param('transferitem'); |
219 |
my $tobranch = $query->param('tobranch'); |
219 |
my $tobranch = $query->param('tobranch'); |
220 |
ModItemTransfer($transferitem, $userenv_branch, $tobranch); |
220 |
ModItemTransfer($transferitem, $userenv_branch, $tobranch); |
221 |
} |
221 |
} |
222 |
|
222 |
|
223 |
if ($canceltransfer){ |
223 |
if ($canceltransfer){ |
Lines 276-282
if ($barcode) {
Link Here
|
276 |
itembarcode => $biblio->{'barcode'}, |
276 |
itembarcode => $biblio->{'barcode'}, |
277 |
itemtype => $biblio->{'itemtype'}, |
277 |
itemtype => $biblio->{'itemtype'}, |
278 |
ccode => $biblio->{'ccode'}, |
278 |
ccode => $biblio->{'ccode'}, |
279 |
itembiblionumber => $biblio->{'biblionumber'}, |
279 |
itembiblionumber => $biblio->{'biblionumber'}, |
280 |
borrower => $borrower, |
280 |
borrower => $borrower, |
281 |
additional_materials => $biblio->{'materials'}, |
281 |
additional_materials => $biblio->{'materials'}, |
282 |
); |
282 |
); |
Lines 305-311
if ($barcode) {
Link Here
|
305 |
$template->param( fineborrowernumber => $borrower->{'borrowernumber'} ); |
305 |
$template->param( fineborrowernumber => $borrower->{'borrowernumber'} ); |
306 |
} |
306 |
} |
307 |
} |
307 |
} |
308 |
|
308 |
|
309 |
if (C4::Context->preference("WaitingNotifyAtCheckin") ) { |
309 |
if (C4::Context->preference("WaitingNotifyAtCheckin") ) { |
310 |
#Check for waiting holds |
310 |
#Check for waiting holds |
311 |
my @reserves = GetReservesFromBorrowernumber($borrower->{'borrowernumber'}); |
311 |
my @reserves = GetReservesFromBorrowernumber($borrower->{'borrowernumber'}); |
Lines 314-320
if ($barcode) {
Link Here
|
314 |
if ( $num_res->{'found'} eq 'W' && $num_res->{'branchcode'} eq $userenv_branch) { |
314 |
if ( $num_res->{'found'} eq 'W' && $num_res->{'branchcode'} eq $userenv_branch) { |
315 |
$waiting_holds++; |
315 |
$waiting_holds++; |
316 |
} |
316 |
} |
317 |
} |
317 |
} |
318 |
if ($waiting_holds > 0) { |
318 |
if ($waiting_holds > 0) { |
319 |
$template->param( |
319 |
$template->param( |
320 |
waiting_holds => $waiting_holds, |
320 |
waiting_holds => $waiting_holds, |
Lines 600-606
$template->param(
Link Here
|
600 |
BlockReturnOfWithdrawnItems => C4::Context->preference("BlockReturnOfWithdrawnItems"), |
600 |
BlockReturnOfWithdrawnItems => C4::Context->preference("BlockReturnOfWithdrawnItems"), |
601 |
); |
601 |
); |
602 |
|
602 |
|
603 |
my $itemnumber = GetItemnumberFromBarcode( $query->param('barcode') ); |
603 |
$itemnumber = GetItemnumberFromBarcode( $query->param('barcode') ); |
604 |
if ( $itemnumber ) { |
604 |
if ( $itemnumber ) { |
605 |
my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber ); |
605 |
my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber ); |
606 |
if ( ! ( $holdingBranch eq $collectionBranch ) ) { |
606 |
if ( ! ( $holdingBranch eq $collectionBranch ) ) { |