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

(-)a/course_reserves/course-details.pl (-1 lines)
Lines 60-66 my $course_reserves = GetCourseReserves( Link Here
60
$template->param(
60
$template->param(
61
    course          => $course,
61
    course          => $course,
62
    course_reserves => $course_reserves,
62
    course_reserves => $course_reserves,
63
    count           => scalar @$course_reserves,
64
);
63
);
65
64
66
output_html_with_http_headers $cgi, $cookie, $template->output;
65
output_html_with_http_headers $cgi, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-2 / +2 lines)
Lines 23-31 Link Here
23
        });
23
        });
24
24
25
        $("#delete_course").click(function(){
25
        $("#delete_course").click(function(){
26
            [% SET count = course_reserves.size %]
26
            [% IF count == 1 %]
27
            [% IF count == 1 %]
27
                return confirmDelete(_("Are you sure you want to delete this course? There is [% count %] attached item.") );
28
                return confirmDelete(_("Are you sure you want to delete this course? There is [% count %] attached item.") );
28
            [% ELSIF count != 1 && count > 0 %]
29
            [% ELSIF count > 1 %]
29
                return confirmDelete(_("Are you sure you want to delete this course? There are [% count %] attached items.") );
30
                return confirmDelete(_("Are you sure you want to delete this course? There are [% count %] attached items.") );
30
            [% ELSE %]
31
            [% ELSE %]
31
                return confirmDelete(_("Are you sure you want to delete this course?"));
32
                return confirmDelete(_("Are you sure you want to delete this course?"));
32
- 

Return to bug 19231