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 430-436
if ($barcode && ( $op eq 'cud-checkin' || $op eq 'cud-affect_reserve' ) ) {
Link Here
|
430 |
); |
431 |
); |
431 |
} |
432 |
} |
432 |
} |
433 |
} |
433 |
|
434 |
# Verify if the item is in the course reserve |
|
|
435 |
my $course_reserves = C4::CourseReserves::GetItemCourseReservesInfo( itemnumber => $itemnumber ); |
436 |
if($course_reserves) { |
437 |
$template->param( |
438 |
found => 1, |
439 |
course_reserve => 1, |
440 |
course_name => $course_reserves->[0]->{course}->{course_name} |
441 |
); |
442 |
} |
434 |
} elsif ( C4::Context->preference('ShowAllCheckins') and !$messages->{'BadBarcode'} and !$needs_confirm and !$bundle_confirm ) { |
443 |
} elsif ( C4::Context->preference('ShowAllCheckins') and !$messages->{'BadBarcode'} and !$needs_confirm and !$bundle_confirm ) { |
435 |
my $duedate = 0; |
444 |
my $duedate = 0; |
436 |
if ($issue) { |
445 |
if ($issue) { |