View | Details | Raw Unified | Return to bug 19532
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt (-1 / +1 lines)
Lines 78-84 Link Here
78
                                    <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td>
78
                                    <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td>
79
                                    <td><span title="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 | html %]</span></td>
79
                                    <td><span title="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 | html %]</span></td>
80
                                    <td>[% IF ( cr.public_note ) %]
80
                                    <td>[% IF ( cr.public_note ) %]
81
                                            [% cr.public_note | html %]
81
                                        [% cr.public_note | html %]
82
                                        [% ELSIF ( cr.item.itemnotes ) %]
82
                                        [% ELSIF ( cr.item.itemnotes ) %]
83
                                            [% cr.item.itemnotes | html %]
83
                                            [% cr.item.itemnotes | html %]
84
                                        [% END %]
84
                                        [% END %]
(-)a/opac/opac-course-details.pl (-1 / +8 lines)
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
- 

Return to bug 19532