@@ -, +, @@ 1 Create a library 2 Create a ptron category 3 Create Koha administrator patron 4 Create a new item type 5 Create a new circulation rule 6 Set minPasswordLength syspref/Complete 1 Create a library 2 Create a patron category 3 Set minPasswordLength syspref 4 Create Koha administrator patron 5 Create a new item type 6 Create a new circulation rule/Complete value from onboarding made in the onboarding exist in the administration --- installer/onboarding.pl | 49 ++++--- .../prog/en/modules/onboarding/onboardingstep3.tt | 127 ++++-------------- .../prog/en/modules/onboarding/onboardingstep4.tt | 102 +++++++++++--- .../prog/en/modules/onboarding/onboardingstep5.tt | 147 +++++---------------- .../prog/en/modules/onboarding/onboardingstep6.tt | 106 +++++++++++++-- .../prog/en/modules/onboarding/onboardingstep8.tt | 140 ++++++++++++++++++++ 6 files changed, 412 insertions(+), 259 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep8.tt --- a/installer/onboarding.pl +++ a/installer/onboarding.pl @@ -56,6 +56,7 @@ my $schema = Koha::Database->new()->schema(); my @messages; +#Create library if ( $step == 1 ) { if ( $op eq 'add_validate_library' ) { @@ -84,7 +85,10 @@ if ( $step == 1 ) { $step++ if Koha::Libraries->count; } + +#Create patron category if ( $step == 2 ) { + if ( $op eq "add_validate_category" ) { my $searchfield = $input->param('description') // q||; @@ -136,10 +140,29 @@ if ( $step == 2 ) { $step++ if Koha::Patron::Categories->count; } + +#Set minPasswordLength syspref if ( $step == 3 ) { + + if ( $op eq 'set_validate_min_password_length' ) { + my $minPasswordLength = $input->param('pref_minPasswordLength'); + warn $minPasswordLength; + C4::Context->set_preference( 'minPasswordLength', $minPasswordLength ); + unless ($@) { + push @messages, { code => 'success_on_update_minPasswordLength_syspref' }; + $step++; + } + else { + push @messages, { code => 'error_on_update_minPasswordLength_syspref' }; + } + } +} + +#Create Koha administrator +if ( $step == 4 ) { + if ( $op eq 'add_validate_patron' ) { - #Create a patron my $firstpassword = $input->param('password') || ''; my $secondpassword = $input->param('password2') || ''; my $cardnumber = $input->param('cardnumber'); @@ -202,7 +225,10 @@ if ( $step == 3 ) { $step++ if Koha::Patrons->search( { flags => 1 } )->count; } -if ( $step == 4 ) { + +#Create item type +if ( $step == 5 ) { + if ( $op eq 'add_validate_itemtype' ) { my $description = $input->param('description'); my $itemtype_code = $input->param('itemtype'); @@ -226,7 +252,9 @@ if ( $step == 4 ) { $step++ if Koha::ItemTypes->count; } -if ( $step == 5 ) { + +#Create circulation rule +if ( $step == 6 ) { if ( $op eq 'add_validate_circ_rule' ) { @@ -290,21 +318,6 @@ if ( $step == 5 ) { $step++ if Koha::IssuingRules->count; } -if ( $step == 6 ) { - if ( $op eq 'set_validate_min_password_length' ) { - my $minPasswordLength = $input->param('pref_minPasswordLength'); - warn $minPasswordLength; - C4::Context->set_preference( 'minPasswordLength', $minPasswordLength ); - unless ($@) { - push @messages, { code => 'success_on_update_minPasswordLength_syspref' }; - $step++; - } - else { - push @messages, { code => 'error_on_update_minPasswordLength_syspref' }; - } - } -} - my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); $template_params->{libraries} = $libraries; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt @@ -1,8 +1,11 @@ +<<<<<<< HEAD [% USE Koha %] [% USE raw %] [% USE Asset %] +======= +>>>>>>> Bug 18308: Changed ordering of onboarding steps [% INCLUDE 'doc-head-open.inc' %] -Koha › Web installer › Create Koha administrator patron +Koha › Web installer › Set minPasswordLength system preference [% INCLUDE 'installer-doc-head-close.inc' %] @@ -11,106 +14,33 @@

Koha

-

Web installer › Create Koha administrator patron

- [% INCLUDE 'onboarding_messages.inc' %] - -

- Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions. -

-
-
- - -

Administrator identity

-
    -
  1. - - - Required -
  2. -
  3. - - - Required -
  4. -
- -
    -
  1. - - [% IF patrons && patrons > 1 %] - - [% ELSE %] - - [% END %] - Required -
  2. -
  3. - - - - - Required -
  4. -
  5. - - - Required

    - Note: If you installed sample patron categories please select the "Staff" option in the patron categories dropdown box. -
  6. -
- -

Administrator account permissions

-
    -
  1. - - - superlibrarian -
  2. -
- -

Administrator login

-
    -
  1. - - - Required -
  2. -
  3. - - - Required -
  4. -
  5. - - - Required -
  6. -
-

- To create another patron, go to: - Patrons › New patron -

-

- To edit patron permissions, go to: - More › Set permissions -

-
- - -
+

Web installer › Set minPasswordLength system preference

+ + [% INCLUDE 'onboarding_messages.inc' %] + + The minPasswordLength system preference is a setting for the shortest length library staff and patrons can set their passwords to. +
+
+ + +
    +
  1. + + + Required +
  2. +
+

+ To amend the minPasswordLength system preference go to: + Administration › Global system preferences › Patrons +

+
+ +
- + [% MACRO jsinclude BLOCK %] [% INCLUDE 'validator-strings.inc' %] @@ -121,4 +51,3 @@ [% END %] [% INCLUDE 'installer-intranet-bottom.inc' %] - --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt @@ -1,5 +1,6 @@ +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Web installer › Create a new item type +Koha › Web installer › Create Koha administrator patron [% INCLUDE 'installer-doc-head-close.inc' %] @@ -8,39 +9,102 @@

Koha

-

Web installer › Create a new item type

+

Web installer › Create Koha administrator patron

[% INCLUDE 'onboarding_messages.inc' %] - - -

Item types are used to group related items. Examples of item types might be books, CDs, or DVDs.

-

When adding to your institution's catalog you will create an item of a particular item type.

-

Importantl: Item types are what you apply circulation rules to. Circulation rules govern how your institution will lend its items: Checkout length, renewal policy, hold policy, etc. For example a circulation rule applied to the DVD item type may enforce a payment of $1.00 for checking out any DVD.

- -
+

+ Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions. +

+
- + +

Administrator identity

  1. - - + + + Required +
  2. +
  3. + + Required
  4. +
+
  1. - - + + [% IF patrons && patrons > 1 %] + + [% ELSE %] + + [% END %] Required
  2. +
  3. + + + + + Required +
  4. +
  5. + + + Required

    + Note: If you installed sample patron categories please select the "Staff" option in the patron categories dropdown box. +
  6. +
+ +

Administrator account permissions

+
    +
  1. + + + superlibrarian +
-

To create another item type later and for more settings go to: - Administration › Item types +

Administrator login

+
    +
  1. + + + Required +
  2. +
  3. + + + Required +
  4. +
  5. + + + Required +
  6. +
+

+ To create another patron, go to: + Patrons › New patron +

+

+ To edit patron permissions, go to: + More › Set permissions

-
+ +
@@ -50,6 +114,8 @@ [% INCLUDE 'validator-strings.inc' %] [% INCLUDE 'installer-strings.inc' %] + [% PROCESS 'password_check.inc' %] + [% PROCESS 'add_password_check' new_password => 'password' %] [% END %] -[% INCLUDE 'installer-intranet-bottom.inc' %] +[% INCLUDE 'installer-intranet-bottom.inc' %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt @@ -1,11 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %] -Koha › Web installer › - [% IF all_done %] - Complete - [% ELSE %] - Create circulation rule - [% END %] - +Koha › Web installer › Create a new item type [% INCLUDE 'installer-doc-head-close.inc' %] @@ -14,111 +8,40 @@

Koha

- -

Web installer › Create a new circulation rule

- - [% INCLUDE 'onboarding_messages.inc' %] - -
-
- - -
    -
  1. - - - Required -
  2. -
  3. - - - Required -
  4. - -
  5. - - - Required -
  6. -
  7. - - - Required -
  8. - -
  9. - - - Required -
  10. -
  11. - - -
  12. -
  13. - - - Required -
  14. - -
  15. - - - Required -
  16. - -
  17. - - -
  18. -
-

- To create circulation rule, go to: - Administration › Circulation and fine rules -

- -
- +

Web installer › Create a new item type

+ + [% INCLUDE 'onboarding_messages.inc' %] + + + +

Item types are used to group related items. Examples of item types might be books, CDs, or DVDs.

+

When adding to your institution's catalog you will create an item of a particular item type.

+

Importantl: Item types are what you apply circulation rules to. Circulation rules govern how your institution will lend its items: Checkout length, renewal policy, hold policy, etc. For example a circulation rule applied to the DVD item type may enforce a payment of $1.00 for checking out any DVD.

+ + +
+ + +
    +
  1. + + + Required +
  2. + +
  3. + + + Required +
  4. +
+ +

To create another item type later and for more settings go to: + Administration › Item types +

- +
+
@@ -129,4 +52,4 @@ [% END %] -[% INCLUDE 'installer-intranet-bottom.inc' %] +[% INCLUDE 'installer-intranet-bottom.inc' %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt @@ -3,7 +3,7 @@ [% IF all_done %] Complete [% ELSE %] - Set minPasswordLength system preference + Create circulation rule [% END %] [% INCLUDE 'installer-doc-head-close.inc' %] @@ -12,42 +12,124 @@
-
+

Koha

+ [% IF all_done %]

Web installer › Complete

[% INCLUDE 'onboarding_messages.inc' %] -

Congratulations you have finished and are ready to use Koha

+

Congratulations, you have finished and are ready to use Koha

Start using Koha [% ELSE %] -

Web installer › Set minPasswordLength system preference

+

Web installer › Create a new circulation rule

[% INCLUDE 'onboarding_messages.inc' %] - The minPasswordLength system preference is a setting for the shortest length library staff and patrons can set their passwords to. -
+
- +
  1. - - + + + Required +
  2. +
  3. + + Required
  4. + +
  5. + + + Required +
  6. +
  7. + + + Required +
  8. + +
  9. + + + Required +
  10. +
  11. + + +
  12. +
  13. + + + Required +
  14. + +
  15. + + + Required +
  16. + +
  17. + + +

- To amend the minPasswordLength system preference go to: - Administration › Global system preferences › Patrons + To create circulation rule, go to: + Administration › Circulation and fine rules

+
+
[% END %]
-
+
[% MACRO jsinclude BLOCK %] [% INCLUDE 'validator-strings.inc' %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep8.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep8.tt @@ -0,0 +1,140 @@ +[% INCLUDE 'doc-head-open.inc' %] +Koha › Web installer › + [% IF all_done %] + Complete + [% ELSE %] + Create circulation rule + [% END %] + +[% INCLUDE 'installer-doc-head-close.inc' %] + + + +
+
+
+

Koha

+ + [% IF all_done %] +

Web installer › Complete

+ [% INCLUDE 'onboarding_messages.inc' %] +

Congratulations, you have finished and are ready to use Koha

+ Start using Koha + [% ELSE %] + +

Web installer › Create a new circulation rule

+ + [% INCLUDE 'onboarding_messages.inc' %] + +
+
+ + +
    +
  1. + + + Required +
  2. +
  3. + + + Required +
  4. + +
  5. + + + Required +
  6. +
  7. + + + Required +
  8. + +
  9. + + + Required +
  10. +
  11. + + +
  12. +
  13. + + + Required +
  14. + +
  15. + + + Required +
  16. + +
  17. + + +
  18. +
+

+ To create another circulation rule, go to: + Administration › Circulation and fine rules +

+ +
+ + +
+ [% END %] +
+
+
+ +[% MACRO jsinclude BLOCK %] + [% INCLUDE 'validator-strings.inc' %] + [% INCLUDE 'installer-strings.inc' %] + +[% END %] + +[% INCLUDE 'installer-intranet-bottom.inc' %] --