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 354-359
if (@$barcodes) {
Link Here
|
354 |
$biblio = $item->biblio; |
354 |
$biblio = $item->biblio; |
355 |
} |
355 |
} |
356 |
|
356 |
|
|
|
357 |
if ( $issuingimpossible->{'STATS'} ) { |
358 |
my ( $stats_return, $stats_messages, $stats_iteminformation, $stats_borrower ) = |
359 |
AddReturn( $item->barcode, C4::Context->userenv->{'branch'}, undef, undef, 1 ) |
360 |
if $item->onloan; |
361 |
|
362 |
$template->param( |
363 |
STATS => 1, |
364 |
CHECKEDIN => $stats_return, |
365 |
MESSAGES => $stats_messages, |
366 |
ITEM => $stats_iteminformation, |
367 |
BORROWER => $stats_borrower, |
368 |
); |
369 |
}; |
370 |
|
357 |
# Fix for bug 7494: optional checkout-time fallback search for a book |
371 |
# Fix for bug 7494: optional checkout-time fallback search for a book |
358 |
|
372 |
|
359 |
if ( $issuingimpossible->{'UNKNOWN_BARCODE'} |
373 |
if ( $issuingimpossible->{'UNKNOWN_BARCODE'} |
360 |
- |
|
|