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

(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 268-274 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
268
('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'),
268
('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'),
269
('MembershipExpiryDaysNotice','',NULL,'Send an account expiration notice that a patron\'s card is about to expire after','Integer'),
269
('MembershipExpiryDaysNotice','',NULL,'Send an account expiration notice that a patron\'s card is about to expire after','Integer'),
270
('MergeReportFields','',NULL,'Displayed fields for deleted MARC records after merge','Free'),
270
('MergeReportFields','',NULL,'Displayed fields for deleted MARC records after merge','Free'),
271
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
271
('minPasswordLength','8',NULL,'Specify the minimum length of a patron/staff password','free'),
272
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
272
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
273
('NewsAuthorDisplay','none','none|opac|staff|both','Display the author name for news items.','Choice'),
273
('NewsAuthorDisplay','none','none|opac|staff|both','Display the author name for news items.','Choice'),
274
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
274
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
(-)a/installer/onboarding.pl (-2 / +20 lines)
Lines 265-270 if ( $step == 5 ) { Link Here
265
    $step++ if Koha::IssuingRules->count;
265
    $step++ if Koha::IssuingRules->count;
266
}
266
}
267
267
268
if ( $step == 6 ) {
269
    if ( $op eq 'set_validate_min_password_length' ) {
270
        my $minPasswordLength   = $input->param('pref_minPasswordLength');
271
        warn $minPasswordLength;
272
        C4::Context->set_preference( 'minPasswordLength', $minPasswordLength );
273
        unless ($@) {
274
            push @messages, { code => 'success_on_update_minPasswordLength_syspref' };
275
            $step++;
276
        }
277
        else {
278
            push @messages, { code => 'error_on_update_minPasswordLength_syspref' };
279
        }
280
    }
281
}
282
268
my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, );
283
my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, );
269
$template_params->{libraries}   = $libraries;
284
$template_params->{libraries}   = $libraries;
270
$template_params->{group_types} = [
285
$template_params->{group_types} = [
Lines 284-292 $template_params->{group_types} = [ Link Here
284
    },
299
    },
285
];
300
];
286
301
287
if ( $step > 5 ) {
302
my $minPasswordLength = C4::Context->preference('minPasswordLength');
303
$template_params->{minPasswordLength} = $minPasswordLength;
304
305
if ( $step > 6 ) {
288
    $template_params->{all_done} = 1;    # If step 5 is complete, we are done!
306
    $template_params->{all_done} = 1;    # If step 5 is complete, we are done!
289
    $step = 5;
307
    $step = 6;
290
}
308
}
291
309
292
#Getting the appropriate template to display to the user
310
#Getting the appropriate template to display to the user
(-)a/koha-tmpl/intranet-tmpl/prog/css/installer.css (+4 lines)
Lines 241-243 span.breadcrumbs { Link Here
241
.deselectall.optional {
241
.deselectall.optional {
242
    display: none;
242
    display: none;
243
}
243
}
244
245
#passwordlengthhint {
246
    color:red;
247
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/onboarding_messages.inc (+4 lines)
Lines 26-31 Link Here
26
            <div class="alert alert-success">Circulation rule created!</div>
26
            <div class="alert alert-success">Circulation rule created!</div>
27
        [% CASE 'error_on_insert_circ_rule' %]
27
        [% CASE 'error_on_insert_circ_rule' %]
28
            <div class="alert alert-danger">Circulation rule not created!</div>
28
            <div class="alert alert-danger">Circulation rule not created!</div>
29
        [% CASE 'success_on_update_minPasswordLength_syspref' %]
30
            <div class="alert alert-success">Minimum password length set!</div>
31
        [% CASE 'error_on_update_minPasswordLength_syspref' %]
32
            <div class="alert alert-danger">Minimum password length not set!</div>
29
        [% CASE %][% message %]
33
        [% CASE %][% message %]
30
    [% END %]
34
    [% END %]
31
[% END %]
35
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt (-11 lines)
Lines 18-32 Link Here
18
            <div id="onboarding-step5" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
18
            <div id="onboarding-step5" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
19
                <h1 id="logo"><a href="#">Koha</a></h1>
19
                <h1 id="logo"><a href="#">Koha</a></h1>
20
20
21
                [% IF all_done %]
22
23
                    <h2>Web installer &rsaquo; Complete</h2>
24
                    [% INCLUDE 'onboarding_messages.inc' %]
25
                    <h3>Congratulations you have finished and are ready to use Koha</h3>
26
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
27
28
                [% ELSE %]
29
30
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
21
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
31
22
32
                    [% INCLUDE 'onboarding_messages.inc' %]
23
                    [% INCLUDE 'onboarding_messages.inc' %]
Lines 131-137 Link Here
131
122
132
                        <input type="submit" class="btn btn-primary" value="Submit" />
123
                        <input type="submit" class="btn btn-primary" value="Submit" />
133
                    </form>
124
                    </form>
134
                [% END %]
135
            </div> <!-- / #onboarding-step5 -->
125
            </div> <!-- / #onboarding-step5 -->
136
        </div> <!-- / .row -->
126
        </div> <!-- / .row -->
137
127
138
- 

Return to bug 18308