@@ -, +, @@ 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' %] -
- Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions. -
- +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.
- -