X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-course-details.pl;h=415cade52f92ad8b27bb9c6695554dd8450f694d;hb=6b90fa3ec4ca7ec9515a59527fb9ff7f4d823318;hp=728165270621ef887cccb16de480c44aeac30db1;hpb=f5fac05624b2a1fcb3242f5d8821354679f04ba4;p=koha-ffzg.git diff --git a/opac/opac-course-details.pl b/opac/opac-course-details.pl index 7281652706..415cade52f 100755 --- a/opac/opac-course-details.pl +++ b/opac/opac-course-details.pl @@ -5,37 +5,35 @@ # # This file is part of Koha. # -# Koha is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. # -# Koha is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along -# with Koha; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . use Modern::Perl; -use CGI; +use CGI qw ( -utf8 ); -use C4::Auth; -use C4::Output; -use C4::Koha; +use C4::Auth qw( get_template_and_user ); +use C4::Output qw( output_html_with_http_headers ); -use C4::CourseReserves qw(GetCourse GetCourseReserves); +use C4::CourseReserves qw( GetCourse GetCourseReserve GetCourseReserves ); -my $cgi = new CGI; +my $cgi = CGI->new; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( - { template_name => "opac-course-details.tmpl", + { template_name => "opac-course-details.tt", query => $cgi, type => "opac", authnotrequired => 1, - debug => 1, } );