Merge remote branch 'kc/new/bug2567' into kcmaster
[koha.git] / test / progressbar.pl
1 #!/usr/bin/perl
2
3 # Script for testing progressbar, part 1 - initial screem
4 # it is split into two scripts so we can use firebug to debug it
5
6 # Koha library project  www.koha-community.org
7
8 # Licensed under the GPL
9
10 # Copyright 2010 Catalyst IT, Ltd
11 #
12 # This file is part of Koha.
13 #
14 # Koha is free software; you can redistribute it and/or modify it under the
15 # terms of the GNU General Public License as published by the Free Software
16 # Foundation; either version 2 of the License, or (at your option) any later
17 # version.
18 #
19 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
20 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
21 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License along
24 # with Koha; if not, write to the Free Software Foundation, Inc.,
25 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26
27 use strict;
28 use warnings;
29
30 # standard or CPAN modules used
31 use CGI;
32 use CGI::Cookie;
33
34 # Koha modules used
35 use C4::Context;
36 use C4::Auth;
37 use C4::Output;
38 use C4::BackgroundJob;
39
40 my $input = new CGI;
41 my $dbh = C4::Context->dbh;
42 $dbh->{AutoCommit} = 0;
43
44 my ($template, $loggedinuser, $cookie)
45         = get_template_and_user({template_name => "test/progressbar.tmpl",
46                                         query => $input,
47                                         type => "intranet",
48                                         debug => 1,
49                                         });
50
51 output_html_with_http_headers $input, $cookie, $template->output;
52
53 exit 0;
54
55