From 2ec76b3f4c1b7c73897713c117b031c6ced1fcee Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Fri, 9 Dec 2016 00:52:55 +0000 Subject: [PATCH] Bug 17855 - As with the last patch the updated web installers step 3 is showing bulletpoints for default data values which stops the user being able to unselect data neccisary to use Koha. Both the optional and default data in installer step 3 are being successfully inserted into the database. Unlike the previous patch the first three screens of the onboarding tool are not working successfully, but are fixed in later patches. Bug 17855 - All web installer data inserting successfully, along with initial 3 screens of onboarding tool which is not yet avaliable from web installer. In web installer step 3 MARC21 flavour selected by default. All web installer data inserting successfully Working insertion of default and optional options Correctly selected default marc flavour of marc21 Initial 3 HTML screens of the onboarding tool and the perl onboarding.pl script Removed test text Non working first 3 screens and perl script of onboarding tool --- .../en/{optional => default}/patron_categories.sql | 0 .../en/{optional => default}/patron_categories.txt | 0 installer/onboarding.pl | 142 ++++++++++++++ .../prog/en/modules/installer/step3.tt | 102 +++++----- .../en/modules/onboarding/.onboardingstep1.tt.swp | Bin 0 -> 36864 bytes .../en/modules/onboarding/.onboardingstep2.tt.swp | Bin 0 -> 20480 bytes .../prog/en/modules/onboarding/onboardingstep1.tt | 109 +++++++++++ .../prog/en/modules/onboarding/onboardingstep2.tt | 213 +++++++++++++++++++++ 8 files changed, 518 insertions(+), 48 deletions(-) rename installer/data/mysql/en/{optional => default}/patron_categories.sql (100%) rename installer/data/mysql/en/{optional => default}/patron_categories.txt (100%) create mode 100755 installer/onboarding.pl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep1.tt.swp create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep2.tt.swp create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt diff --git a/installer/data/mysql/en/optional/patron_categories.sql b/installer/data/mysql/en/default/patron_categories.sql similarity index 100% rename from installer/data/mysql/en/optional/patron_categories.sql rename to installer/data/mysql/en/default/patron_categories.sql diff --git a/installer/data/mysql/en/optional/patron_categories.txt b/installer/data/mysql/en/default/patron_categories.txt similarity index 100% rename from installer/data/mysql/en/optional/patron_categories.txt rename to installer/data/mysql/en/default/patron_categories.txt diff --git a/installer/onboarding.pl b/installer/onboarding.pl new file mode 100755 index 0000000..8da3f6e --- /dev/null +++ b/installer/onboarding.pl @@ -0,0 +1,142 @@ +#!/usr/bin/perl +#Recommended pragmas +use strict; +use warnings; +use diagnostics; + + +use C4::Koha; +#Pragmas for creating library +use Modern::Perl; +use CGI qw (-utf8); +use C4::Auth; +use C4::Context; +use C4::Output; +use Koha::Patrons; +use Koha::Items; +use Koha::Libraries; +use Koha::LibraryCategories; + + +use POSIX; +use C4::Templates; +use C4::Languages qw(getAllLanguages getTranslatedLanguages); +use C4::Installer; +use Koha; +use installer::install.pl; + +#Setting variables from install.pl origin +my $query = new CGI; +my $step = $query->param('step'); + +my ( $template, $loggedinuser, $cookie) = get_template_and_user( + { + template_name => "/onboarding/onboardingstep" . ( $step ? $step : 1 ) . ".tt", + query => $query, + type => "intranet", + authnotrequired => 0, + debug => 1, + } +); + +#Check database connection +my %info; +$info{'dbname'} = C4::Context->config("database"); +$info{'dbms'} = +( C4::Context->config("db_scheme") + ? C4::Context->config("db_scheme") + : "mysql" ); + +$info{'hostname'} = C4::Context->config("hostname"); +$info{'port'} = C4::Context->config("port"); +$info{'user'} = C4::Context->config("user"); +$info{'password'} = C4::Context->config("pass"); +my $dbh = DBI->connect( + "DBI:$info{dbms}:dbname=$info{dbname};host=$info{hostname}" + . ( $info{port} ? ";port=$info{port}" : "" ), + $info{'user'}, $info{'password'} +); + + + + +#Performing each step of the onboarding tool +if ( $step && $step == 1 ) { +#This is the Initial step of the onboarding tool to create a library + +#store inputted parameters in variables + my $branchcode = $input->param('branchcode'); + my $categorycode = $input->param('categorycode'); + my $op = $input->param('op') || 'list'; + my @messages; + my $library; + +#Find branchcode if it exists + if ( $op eq 'add_form' ) { + if ($branchcode) { + $library = Koha::Libraries->find($branchcode); + } + + $template->param( + library => $library, + categories => [ Koha::LibraryCategories->search( {}, { order_by => [ 'categorytype', 'categoryname' ] } ) ], + $library ? ( selected_categorycodes => [ map { $_->categorycode } $library->get_categories ] ) : (), + ); + } elsif ( $op eq 'add_validate' ) { + my @fields = qw( + branchname + ); + + my $is_a_modif = $input->param('is_a_modif'); + + my @categories; + for my $category ( Koha::LibraryCategories->search ) { + push @categories, $category + if $input->param( "selected_categorycode_" . $category->categorycode ); + } + if ($is_a_modif) { + my $library = Koha::Libraries->find($branchcode); + for my $field (@fields) { + $library->$field( scalar $input->param($field) ); + } + $library->update_categories( \@categories ); + + eval { $library->store; }; + + if ($@) { + push @messages, { type => 'alert', code => 'error_on_update' }; + } else { + push @messages, { type => 'message', code => 'success_on_update' }; + } + } else { + $branchcode =~ s|\s||g; + my $library = Koha::Library->new( + { branchcode => $branchcode, + ( map { $_ => scalar $input->param($_) || undef } @fields ) + } + ); + eval { $library->store; }; + $library->add_to_categories( \@categories ); + if ($@) { + push @messages, { type => 'alert', code => 'error_on_insert' }; + } else { + push @messages, { type => 'message', code => 'success_on_insert' }; + } + } + $op = 'list'; + } + + if ($op eq 'list'){ + print redirect(-url=>'koha/cgi-bin/koha/onboarding/onboarding.cgi?step=2'); + } + +} + + + + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt index 47303ce..a601443 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt @@ -1,5 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %]Koha › Web installer › Step 3 -[% IF ( finish ) %][% END %] +[% IF ( finish ) %][% END %] [% INCLUDE 'installer-doc-head-close.inc' %]

Koha Koha web installer › Step 3

@@ -64,7 +64,7 @@ [% END %] [% IF ( finish ) %]

Congratulations, installation complete

-

If this page does not redirect in 5 seconds, click here.

+

If this page does not redirect in 5 seconds, click here.

[% END %] [% IF ( choosemarc ) %]

Select your MARC flavor

@@ -75,10 +75,10 @@

[% FOREACH flavourloo IN flavourloop %]

- [% IF ( flavourloo.checked ) %] - [% flavourloo.label %]
+ [% IF ( flavourloo.label == "Unimarc") %] + [% flavourloo.label %]
[% ELSE %] - [% flavourloo.label %]
+ [% flavourloo.label %]
[% END %]
[% END %] @@ -100,49 +100,49 @@ [% IF ( frameworksloop ) %]

MARC frameworks: [% marcflavour %]

[% IF ( en_marc_frameworks ) %] -

No MARC frameworks are available for your language. Defaulting to the frameworks supplied for English (en)

+

No MARC frameworks are available for your language. Defaulting to the frameworks supplied for English (en)

[% END %] [% FOREACH frameworksloo IN frameworksloop %] -
-

[% frameworksloo.label %]

- [% FOREACH framework IN frameworksloo.frameworks %] - - - [% ELSE %]
- [% IF (frameworksloo.label == "Default" ) %] - +
+

[% frameworksloo.label %]

+ [% FOREACH framework IN frameworksloo.frameworks %] + + + + [% ELSE %] - - [% END %] - - - [% ELSE %] - - [% END %] - + + [% END %] +
+ [% IF (frameworksloo.label == "Default" ) %] + + [% ELSE %] + + [% END %] + + [% IF (frameworksloo.label == "Default" ) %] +
    + +
+
- [% IF (frameworksloo.label == "Default" ) %] -
    - -
-
- -
+ +
- [% END %] -
- [% END %] + [% END %] + + [% END %]

Other data

- [% END %] - [% IF ( en_sample_data ) %] -

No sample data and settings ar e available for your language. - 132 Defaulting to the samples supplied for English (en)

- [% END %] + [% END %] + [% IF ( en_sample_data ) %] +

No sample data and settings are available for your language. + Defaulting to the samples supplied for English (en)

+ [% END %] [% FOREACH levelloo IN levelloop %]

[% levelloo.label %]

@@ -151,19 +151,24 @@
[% IF (levelloo.label == "Default" ) %] - +<<<<<<< HEAD + +======= +
    +
+>>>>>>> 9e47b85... Removed test text [% ELSE %] - + [% END %]
[% IF (levelloo.label == "Default") %] -
    +
      -
    +
@@ -201,7 +206,8 @@
-
+ +

[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep1.tt.swp b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep1.tt.swp new file mode 100644 index 0000000000000000000000000000000000000000..f2938d7b8f1bb34842e4e0f3decf84858ce5e1fb GIT binary patch literal 36864 zcmeHQeUKbSbsuBLHkQB2hJ+#&+!}xA4r_OHl7$^eSDZM7DT4h+Vmm+?3`K!MlBxt!5k(w3MY$>=2>}8DR~)B`1VU{5 z0r|b2p4pz+nc2NNDZ*%`>UTRI-EUsM?&{~zh zfwQ#-O-)-eTCQRH^d$E<iN7oRrW_Sn9o-6w2;7QB7qCEO&g~+P+>3E*Ro45 z*>{?hyC`NMfkFa>1PTch5-224NT85FA%Q{yBmuvBmiAlteT@{yC|3m%%Cl_hjkAZ tS=LJOY1ao~f%QD6a>19k&j zfi1vAz+-1?+C9Jy-~|{qz5#pzXabMIkkJNi07}3=ovCS81OE;K$`in+fct$lXcd-d8csj|h zJRojUt{IV%8B9K89`bUVZKS+m=AE-U!aRb3YGu)JI{|HRL;k^ilUq%X`@_#DN!7Hw zJ)imgE}z!DUcF=bI$JWVUUVtB&@00Psv&LGunfa|o!DEL(NK&l?VCQoo&Bkp~m!(MdCSPGdi2r2lrA0E~O!Us+Ljb7DKhi8In~I(W%XX z?=6t8NS`f%YMz9V`;^PS;WT6N53U3GPeJ}2%>$= zz}rw&>0uo7@iDvD1yjVlP1+G`)voGTi5aMDF%JZv|een%u?O7h1*%hXm)TK zd}!P&cP+d?8+<04e>wP8D(FMauG$A~zK))pmeYlz(5sRFjnP&5bHgn?j*&fRS|0Vp za+GIX!*?BwM)VZK`L?C^+7p#FL_OA;%^_F!pTjN`;c`< zJYG)m=`%bwxmBaz*nyrqnB|nqTI|8#A~oOOu{b-XC2kB~y4>%%HuK#cPvIkx{utwy z$Jx=b$u1g5KbkHxEbjUf3lsW$n}<^fCPpi6`y8_wT-d&0+8#UHHhqo>O@p&W+i=k} za@Q-fn=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S)`?xFGp(x4L3#HpZU_P^hP*s*c zt&_yyqM8=h52A(V0mASh#vjs)5W!`~ZIy^dxn(Y*Z4TD{71LTngxG`!Ss2F;?hrxH zK5`Tg9tNV`!gzgf67mfT0Xs`k-d;3ojm|JO>z zm16z3fajsx|0!@6uo-v`di{HVeZV=u$Dz~j2Py#V*S`zc44eo28}$0ypvPYeOag0w zFF;rSFmM341~?nIAA0)((9J0xU1PTcxB|ziexQ99=Pek%O zvGGqMhVqw)qh#_Ve>R^?P1muB#%U24HIzb5U1F*;9LIJg0aC+v1uOm0RnAGeN|4A< zl_64>6E&4cL~46{y)!`_UPH?Nby->TR6%lB>Cuv}imu0KxkWHl5k~fu2U88|cC3i1 zBI#iE9MyK-Ny4K@29nfQ5L%VqlAyM-(3pbV1SJ`*EPdnNjv)T(nEM8aJcN|LBSi2p z_>mv`o3ZZTfMVDJeRVRZRF=$P)W literal 0 HcmV?d00001 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep2.tt.swp b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/.onboardingstep2.tt.swp new file mode 100644 index 0000000000000000000000000000000000000000..6bf5a5aab8a177ae652336fe547df4e59adb405f GIT binary patch literal 20480 zcmeHPS&SS<8SW6rkduV_vD_wENAb*fcWozG&kU?*$MKrIyhmaum~l^c?M!=nx|;5u z-JM_q36X$DTO<$;B@ZY^{AKTN@bL`?> zklYh}+ecMb{q_BI{q_HG^}vIZ)8yXlK?%RxCF#tcW=>sncS~0qlC-MSY{hhWO3&X4 zt1B8^t+Mr=*`yEp1?Kn%s=-Vu?lNw}GIF}$zKI&g*W9hs6=VSi$Vl3T%OfM+|DFZ13 zDFZ13DFZ13DFZ13DFZ13DFZ13DFgol1{6(_?m)c?H~8WI5A6T1y-|{$11VIKF5tOaC20Z}175uaX}~kUCxNE`7uXB@>t;!M8Tbb9 zG_Vew0PX_*c9SGs08Rim0l&CWl0FMu08Rm8z!30O;4Q%OZ$SM(0r>mt@j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vxrs2mlI&Wc&RO%rRzmR*XU}UICa)E@Riu|U@ynN zZ?UFLoED-y8rU&~J2GZx`{|JPBjnkM_-3ro!c|!GnI8NwLI~L&EPd78f{A_vUz>wV Sidn61SXgA}#?HOEGxQ%)n?fuA literal 0 HcmV?d00001 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt new file mode 100644 index 0000000..936272c --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt @@ -0,0 +1,109 @@ + + + +[% INCLUDE 'doc-head-open.inc' %] + + +Welcome › to › Koha + + + + + + +[% IF ( finish ) %][% END %] +[% INCLUDE 'installer-doc-head-close.inc' %] +
+

Welcome to Koha

+

Koha

+
+ + Set up my koha +
+ + +[% IF (setupmyKoha) %] +

New Library

+ +
+ + + +
    +
  1. + + + Required +
  2. +
  3. + + + Required +
  4. +
+
+
+ +
+ +[% END %] + + +[% IF (createlibrary) %] + [% IF (library) %] + +
+ + +

New Library

+ +
+

Success: Library created!


+

To add another library and for more settings,
+ go to Tools->Administration->Libraries and Groups +

+ Next up: + +
+ [% ELSE %] +
+

Library was not successfully created

+
+ [% END %] + [% END %] + + + + + + + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt new file mode 100644 index 0000000..33189b7 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt @@ -0,0 +1,213 @@ + +[% USE Koha %] +[% USE KohaDates %] +[% USE Price %] +[% INCLUDE 'doc-head-open.inc' %] +[% INCLUDE 'doc-head-close.inc' %] +[% INCLUDE 'calendar.inc' %] +[% INCLUDE 'datatables.inc' %] + + + + Add a patron category + + + + + + + + + [% IF (addpatroncategory) %] + ........ +
+
+
+
+ [% FOR m IN messages %] +
+ [% SWITCH m.code %] + [% CASE 'error_on_insert' %] + An error occurred when inserting this patron category. The patron category might already exist. + [% CASE 'success_on_insert' %] + Patron category inserted successfully. + [% CASE 'already_exists' %] + This patron category already exists. + [% CASE %] + [% m.code %] + [% END %] +
+ [% END %] + +
+ + + + +

New Patron Category

+
+
+
    +
  1. + + + Required +
  2. + +
  3. + + + Required +
  4. + +
  5. + + +
  6. + +
  7. + + + Required +
  8. + +
  9. + + + Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob batch_anonymise.pl which should be set up by your system administrator. +
  10. + +
  11. + Enrollment period: +
    + Choose one +
      +
    1. + + months +
    2. +
    3. + + +
    4. +
    +
    +
  12. + +
    + +
    + + [% END %] + + [% IF (addpatroncategory) %] + [% IF (categorycode) %] +
    ... + +

    New patron category

    +
    . +

    Success: Patron category created!

    +

    To add another patron category and for more settings
    + go to More->Administration->Patrons & Circulation->Patron Categories

    +
    + Next up: + + + [% ELSE %] +

    Patron category was not successfully created

    + [% END %] + [% END %] + + + + + + + + + + + + + + + + + + + + -- 2.1.4