Jonathan Druart
40f6b56424
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
299 lines
15 KiB
Text
299 lines
15 KiB
Text
[% USE raw %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
|
|
<title>Koha › Web installer ›
|
|
[% IF ( proposeimport ) %]
|
|
Set up database
|
|
[% END %]
|
|
[% IF ( importdatastructure ) %]
|
|
[% IF ( error ) %]
|
|
Error creating database tables
|
|
[% ELSE %]
|
|
Database tables created
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( default ) %]
|
|
[% IF ( upgrading ) %]
|
|
Update database
|
|
[% ELSE %]
|
|
Install basic configuration settings
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( choosemarc ) %]
|
|
Select your MARC flavor
|
|
[% END %]
|
|
[% IF ( selectframeworks ) %]
|
|
Selecting default settings
|
|
[% END %]
|
|
[% IF ( addframeworks ) %]
|
|
Default data loaded
|
|
[% END %]
|
|
[% IF ( finish ) %]
|
|
Installation complete
|
|
[% END %]
|
|
</title>
|
|
|
|
[% IF ( finish ) %]
|
|
[%- metacontent= '10; url=/cgi-bin/koha/installer/onboarding.pl' -%]
|
|
<meta http-equiv="refresh" content="[% metacontent | html %]">
|
|
[% END %]
|
|
[% INCLUDE 'installer-doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="installer" class="installer">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
|
|
<h1 id="logo"><a href="#">Koha</a></h1>
|
|
[% IF ( finish ) %]
|
|
<h2>Web installer › Installation complete</h2>
|
|
<h3>Congratulations, installation complete</h3>
|
|
<p>This page will redirect in 10 seconds. <a href="/cgi-bin/koha/installer/onboarding.pl">If not, click here to start onboarding process.</a></p>
|
|
[% END %]
|
|
|
|
[% IF ( choosemarc ) %]
|
|
<h2>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>MARC stands for Machine Readable Cataloging. A MARC record contains bibliographic record information about an item. MARC21 is used globally, UNIMARC tends to be used in a few European countries. </p>
|
|
|
|
[% FOREACH flavourloo IN flavourloop %]
|
|
[% IF ( flavourloo.label == "Unimarc") %]
|
|
<p>
|
|
<label><input type="radio" name="marcflavour" value="[% flavourloo.code | html %]" /> [% flavourloo.label | html %]</label>
|
|
</p>
|
|
[% ELSE %]
|
|
<p>
|
|
<label><input type="radio" name="marcflavour" value="[% flavourloo.code | html %]" checked="checked" /> [% flavourloo.label | html %]</label>
|
|
</p>
|
|
[% END %]
|
|
[% END %]
|
|
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
|
|
</form>
|
|
[% END # / IF choosemarc %]
|
|
|
|
[% IF ( selectframeworks ) %]
|
|
<h2>Web installer › Selecting default settings</h2>
|
|
|
|
|
|
<form name="frameworkselection" method="post" action="install.pl">
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="op" value="addframeworks" />
|
|
[% IF ( frameworksloop ) %]
|
|
<h3>MARC frameworks: [% marcflavour | html %]</h3>
|
|
[% 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 %]
|
|
[%- SWITCH frameworksloo.label -%]
|
|
[%- CASE 'mandatory' -%]<h4>Mandatory</h4>
|
|
[%- CASE 'optional' -%]<h4>Optional</h4>
|
|
[%- END -%]
|
|
|
|
<div class="checkboxes">
|
|
|
|
<p>
|
|
<a class="selectall [% frameworksloo.label FILTER lower | html %]" href="#">Select all</a>
|
|
<a class="deselectall [% frameworksloo.label FILTER lower | html %]" href="#">Select none</a>
|
|
</p>
|
|
|
|
[% FOREACH framework IN frameworksloo.frameworks %]
|
|
<div class="checkbox">
|
|
<label>
|
|
[% IF ( framework.checked ) %]
|
|
<input type="checkbox" name="framework" value="[% framework.fwkfile | html %]" id ="[% framework.fwkname | html %]" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="framework" value="[% framework.fwkfile | html %]" id ="[% framework.fwkname | html %]" />
|
|
[% END %]
|
|
[% FOREACH description IN framework.fwkdescription %]
|
|
[% description | html %]<br />
|
|
[% END %]
|
|
<em>([% framework.fwkname | html %])</em>
|
|
</label>
|
|
</div>
|
|
<hr />
|
|
[% END # / FOREACH framework %]
|
|
</div>
|
|
[% END # / FOREACH frameworksloo %]
|
|
[% END # / IF frameworkdsloop %]
|
|
|
|
<h3>Other data</h3>
|
|
|
|
[% 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 %]
|
|
[%- SWITCH levelloo.label -%]
|
|
[%- CASE 'mandatory' -%]<h4>Mandatory</h4>
|
|
[%- CASE 'optional' -%]<h4>Optional</h4>
|
|
[%- END -%]
|
|
|
|
<div class="checkboxes">
|
|
|
|
<p>
|
|
<a class="selectall [% levelloo.label FILTER lower | html %]" href="#">Select all</a>
|
|
<a class="deselectall [% levelloo.label FILTER lower | html %]" href="#">Select none</a>
|
|
</p>
|
|
|
|
[% FOREACH framework IN levelloo.frameworks %]
|
|
<div class="checkbox">
|
|
<label for="[% framework.fwkname | html %]">
|
|
[% IF ( framework.checked ) %]
|
|
<input type="checkbox" name="framework" value="[% framework.fwkfile | html %]" id="[% framework.fwkname | html %]" checked="checked" />
|
|
[% ELSE %]
|
|
<input type="checkbox" name="framework" value="[% framework.fwkfile | html %]" id="[% framework.fwkname | html %]" />
|
|
[% END %]
|
|
[% FOREACH description IN framework.fwkdescription %]
|
|
[% description | html %]<br />
|
|
[% END %]
|
|
</label>
|
|
</div> <!-- /div.checkbox -->
|
|
[% END # / FOREACH framework %]
|
|
</div>
|
|
[% END # / FOREACH levelloo %]
|
|
|
|
<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" class="btn btn-primary" /></p>
|
|
</form>
|
|
[% END # / IF selectframeworks %]
|
|
|
|
[% IF ( addframeworks ) %]
|
|
<h2>Web installer › Default data loaded</h2>
|
|
[% FOREACH lis IN list %]
|
|
[% IF lis.level == 'mandatory' %]
|
|
<h3>Mandatory data added</h3>
|
|
[% ELSIF lis.level == 'optional' %]
|
|
<h3>Optional data added</h3>
|
|
[% ELSIF lis.level == 'mysql' %]
|
|
<h3>MySQL data added</h3>
|
|
[% ELSE %]
|
|
<h3>[% lis.level FILTER ucfirst | html %] data added</h3>
|
|
[% END %]
|
|
<ul>
|
|
[% FOREACH fwklis IN lis.fwklist %]
|
|
<li>
|
|
[% fwklis.fwkname | html %]
|
|
[% IF ( fwklis.error ) %]<p class="bg-danger">[% fwklis.error | html %]</p>[% END %]
|
|
</li>
|
|
[% END %]
|
|
</ul>
|
|
[% END %]
|
|
|
|
<h3>Basic installation complete.</h3>
|
|
|
|
<p>In the next steps you will be guided through some basic requirements like defining Koha user with all administrative privileges (superlibrarian).</p>
|
|
|
|
<form action="/cgi-bin/koha/installer/install.pl" method="post" name="finish">
|
|
<h4>
|
|
You can help the Koha community by sharing your statistics with us.
|
|
</h4>
|
|
<p>
|
|
If you wish to share some of your data, please enable the functionality in the "Share your usage statistics" section of the Administration module.
|
|
</p>
|
|
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="op" value="finish" />
|
|
<p>
|
|
<input value="Set up some of Koha's basic requirements" class="btn btn-primary" type="submit" />
|
|
</p>
|
|
</form>
|
|
|
|
[% END # / IF addframeworks %]
|
|
|
|
[% IF ( importdatastructure ) %]
|
|
[% IF ( error ) %]
|
|
<p>The following error occurred while importing the database structure:</p>
|
|
<div class="alert alert-warning"><p>[% error | html %] </p></div>
|
|
<p>Please contact your system administrator</p>
|
|
[% ELSE %]
|
|
<h2>Web installer › Success</h2>
|
|
<div class="alert alert-success"><p>Database tables created</p></div>
|
|
<form action="install.pl" method="post">
|
|
<input type="hidden" name="step" value="3" />
|
|
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
|
|
</form>
|
|
[% END %]
|
|
[% END # / IF importdatastructure %]
|
|
|
|
[% IF ( proposeimport ) %]
|
|
<h2>Web installer › Set up database</h2>
|
|
<p>Now we're ready to create the database tables and fill them with some default data.</p>
|
|
<form action="install.pl" method="post">
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="op" value="importdatastructure" />
|
|
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
|
|
</form>
|
|
[% END # / proposeimport %]
|
|
|
|
[% IF ( default ) %]
|
|
[% IF ( upgrading ) %]
|
|
<h2>Web installer › Update database</h2>
|
|
<p>We are upgrading from Koha [% dbversion | html %] to [% kohaversion | html %]</p>
|
|
<p><a href="install.pl?step=3&op=updatestructure" class="btn btn-primary">Update your database</a></p>
|
|
[% ELSE %]
|
|
<h2>Web installer › Install basic configuration settings</h2>
|
|
<p>We are ready to do some basic configuration.</p>
|
|
<p><a href="install.pl?step=3&op=choosemarc" class="btn btn-primary">Continue to the next step</a></p>
|
|
[% END %]
|
|
[% END # / IF default %]
|
|
|
|
[% IF ( updatestructure ) %]
|
|
<h2>Updating database structure</h2>
|
|
[% IF ( has_update_succeeds ) %]
|
|
<p>Update report :</p>
|
|
<ul>
|
|
[% FOREACH l IN update_report %]
|
|
[% SET line = l.line %]
|
|
[% IF line.match('^Upgrade to') %]
|
|
<li>[% line | $raw %]</li>
|
|
[% ELSE %]
|
|
[% line | $raw %]<br/>
|
|
[% END %]
|
|
[% END %]
|
|
</ul>
|
|
[% END %]
|
|
[% IF ( has_update_errors ) %]
|
|
<p>Update errors :</p>
|
|
<ul>
|
|
[% FOREACH update_error IN update_errors %]
|
|
<li class="update_error">[% update_error.line | html %]</li>
|
|
[% END %]
|
|
</ul>
|
|
[% END %]
|
|
[% UNLESS ( has_update_errors ) %]
|
|
<p>Everything went okay. Update done.</p>
|
|
[% END %]
|
|
<p><a href="install.pl?step=3&op=finished" class="btn btn-primary">Continue to log in to Koha</a></p>
|
|
[% END # / IF updatestructure %]
|
|
</div> <!-- / #installer-step3 -->
|
|
</div> <!-- / .row -->
|
|
</div><!-- / .container-fluid -->
|
|
|
|
[% IF ( selectframeworks ) %]
|
|
[% MACRO jsinclude BLOCK %]
|
|
<script>
|
|
$(document).ready(function(){
|
|
$(".selectall,.deselectall").on("click",function(e){
|
|
e.preventDefault();
|
|
var container = $(this).parent().parent();
|
|
if( $(this).hasClass("selectall") ){
|
|
var state = true;
|
|
} else {
|
|
var state = false;
|
|
}
|
|
$( container ).find("input").prop("checked", state);
|
|
$( container ).find(".selectall,.deselectall").toggle();
|
|
});
|
|
});
|
|
</script>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% INCLUDE 'installer-intranet-bottom.inc' %]
|