Bugzilla – Attachment 61986 Details for
Bug 17855
New onboarding tool feature to guide users through setting up Koha, and minor web installer UI improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17855 - Reverted back to original step 3 in the web installer so there is no basic and advanced setup mode and consequently no need for SQL files to be moved to a 'default' directory for all languages.
Bug-17855---Reverted-back-to-original-step-3-in-th.patch (text/plain), 12.81 KB, created by
Marc Véron
on 2017-04-08 12:54:02 UTC
(
hide
)
Description:
Bug 17855 - Reverted back to original step 3 in the web installer so there is no basic and advanced setup mode and consequently no need for SQL files to be moved to a 'default' directory for all languages.
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-04-08 12:54:02 UTC
Size:
12.81 KB
patch
obsolete
>From 2f7f522f4804600f9269aadb64793518a0412566 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Sat, 18 Mar 2017 18:19:17 +0000 >Subject: [PATCH] Bug 17855 - Reverted back to original step 3 in the web > installer so there is no basic and advanced setup mode and consequently no > need for SQL files to be moved to a 'default' directory for all languages. >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Onboarding tool and the rest of the web installer still exists in this >commit > >How I tested in my VM (Current master): >- Dropped database >- Recreated database >- Went through installer >- Language en, Marc21 >- Installed mandatory data only >- Went through Onboarding tool >- After finishing, logged in as superlibrarian > that was created by onboarding tool >Everything worked fine. > >Signed-off-by: Marc Véron <veron@veron.ch> >--- > installer/install.pl | 17 +- > .../prog/en/modules/installer/step3.tt | 222 ++++++++------------- > 2 files changed, 91 insertions(+), 148 deletions(-) > >diff --git a/installer/install.pl b/installer/install.pl >index 83eadac..ac20877 100755 >--- a/installer/install.pl >+++ b/installer/install.pl >@@ -296,9 +296,6 @@ elsif ( $step && $step == 3 ) { > $template->param( "levelloop" => $levellist ); > $template->param( "$op" => 1 ); > >- my $setup = $query->param('setup'); >- $template->param( "setup" => $setup ); >- > } > elsif ( $op && $op eq 'choosemarc' ) { > # >@@ -343,16 +340,12 @@ elsif ( $step && $step == 3 ) { > my $marcflavour = C4::Context->preference("marcflavour"); > my @flavourlist; > foreach my $marc (@listdir) { >- my %cell = ( >- "label" => ucfirst($marc), >- "code" => uc($marc), >- "checked" => defined($marcflavour) >- ? uc($marc) eq $marcflavour >- : 0 >- ); >- >+ my %cell=( >+ "label"=> ucfirst($marc), >+ "code"=>uc($marc), >+ "checked"=> defined($marcflavour) ? uc($marc) eq $marcflavour : 0); > # $cell{"description"}= do { local $/ = undef; open INPUT "<$dir/$marc.txt"||"";<INPUT> }; >- push @flavourlist, \%cell; >+ push @flavourlist, \%cell; > } > $template->param( "flavourloop" => \@flavourlist ); > $template->param( "$op" => 1 ); >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 bb2111b..5d205df 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >@@ -71,148 +71,98 @@ function Hide(link) > > > [% IF ( choosemarc ) %] >- <h2 align="center">Choose your setup</h2> >- <p>Basic setup selects recommended settings by default.</p> >- <form name="frameworkselection" method="post" action="install.pl"> >- <input type="hidden" name="step" value="3" /> >- <input type="hidden" name="op" value="selectframeworks"/> >- >- <div> >- <input type="radio" name="setup" value="Basic" checked="checked">Basic<br/> >- <input type="radio" name="setup" value="Advanced"/>Advanced<br/> >- </div> >- >- <h2 align="center">Select your MARC flavor</h2> >- <p>MARC stands for Machine Readable Cataloging, containing information about a bibliographic record. MARC21 is more commonly used globally, whereas UNIMARC tends to be used in Europe. </p> >- >- [% FOREACH flavourloo IN flavourloop %] >- <div> >- [% IF ( flavourloo.label == "Unimarc") %] >- <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %]<br/> >- [% ELSE %] >- <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %] <br/> >- [% END %] >- </div> >- [% END %] >- >- <p>Click 'Next' to continue <input value="Next >>" type="submit" /></p> >- >- </form> >- >+ <h2 align="center">Select your MARC flavor</h2> >+ <form name="frameworkselection" method="post" action="install.pl"> >+ <input type="hidden" name="step" value="3" /> >+ <input type="hidden" name="op" value="selectframeworks" /> >+ <p> >+ [% FOREACH flavourloo IN flavourloop %] >+ <div> >+ [% IF ( flavourloo.checked ) %] >+ <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/> >+ [% ELSE %] >+ <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/> >+ [% END %] >+ </div> >+ [% END %] >+ </p> >+ <p> Click 'Next' to continue <input value="Next >>" type="submit" /></p> >+ </form> > [% END %] > > [% IF ( selectframeworks ) %] >- <h2 align= "center"> [% setup %] setup</h2> >- <h2 align="center">Selecting Default Settings</h2> >+<h2 align="center">Selecting Default Settings</h2> >+ <script type="text/javascript"> >+ var linklabel = _("Select all sample data"); >+ document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>'); >+ </script> >+ <form name="frameworkselection" method="post" action="install.pl"> >+ <input type="hidden" name="step" value="3" /> >+ <input type="hidden" name="op" value="addframeworks" /> > >- [% IF setup == "Advanced" %] >- <script type="text/javascript"> >- var linklabel = _("Select all options"); >- document.write('<p><a href="#" onclick="return selectAllFrameworks();"><button>'+linklabel+'</button></a></p>'); >- </script> >- [% END %] >- <form name="frameworkselection" method="post" action="install.pl"> >- <input type="hidden" name="step" value="3" /> >- <input type="hidden" name="op" value="addframeworks" /> > [% IF ( frameworksloop ) %] >- <h2>MARC frameworks: [% marcflavour %]</h2> >- [% IF ( en_marc_frameworks ) %] >- <h4><span class="error">No MARC frameworks are available for your language. >- Defaulting to the frameworks supplied for English (en)<span></h4> >- [% END %] >- [% FOREACH frameworksloo IN frameworksloop %] >- <div> >- <h3>[% frameworksloo.label %]</h3> >- [% FOREACH framework IN frameworksloo.frameworks %] >- <table style="border:1px;vertical-align:top;"> >- <tr> >- <td style = "border:1px; vertical-align:top;"> >- [% IF (frameworksloo.label == "Default") && (setup=="Basic") %] >- <input type="hidden" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" /> >- [% ELSE %] >- <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" /> >- [% END %] >- </td> >- <td> >- [% IF (frameworksloo.label == "Default") && (setup=="Basic") %] >- <ul> >- <li> >- <label for="[% framework.fwkname %]"> >- [% framework.fwkdescription %] >- <em>([% framework.fwkname %])</em> >- </label> >- </li> >- </ul> >- </td> >- [% ELSE %] >- <td> >- <label for= "[% framework.fwkname %]"> >- [% framework.fwkdescription %] >- <em>([% framework.fwkname %])</em> >- </label> >- </td> >- [% END %] >- </tr> >- </table> >- [% END %] >- </div> >- [% END %] >- <h2>Other data</h2> >- [% END %] >- [% IF ( en_sample_data ) %] >- <h4><span class="error">No sample data and settings are available for your language. >- Defaulting to the samples supplied for English (en)<span></h4> >+ <h2>MARC frameworks: [% marcflavour %]</h2> >+ [% IF ( en_marc_frameworks ) %] >+ <h4><span class="error">No MARC frameworks are available for your language. >+ Defaulting to the frameworks supplied for English (en)<span></h4> > [% END %] >- [% FOREACH levelloo IN levelloop %] >- <div> >- <h3>[% levelloo.label %]</h3> >- >- [% IF (setup == "Basic" && levelloo.label == "Optional") %] >- <script type="text/javascript"> >- var linklabel = _("Select all options"); >- document.write('<p><a href="#" onclick="return selectAllFrameworks();"><button>'+linklabel+'</button></a></p>'); >- </script> >- [% END %] >- >- [% FOREACH framework IN levelloo.frameworks %] >- <table style="border:1px;vertical-align:top;"> >- <tr> >- <td style="vertical-align:top;"> >- [% IF (levelloo.label == "Default" ) && (setup=="Basic")%] >- <input type="hidden" name="framework" value="[% framework.fwkfile %]" id="[%framework.fwkname %]" /> >- [% ELSE %] >- <input type="checkbox" name="framework" value="[%framework.fwkfile %]" id="[%framework.fwkname%]"/> >- [% END %] >- </td> >- <td> >- [% IF (levelloo.label == "Default") && (setup=="Basic")%] >- <ul> >- <li> >- <label for="[% framework.fwkname %]"> >- [% framework.fwkdescription %] >- <em>([% framework.fwkname %])</em> >- </label> >- </li> >- </ul> >- </td> >- [% ELSE %] >- <td> >- <label for= "[% framework.fwkname %]"> >- [% framework.fwkdescription %] >- <em>([% framework.fwkname %])</em> >- </label> >- </td> >- [% END %] >- </tr> >- </table> >- [% END %] >- </div> >- [% END %] >- <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete, >- please be patient.</p> >- <p><input type="submit" value="Import >>" /> >- </p> >- </form> >+ [% FOREACH frameworksloo IN frameworksloop %] >+ <div> >+ <h3>[% frameworksloo.label %]</h3> >+ [% FOREACH framework IN frameworksloo.frameworks %] >+ <table style="border:1px;vertical-align:top;"> >+ <tr> >+ <td style="vertical-align:top;"> >+ [% IF ( framework.checked ) %] >+ <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" /> >+ [% ELSE %] >+ <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" /> >+ [% END %] >+ </td> >+ <td> >+ <label for="[% framework.fwkname %]"> >+ [% framework.fwkdescription %] >+ <em>([% framework.fwkname %])</em> >+ </label> >+ </td> >+ </table> >+ [% END %] >+ </div> >+ [% END %] >+ <h2>Other data</h2> >+ [% END %] >+ [% IF ( en_sample_data ) %] >+ <h4><span class="error">No sample data and settings are available for your language. >+ Defaulting to the samples supplied for English (en)<span></h4> >+ [% END %] >+ [% FOREACH levelloo IN levelloop %] >+ <div> >+ <h3>[% levelloo.label %]</h3> >+ [% FOREACH framework IN levelloo.frameworks %] >+ <table style="border:1px;vertical-align:top;"> >+ <tr> >+ <td style="vertical-align:top;"> >+ [% IF ( framework.checked ) %] >+ <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" /> >+ [% ELSE %] >+ <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" /> >+ [% END %] >+ </td> >+ <td> >+ <label for="[% framework.fwkname %]"> >+ [% framework.fwkdescription %] >+ <em>([% framework.fwkname %])</em> >+ </label> >+ </td> >+ </table> >+ [% END %] >+ </div> >+ [% END %] >+ <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete, >+ please be patient.</p> >+ <p><input type="submit" value="Import >>" /> >+ </p> >+ </form> > [% END %] > > >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17855
:
58657
|
58658
|
58659
|
58660
|
58661
|
58662
|
58663
|
58664
|
58665
|
58666
|
58667
|
58668
|
58669
|
58781
|
58782
|
58783
|
58784
|
58785
|
58792
|
58793
|
58794
|
58846
|
58860
|
58861
|
58862
|
58886
|
58892
|
58893
|
58894
|
58895
|
58896
|
58897
|
58898
|
58899
|
58900
|
58901
|
58902
|
58903
|
58904
|
58905
|
58906
|
58907
|
59037
|
59051
|
59140
|
59141
|
59174
|
59188
|
59277
|
59279
|
59280
|
59281
|
59628
|
59703
|
59705
|
59706
|
59707
|
59708
|
59709
|
59710
|
59711
|
59712
|
59742
|
59826
|
59830
|
59840
|
59841
|
59842
|
59856
|
59857
|
60092
|
61667
|
61668
|
61986
|
62186
|
62191
|
62192
|
62193
|
62220
|
62221
|
62222
|
62223
|
62231
|
62233
|
62234
|
62235
|
62236
|
62237
|
62238
|
62239
|
62240
|
62241
|
62242
|
62243
|
62251
|
62252
|
62253
|
62254
|
62255
|
62256
|
62257
|
62258
|
62259
|
62260
|
62261
|
62262
|
62263
|
62281
|
62282
|
62283
|
62284
|
62285
|
62286
|
62287
|
62288
|
62668
|
62669
|
62670
|
62671
|
62672
|
62673
|
62674
|
62675