Lines 46-51
die("No course_id given") unless ($course_id);
Link Here
|
46 |
my $course = GetCourse($course_id); |
46 |
my $course = GetCourse($course_id); |
47 |
my $course_reserves = GetCourseReserves( course_id => $course_id, include_items => 1, include_count => 1 ); |
47 |
my $course_reserves = GetCourseReserves( course_id => $course_id, include_items => 1, include_count => 1 ); |
48 |
|
48 |
|
|
|
49 |
foreach my $cr (@$course_reserves) { |
50 |
if ($cr->{'issue'}->{date_due} && $cr->{'isue'}->{borrowernumber} && $borrowernumber != $cr->{'issue'}->{borrowernumber} && C4::Context->preference('UseRecalls')) { |
51 |
$cr->{'course_item'}->{avail_for_recall} = 1; |
52 |
} else { |
53 |
$cr->{'course_item'}->{avail_for_recall} = 0; |
54 |
} |
55 |
} |
56 |
|
49 |
$template->param( |
57 |
$template->param( |
50 |
course => $course, |
58 |
course => $course, |
51 |
course_reserves => $course_reserves, |
59 |
course_reserves => $course_reserves, |
52 |
- |
|
|