|
Lines 129-138
$template->param(
Link Here
|
| 129 |
my $categories = Koha::Patron::Categories->search(); |
129 |
my $categories = Koha::Patron::Categories->search(); |
| 130 |
$template->param( 'categories' => $categories, ); |
130 |
$template->param( 'categories' => $categories, ); |
| 131 |
|
131 |
|
| 132 |
#Check if the $step variable equals 1 i.e. the user has clicked to create a library in the create library screen 1 |
132 |
#Select all the itemtype records in the itemtypes database table and give them to the template |
| 133 |
my $itemtypes = Koha::ItemTypes->search(); |
133 |
my $itemtypes = Koha::ItemTypes->search(); |
| 134 |
$template->param( 'itemtypes' => $itemtypes, ); |
134 |
$template->param( 'itemtypes' => $itemtypes, ); |
| 135 |
|
135 |
|
|
|
136 |
#Select all the ztarget records in the z3950server table and give them to the template |
| 137 |
my $existingztargets = $schema->Resultset('Z3950server')->count; |
| 138 |
$template->param(existingztargets => $existingztargets); |
| 139 |
|
| 140 |
|
| 136 |
if ( $step && $step == 1 ) { |
141 |
if ( $step && $step == 1 ) { |
| 137 |
#store inputted parameters in variables |
142 |
#store inputted parameters in variables |
| 138 |
my $branchcode = $input->param('branchcode'); |
143 |
my $branchcode = $input->param('branchcode'); |
|
Lines 684-700
elsif ( $step && $step == 5 ) {
Link Here
|
| 684 |
} |
689 |
} |
| 685 |
} |
690 |
} |
| 686 |
elsif ( $step && $step == 6 ){ |
691 |
elsif ( $step && $step == 6 ){ |
| 687 |
# my ( $template, $loggedinuser, $cookie ) = |
692 |
my ( $template, $loggedinuser, $cookie ) = |
| 688 |
# C4::InstallAuth::get_template_and_user( |
693 |
C4::InstallAuth::get_template_and_user( |
| 689 |
# { |
694 |
{ |
| 690 |
# template_name => "/onboarding/onboardingstep6.tt", |
695 |
template_name => "/onboarding/onboardingstep6.tt", |
| 691 |
# query => $input, |
696 |
query => $input, |
| 692 |
# type => "intranet", |
697 |
type => "intranet", |
| 693 |
# authnotrequired => 0, |
698 |
authnotrequired => 0, |
| 694 |
# flagsrequired => { parameters => 'manage_circ_rules' }, |
699 |
flagsrequired => { parameters => 'manage_circ_rules' }, |
| 695 |
# debug => 1, |
700 |
debug => 1, |
| 696 |
# } |
701 |
} |
| 697 |
# ); |
702 |
); |
|
|
703 |
|
| 704 |
my $existingztargets = $schema->Resultset('Z3950server')->count; |
| 705 |
$template->param(existingztargets => $existingztargets); |
| 706 |
|
| 698 |
my $service = $input->param('service'); |
707 |
my $service = $input->param('service'); |
| 699 |
$template->param( service => $service ); |
708 |
$template->param( service => $service ); |
| 700 |
} |
709 |
} |