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 74-80 Link Here
74
                                    <td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]</td>
74
                                    <td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]</td>
75
                                    <td>[% cr.item.itemcallnumber %]</td>
75
                                    <td>[% cr.item.itemcallnumber %]</td>
76
                                    <td>[% cr.item.copynumber %]</td>
76
                                    <td>[% cr.item.copynumber %]</td>
77
                                    <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td>
77
                                    <td>[% INCLUDE 'item-status.inc' item=cr.course_item issue=cr.issue %]</td>
78
                                    <td><span title="[% cr.issue.date_due %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</span></td>
78
                                    <td><span title="[% cr.issue.date_due %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</span></td>
79
                                    <td>[% IF ( cr.public_note ) %]
79
                                    <td>[% IF ( cr.public_note ) %]
80
                                            [% cr.public_note %]
80
                                            [% cr.public_note %]
(-)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