@@ -, +, @@ is redirected to (after authentication) after finishing the web installer. onboarding tool displayed after installer finished. --- installer/onboarding.pl | 64 ++++- .../intranet-tmpl/prog/en/includes/header.inc | 2 + .../prog/en/modules/installer/step3.tt | 4 +- .../intranet-tmpl/prog/en/modules/intranet-main.tt | 2 - .../en/modules/onboarding/.onboardingstep1.tt.swp | Bin 36864 -> 0 bytes .../en/modules/onboarding/.onboardingstep2.tt.swp | Bin 20480 -> 0 bytes .../prog/en/modules/onboarding/onboardingstep1.tt | 76 +++--- .../prog/en/modules/onboarding/onboardingstep2.tt | 301 +++++++++++---------- .../prog/en/modules/onboarding/onboardingstep3.tt | 122 +++++++++ .../prog/en/modules/onboarding/onboardingstep4.tt | 79 ++++++ .../prog/en/modules/onboarding/onboardingstep5.tt | 251 +++++++++++++++++ koha-tmpl/intranet-tmpl/prog/en/modules/summary.tt | 41 +++ summary.pl | 58 ++++ 13 files changed, 791 insertions(+), 209 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep1.tt.swp delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep2.tt.swp create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/summary.tt create mode 100755 summary.pl --- a/installer/onboarding.pl +++ a/installer/onboarding.pl @@ -5,10 +5,9 @@ use warnings; use diagnostics; -use C4::Koha; -#Pragmas for creating library use Modern::Perl; -use CGI qw (-utf8); +use CGI qw ( -utf8 ); +use C4::Koha; use C4::Auth; use C4::Context; use C4::Output; @@ -18,14 +17,14 @@ use Koha::Libraries; use Koha::LibraryCategories; -use POSIX; -use C4::Templates; -use C4::Languages qw(getAllLanguages getTranslatedLanguages); -use C4::Installer; -use Koha; -use installer::install.pl; +#use POSIX; +#use C4::Templates; +#use C4::Languages qw(getAllLanguages getTranslatedLanguages); +#use C4::Installer; +#use Koha; -#Setting variables from install.pl origin +#Setting variables +my $input = new CGI; my $query = new CGI; my $step = $query->param('step'); @@ -59,11 +58,24 @@ my $dbh = DBI->connect( + my $op = $query->param('op'); + $template->param('op'=>$op); + warn $op; + if ( $op && $op eq 'finish' ) { + print $query->redirect("/cgi-bin/koha/mainpage.pl"); + exit; + } + + #Performing each step of the onboarding tool if ( $step && $step == 1 ) { #This is the Initial step of the onboarding tool to create a library + + my $createlibrary = $query->param('createlibrary'); + $template->param('createlibrary'=>$createlibrary); + #store inputted parameters in variables my $branchcode = $input->param('branchcode'); my $categorycode = $input->param('categorycode'); @@ -126,10 +138,28 @@ if ( $step && $step == 1 ) { $op = 'list'; } - if ($op eq 'list'){ - print redirect(-url=>'koha/cgi-bin/koha/onboarding/onboarding.cgi?step=2'); - } +}elsif ( $step && $step == 2 ){ + + my $createpatroncategory = $query->param('createpatroncategory'); + $template->param('createpatroncategory'=>$createpatroncategory); + +}elsif ( $step && $step == 3 ){ + + my $createpatron = $query->param('createpatron'); + $template->param('createpatron'=>$createpatron); + +}elsif ( $step && $step == 4){ + + my $createitemtype = $query->param('createitemtype'); + $template->param('createitemtype'=>$createitemtype); + +}elsif ( $step && $step == 5){ + + my $createcirculationrule = $query->param('createcirculationrule'); + $template->param('createcirculationrule'=>$createcirculationrule); + + } @@ -138,5 +168,13 @@ if ( $step && $step == 1 ) { +output_html_with_http_headers $input, $cookie, $template->output; + + + + + + + --- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc @@ -42,6 +42,8 @@
If this page does not redirect in 5 seconds, click here.
+If this page does not redirect in 5 seconds, click here.
[% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -1,5 +1,3 @@ -[% USE Koha %] -[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %]Library was not successfully created
-