Lines 44-49
use C4::Members;
Link Here
|
44 |
use C4::Branch; # GetBranches GetBranchName |
44 |
use C4::Branch; # GetBranches GetBranchName |
45 |
use C4::Koha; # FIXME : is it still useful ? |
45 |
use C4::Koha; # FIXME : is it still useful ? |
46 |
use C4::RotatingCollections; |
46 |
use C4::RotatingCollections; |
|
|
47 |
use C4::CourseReserves; |
47 |
use Koha::DateUtils; |
48 |
use Koha::DateUtils; |
48 |
use Koha::Calendar; |
49 |
use Koha::Calendar; |
49 |
|
50 |
|
Lines 320-325
if ($barcode) {
Link Here
|
320 |
); |
321 |
); |
321 |
} |
322 |
} |
322 |
} |
323 |
} |
|
|
324 |
# Verify if the item is in the course reserve |
325 |
my $course_reserves = C4::CourseReserves::GetItemCourseReservesInfo( itemnumber => $itemnumber ); |
326 |
if($course_reserves) { |
327 |
$template->param( |
328 |
found => 1, |
329 |
course_reserve => 1, |
330 |
course_name => $course_reserves->[0]->{course}->{course_name} |
331 |
); |
332 |
} |
323 |
} |
333 |
} |
324 |
elsif ( !$messages->{'BadBarcode'} ) { |
334 |
elsif ( !$messages->{'BadBarcode'} ) { |
325 |
$input{duedate} = 0; |
335 |
$input{duedate} = 0; |