|
Lines 42-47
use C4::Members;
Link Here
|
| 42 |
use C4::Output qw( output_html_with_http_headers ); |
42 |
use C4::Output qw( output_html_with_http_headers ); |
| 43 |
use C4::Reserves qw( ModReserve ModReserveAffect CheckReserves ); |
43 |
use C4::Reserves qw( ModReserve ModReserveAffect CheckReserves ); |
| 44 |
use C4::RotatingCollections; |
44 |
use C4::RotatingCollections; |
|
|
45 |
use C4::CourseReserves; |
| 45 |
use Koha::AuthorisedValues; |
46 |
use Koha::AuthorisedValues; |
| 46 |
use Koha::BiblioFrameworks; |
47 |
use Koha::BiblioFrameworks; |
| 47 |
use Koha::Calendar; |
48 |
use Koha::Calendar; |
|
Lines 388-394
if ( $barcode && ( $op eq 'cud-checkin' || $op eq 'cud-affect_reserve' ) ) {
Link Here
|
| 388 |
); |
389 |
); |
| 389 |
} |
390 |
} |
| 390 |
} |
391 |
} |
| 391 |
|
392 |
# Verify if the item is in the course reserve |
|
|
393 |
my $course_reserves = C4::CourseReserves::GetItemCourseReservesInfo( itemnumber => $itemnumber ); |
| 394 |
if($course_reserves) { |
| 395 |
$template->param( |
| 396 |
found => 1, |
| 397 |
course_reserve => 1, |
| 398 |
course_name => $course_reserves->[0]->{course}->{course_name} |
| 399 |
); |
| 400 |
} |
| 392 |
} elsif ( C4::Context->preference('ShowAllCheckins') |
401 |
} elsif ( C4::Context->preference('ShowAllCheckins') |
| 393 |
and !$messages->{'BadBarcode'} |
402 |
and !$messages->{'BadBarcode'} |
| 394 |
and !$needs_confirm |
403 |
and !$needs_confirm |