Lines 34-40
use Try::Tiny;
Link Here
|
34 |
use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); |
34 |
use C4::Output qw( output_and_exit_if_error output_and_exit output_html_with_http_headers ); |
35 |
use C4::Auth qw( get_session get_template_and_user ); |
35 |
use C4::Auth qw( get_session get_template_and_user ); |
36 |
use C4::Koha; |
36 |
use C4::Koha; |
37 |
use C4::Circulation qw( barcodedecode CanBookBeIssued AddIssue ); |
37 |
use C4::Circulation qw( barcodedecode CanBookBeIssued AddIssue AddReturn ); |
38 |
use C4::Members; |
38 |
use C4::Members; |
39 |
use C4::Biblio qw( TransformMarcToKoha ); |
39 |
use C4::Biblio qw( TransformMarcToKoha ); |
40 |
use C4::Search qw( new_record_from_zebra ); |
40 |
use C4::Search qw( new_record_from_zebra ); |
Lines 355-360
if (@$barcodes && $op eq 'cud-checkout') {
Link Here
|
355 |
$biblio = $item->biblio; |
355 |
$biblio = $item->biblio; |
356 |
} |
356 |
} |
357 |
|
357 |
|
|
|
358 |
if ( $issuingimpossible->{'STATS'} ) { |
359 |
my ( $stats_return, $stats_messages, $stats_iteminformation, $stats_borrower ) = |
360 |
AddReturn( $item->barcode, C4::Context->userenv->{'branch'}, undef, undef, 1 ) |
361 |
if $item->onloan; |
362 |
|
363 |
$template->param( |
364 |
STATS => 1, |
365 |
CHECKEDIN => $stats_return, |
366 |
MESSAGES => $stats_messages, |
367 |
ITEM => $stats_iteminformation, |
368 |
BORROWER => $stats_borrower, |
369 |
); |
370 |
}; |
371 |
|
358 |
# Fix for bug 7494: optional checkout-time fallback search for a book |
372 |
# Fix for bug 7494: optional checkout-time fallback search for a book |
359 |
|
373 |
|
360 |
if ( $issuingimpossible->{'UNKNOWN_BARCODE'} |
374 |
if ( $issuingimpossible->{'UNKNOWN_BARCODE'} |
361 |
- |
|
|