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

(-)a/installer/onboarding.pl (-12 / +21 lines)
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
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt (-4 / +5 lines)
Lines 11-17 Link Here
11
    <form name="showservice" method="post" action="onboarding.pl">
11
    <form name="showservice" method="post" action="onboarding.pl">
12
        <input type="hidden" name="op" value="learnservice"/>
12
        <input type="hidden" name="op" value="learnservice"/>
13
        <input type="hidden" name="step" value="6"/>
13
        <input type="hidden" name="step" value="6"/>
14
        <h1 align="left"> What service are you using?</h1>
14
        <h1 align="left"> Are you using SIP or LDAP?</h1>
15
        <div>
15
        <div>
16
            <input type="radio" name="service" value="LDAP"> LDAP <br>
16
            <input type="radio" name="service" value="LDAP"> LDAP <br>
17
            <input type="radio" name="service" value="SIP"> SIP  <br>
17
            <input type="radio" name="service" value="SIP"> SIP  <br>
Lines 39-49 Link Here
39
39
40
[% END %]
40
[% END %]
41
41
42
<h1> Configure z-targets</h1>
42
43
[% IF existingztargets < 0 %]
44
<h1> Configure any z-targets you know you might want </h1>
43
z-targets are simply the servers you will query when looking for a sepcific MARC record (bibliographic record). Often these are set to the z39.50 servers run by the Library of Congress. 
45
z-targets are simply the servers you will query when looking for a sepcific MARC record (bibliographic record). Often these are set to the z39.50 servers run by the Library of Congress. 
44
Click here:<br>
46
Click here:<br>
45
<input type="submit" value="finish"> Visit the z-target configuration page</input
47
<input type="submit" value="finish"> Visit the z-target configuration page</input
46
48
[% END %]
47
49
48
50
49
51
50
- 

Return to bug 17956