2 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Web installer ›
5 [% IF ( proposeimport ) %]
8 [% IF ( importdatastructure ) %]
10 Error creating database tables
12 Database tables created
16 [% IF ( upgrading ) %]
19 Install basic configuration settings
22 [% IF ( choosemarc ) %]
23 Select your MARC flavor
25 [% IF ( selectframeworks ) %]
26 Selecting default settings
28 [% IF ( addframeworks ) %]
37 [%- metacontent= '10; url=/cgi-bin/koha/installer/onboarding.pl' -%]
38 <meta http-equiv="refresh" content="[% metacontent | html %]">
40 [% INCLUDE 'installer-doc-head-close.inc' %]
43 <body id="installer" class="installer">
44 <div class="container-fluid">
46 <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
47 <h1 id="logo"><a href="#">Koha</a></h1>
49 <h2>Web installer › Installation complete</h2>
50 <h3>Congratulations, installation complete</h3>
51 <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>
54 [% IF ( choosemarc ) %]
55 <h2>Select your MARC flavor</h2>
57 <form name="frameworkselection" method="post" action="install.pl">
58 <input type="hidden" name="step" value="3" />
59 <input type="hidden" name="op" value="selectframeworks" />
61 <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>
63 [% FOREACH flavourloo IN flavourloop %]
64 [% IF ( flavourloo.label == "Unimarc") %]
66 <label><input type="radio" name="marcflavour" value="[% flavourloo.code | html %]" /> [% flavourloo.label | html %]</label>
70 <label><input type="radio" name="marcflavour" value="[% flavourloo.code | html %]" checked="checked" /> [% flavourloo.label | html %]</label>
74 <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
76 [% END # / IF choosemarc %]
78 [% IF ( selectframeworks ) %]
79 <h2>Web installer › Selecting default settings</h2>
82 <form name="frameworkselection" method="post" action="install.pl">
83 <input type="hidden" name="step" value="3" />
84 <input type="hidden" name="op" value="addframeworks" />
85 [% IF ( frameworksloop ) %]
86 <h3>MARC frameworks: [% marcflavour | html %]</h3>
87 [% IF ( en_marc_frameworks ) %]
88 <h4><span class="error">No MARC frameworks are available for your language.
89 Defaulting to the frameworks supplied for English (en)<span></h4>
91 [% FOREACH frameworksloo IN frameworksloop %]
92 [%- SWITCH frameworksloo.label -%]
93 [%- CASE 'mandatory' -%]<h4>Mandatory</h4>
94 [%- CASE 'optional' -%]<h4>Optional</h4>
97 <div class="checkboxes">
100 <a class="selectall [% frameworksloo.label FILTER lower | html %]" href="#">Select all</a>
101 <a class="deselectall [% frameworksloo.label FILTER lower | html %]" href="#">Select none</a>
104 [% FOREACH framework IN frameworksloo.frameworks %]
105 <div class="checkbox">
107 [% IF ( framework.checked ) %]
108 <input type="checkbox" name="framework" value="[% framework.fwkfile | html %]" id ="[% framework.fwkname | html %]" checked="checked" />
110 <input type="checkbox" name="framework" value="[% framework.fwkfile | html %]" id ="[% framework.fwkname | html %]" />
112 [% FOREACH description IN framework.fwkdescription %]
113 [% description | html %]<br />
115 <em>([% framework.fwkname | html %])</em>
119 [% END # / FOREACH framework %]
121 [% END # / FOREACH frameworksloo %]
122 [% END # / IF frameworkdsloop %]
126 [% IF ( en_sample_data ) %]
127 <h4><span class="error">No sample data and settings are available for your language.
128 Defaulting to the samples supplied for English (en)<span></h4>
131 [% FOREACH levelloo IN levelloop %]
132 [%- SWITCH levelloo.label -%]
133 [%- CASE 'mandatory' -%]<h4>Mandatory</h4>
134 [%- CASE 'optional' -%]<h4>Optional</h4>
137 <div class="checkboxes">
140 <a class="selectall [% levelloo.label FILTER lower | html %]" href="#">Select all</a>
141 <a class="deselectall [% levelloo.label FILTER lower | html %]" href="#">Select none</a>
144 [% FOREACH framework IN levelloo.frameworks %]
145 <div class="checkbox">
146 <label for="[% framework.fwkname | html %]">
147 [% IF ( framework.checked ) %]
148 <input type="checkbox" name="framework" value="[% framework.fwkfile | html %]" id="[% framework.fwkname | html %]" checked="checked" />
150 <input type="checkbox" name="framework" value="[% framework.fwkfile | html %]" id="[% framework.fwkname | html %]" />
152 [% FOREACH description IN framework.fwkdescription %]
153 [% description | html %]<br />
156 </div> <!-- /div.checkbox -->
157 [% END # / FOREACH framework %]
159 [% END # / FOREACH levelloo %]
161 <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>
163 <p><input type="submit" value="Import" class="btn btn-primary" /></p>
165 [% END # / IF selectframeworks %]
167 [% IF ( addframeworks ) %]
168 <h2>Web installer › Default data loaded</h2>
169 [% FOREACH lis IN list %]
170 [% IF lis.level == 'mandatory' %]
171 <h3>Mandatory data added</h3>
172 [% ELSIF lis.level == 'optional' %]
173 <h3>Optional data added</h3>
174 [% ELSIF lis.level == 'mysql' %]
175 <h3>MySQL data added</h3>
177 <h3>[% lis.level FILTER ucfirst | html %] data added</h3>
180 [% FOREACH fwklis IN lis.fwklist %]
182 [% fwklis.fwkname | html %]
183 [% IF ( fwklis.error ) %]<p class="bg-danger">[% fwklis.error | html %]</p>[% END %]
189 <h3>Basic installation complete.</h3>
191 <p>In the next steps you will be guided through some basic requirements like defining Koha user with all administrative privileges (superlibrarian).</p>
193 <form action="/cgi-bin/koha/installer/install.pl" method="post" name="finish">
195 You can help the Koha community by sharing your statistics with us.
198 If you wish to share some of your data, please enable the functionality in the "Share your usage statistics" section of the Administration module.
201 <input type="hidden" name="step" value="3" />
202 <input type="hidden" name="op" value="finish" />
204 <input value="Set up some of Koha's basic requirements" class="btn btn-primary" type="submit" />
208 [% END # / IF addframeworks %]
210 [% IF ( importdatastructure ) %]
212 <p>The following error occurred while importing the database structure:</p>
213 <div class="alert alert-warning"><p>[% error | html %] </p></div>
214 <p>Please contact your system administrator</p>
216 <h2>Web installer › Success</h2>
217 <div class="alert alert-success"><p>Database tables created</p></div>
218 <form action="install.pl" method="post">
219 <input type="hidden" name="step" value="3" />
220 <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
223 [% END # / IF importdatastructure %]
225 [% IF ( proposeimport ) %]
226 <h2>Web installer › Set up database</h2>
227 <p>Now we're ready to create the database tables and fill them with some default data.</p>
228 <form action="install.pl" method="post">
229 <input type="hidden" name="step" value="3" />
230 <input type="hidden" name="op" value="importdatastructure" />
231 <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
233 [% END # / proposeimport %]
236 [% IF ( upgrading ) %]
237 <h2>Web installer › Update database</h2>
238 <p>We are upgrading from Koha [% dbversion | html %] to [% kohaversion | html %]</p>
239 <p><a href="install.pl?step=3&op=updatestructure" class="btn btn-primary">Update your database</a></p>
241 <h2>Web installer › Install basic configuration settings</h2>
242 <p>We are ready to do some basic configuration.</p>
243 <p><a href="install.pl?step=3&op=choosemarc" class="btn btn-primary">Continue to the next step</a></p>
245 [% END # / IF default %]
247 [% IF ( updatestructure ) %]
248 <h2>Updating database structure</h2>
249 [% IF ( has_update_succeeds ) %]
250 <p>Update report :</p>
252 [% FOREACH update_repor IN update_report %]
253 <li>[% update_repor.line | $raw %]</li>
257 [% IF ( has_update_errors ) %]
258 <p>Update errors :</p>
260 [% FOREACH update_error IN update_errors %]
261 <li class="update_error">[% update_error.line | html %]</li>
265 [% UNLESS ( has_update_errors ) %]
266 <p>Everything went okay. Update done.</p>
268 <p><a href="install.pl?step=3&op=finished" class="btn btn-primary">Continue to log in to Koha</a></p>
269 [% END # / IF updatestructure %]
270 </div> <!-- / #installer-step3 -->
271 </div> <!-- / .row -->
272 </div><!-- / .container-fluid -->
274 [% IF ( selectframeworks ) %]
275 [% MACRO jsinclude BLOCK %]
277 $(document).ready(function(){
278 $(".selectall,.deselectall").on("click",function(e){
280 var container = $(this).parent().parent();
281 if( $(this).hasClass("selectall") ){
286 $( container ).find("input").prop("checked", state);
287 $( container ).find(".selectall,.deselectall").toggle();
294 [% INCLUDE 'installer-intranet-bottom.inc' %]