|
Lines 1-74
Link Here
|
| 1 |
[% INCLUDE 'doc-head-open.inc' %]<title>Koha › Web installer › Step 3</title> |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/installer/onboarding.pl">[% END %] |
2 |
<title>Koha › Web installer › |
|
|
3 |
[% IF ( proposeimport ) %] |
| 4 |
Set up database |
| 5 |
[% END %] |
| 6 |
[% IF ( importdatastructure ) %] |
| 7 |
[% IF ( error ) %] |
| 8 |
Error creating database tables |
| 9 |
[% ELSE %] |
| 10 |
Database tables created |
| 11 |
[% END %] |
| 12 |
[% END %] |
| 13 |
[% IF ( default ) %] |
| 14 |
[% IF ( upgrading ) %] |
| 15 |
Update database |
| 16 |
[% ELSE %] |
| 17 |
Install basic configuration settings |
| 18 |
[% END %] |
| 19 |
[% END %] |
| 20 |
[% IF ( choosemarc ) %] |
| 21 |
Select your MARC flavor |
| 22 |
[% END %] |
| 23 |
[% IF ( selectframeworks ) %] |
| 24 |
Selecting default settings |
| 25 |
[% END %] |
| 26 |
</title> |
| 27 |
[% IF ( finish ) %]<meta http-equiv="refresh" content="5; url=/cgi-bin/koha/installer/onboarding.pl">[% END %] |
| 3 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
28 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
| 4 |
<div> |
|
|
| 5 |
<h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Koha web installer › Step 3</h1> |
| 6 |
|
29 |
|
| 7 |
[% IF ( selectframeworks ) %] |
30 |
<div class="container-fluid"> |
| 8 |
<script type="text/javascript"> |
31 |
<div class="row"> |
| 9 |
//<![CDATA[ |
32 |
<div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2"> |
| 10 |
|
33 |
|
| 11 |
var surl = unescape(window.location.pathname); |
34 |
<h1 id="logo"><a href="#">Koha</a></h1> |
| 12 |
|
35 |
|
| 13 |
function doLoad() |
36 |
[% IF ( finish ) %] |
| 14 |
{ |
37 |
<h2>Web installer › Installation complete</h2> |
| 15 |
// the timeout value should be the same as in the "refresh" meta-tag |
38 |
<h3>Congratulations, installation complete</h3> |
| 16 |
setTimeout( "refresh()", 2*1000 ); |
39 |
<p> |
| 17 |
} |
40 |
If this page does not redirect in 5 seconds, <a href="/cgi-bin/koha/installer/onboarding.pl">Start onboarding process</a>. |
| 18 |
|
41 |
</p> |
| 19 |
function refresh(value) |
42 |
[% END %] |
| 20 |
{ |
|
|
| 21 |
// The argument to the location.reload function determines |
| 22 |
// if the browser should retrieve the document from the |
| 23 |
// web-server. In our example all we need to do is cause |
| 24 |
// the JavaScript block in the document body to be |
| 25 |
// re-evaluated. If we needed to pull the document from |
| 26 |
// the web-server again (such as where the document contents |
| 27 |
// change dynamically) we would pass the argument as 'true'. |
| 28 |
// |
| 29 |
surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value; |
| 30 |
|
| 31 |
window.location.replace( surl ); |
| 32 |
} |
| 33 |
|
43 |
|
| 34 |
function selectAllFrameworks() |
|
|
| 35 |
{ |
| 36 |
// A handy short link that selects all available checkboxes |
| 37 |
// on the page. |
| 38 |
// |
| 39 |
var checkboxes = document.getElementsByTagName("input"); |
| 40 |
for (var i = 0; i < checkboxes.length; i++) |
| 41 |
{ |
| 42 |
if (checkboxes[i].type == 'checkbox') |
| 43 |
{ |
| 44 |
checkboxes[i].checked = true; |
| 45 |
} |
| 46 |
} |
| 47 |
|
44 |
|
| 48 |
// Prevent event propergation. |
45 |
[% IF ( choosemarc ) %] |
| 49 |
return false; |
46 |
<h2>Choose your setup</h2> |
| 50 |
} |
47 |
<p>Basic setup selects recommended settings by default.</p> |
|
|
48 |
<form name="frameworkselection" method="post" action="install.pl"> |
| 49 |
<input type="hidden" name="step" value="3" /> |
| 50 |
<input type="hidden" name="op" value="selectframeworks"/> |
| 51 |
|
51 |
|
| 52 |
function Hide(link) |
52 |
<p> |
| 53 |
{ |
53 |
<label><input type="radio" name="setup" value="Basic" checked="checked" /> Basic</label> |
| 54 |
// Toggle the display of a given element on the page. |
54 |
</p> |
| 55 |
// |
55 |
<p> |
| 56 |
subfield = document.getElementById('bloc'+link); |
56 |
<label><input type="radio" name="setup" value="Advanced"/> Advanced</label> |
| 57 |
var initstyle = subfield.style.display; |
57 |
</p> |
| 58 |
if (initstyle == 'block') subfield.style.display = 'none' ; |
|
|
| 59 |
if (initstyle == 'none') subfield.style.display = 'block' ; |
| 60 |
} |
| 61 |
|
58 |
|
| 62 |
//]]> |
59 |
<h2>Select your MARC flavor</h2> |
| 63 |
</script> |
60 |
<p>MARC stands for Machine Readable Cataloging, containing information about a bibliographic record. MARC21 is used globally, whereas UNIMARC tends to be used in Europe. </p> |
| 64 |
[% END %] |
|
|
| 65 |
|
61 |
|
|
|
62 |
[% FOREACH flavourloo IN flavourloop %] |
| 63 |
[% IF ( flavourloo.label == "Unimarc") %] |
| 64 |
<p> |
| 65 |
<label><input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %]</label> |
| 66 |
</p> |
| 67 |
[% ELSE %] |
| 68 |
<p> |
| 69 |
<label><input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %]</label> |
| 70 |
</p> |
| 71 |
[% END %] |
| 72 |
[% END %] |
| 73 |
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p> |
| 74 |
</form> |
| 75 |
[% END # / IF choosemarc %] |
| 66 |
|
76 |
|
| 67 |
[% IF ( finish ) %] |
77 |
[% IF ( selectframeworks ) %] |
| 68 |
<h1>Congratulations, installation complete</h1> |
78 |
<h2>Web installer › [% setup %] setup › Selecting default settings</h2> |
| 69 |
<p>If this page does not redirect in 10 seconds, click <a href="/cgi-bin/koha/installer/onboarding.pl">Start onboarding process</a>.</p> |
|
|
| 70 |
[% END %] |
| 71 |
|
79 |
|
|
|
80 |
[% IF setup == "Advanced" %] |
| 81 |
<p id="selectall"><a href="#">Select all sample data</a></p> |
| 82 |
[% END %] |
| 72 |
|
83 |
|
| 73 |
[% IF ( choosemarc ) %] |
84 |
[% IF ( choosemarc ) %] |
| 74 |
<h2 align="center">Select your MARC flavor</h2> |
85 |
<h2 align="center">Select your MARC flavor</h2> |
|
Lines 191-223
function Hide(link)
Link Here
|
| 191 |
</p> |
202 |
</p> |
| 192 |
[% END %] |
203 |
[% END %] |
| 193 |
|
204 |
|
|
|
205 |
[% IF ( proposeimport ) %] |
| 206 |
<h2>Web installer › Set up database</h2> |
| 207 |
<p>Now we're ready to create the database tables and fill them with some default data.</p> |
| 208 |
<form action="install.pl" method="post"> |
| 209 |
<input type="hidden" name="step" value="3" /> |
| 210 |
<input type="hidden" name="op" value="importdatastructure" /> |
| 211 |
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p> |
| 212 |
</form> |
| 213 |
[% END %] |
| 194 |
|
214 |
|
| 195 |
[% IF ( importdatastructure ) %] |
215 |
[% IF ( default ) %] |
| 196 |
[% IF ( error ) %] |
216 |
[% IF ( upgrading ) %] |
| 197 |
<p>The following error occurred while importing the database structure:</p> |
217 |
<h2>Web installer › Update database</h2> |
| 198 |
<p class="error">[% error %] </p> |
218 |
<p>We are upgrading from Koha [% dbversion %] to [% kohaversion %]</p> |
| 199 |
<p>Please contact your system administrator</p> |
219 |
<p><a href="install.pl?step=3&op=updatestructure" class="btn btn-primary">Update your database</a></p> |
| 200 |
[% ELSE %] |
220 |
[% ELSE %] |
| 201 |
<h2 align="center">Success</h2> |
221 |
<h2>Web installer › Install basic configuration settings</h2> |
| 202 |
<ul> |
222 |
<p>We are ready to do some basic configuration.</p> |
| 203 |
<li>Database tables created</li> |
223 |
<p> <a href="install.pl?step=3&op=choosemarc" class="btn btn-primary">Continue to the next step</a> </p> |
| 204 |
</ul> |
224 |
[% END %] |
| 205 |
<form action="install.pl"> |
225 |
[% END %] |
| 206 |
<input type="hidden" name="step" value="3" /> |
|
|
| 207 |
<p> Click 'Next' to continue <input value="Next >>" type="submit" /></p> |
| 208 |
</form> |
| 209 |
[% END %] |
| 210 |
[% END %] |
| 211 |
|
| 212 |
|
226 |
|
| 213 |
[% IF ( proposeimport ) %] |
227 |
[% IF ( updatestructure ) %] |
| 214 |
<p>Now we're ready to create the database tables and fill them with some default data.</p> |
228 |
<h2>Updating database structure</h2> |
| 215 |
<form action="install.pl"> |
229 |
[% IF ( has_update_succeeds ) %] |
| 216 |
<input type="hidden" name="step" value="3" /> |
230 |
<p>Update report :</p> |
| 217 |
<input type="hidden" name="op" value="importdatastructure" /> |
231 |
<ul> |
| 218 |
<p> Click 'Next' to continue <input value="Next >>" type="submit" /></p> |
232 |
[% FOREACH update_repor IN update_report %] |
| 219 |
</form> |
233 |
<li>[% update_repor.line |html %]</li> |
| 220 |
[% END %] |
234 |
[% END %] |
|
|
235 |
</ul> |
| 236 |
[% END %] |
| 221 |
|
237 |
|
| 222 |
[% IF ( default ) %] |
238 |
[% IF ( default ) %] |
| 223 |
[% IF ( upgrading ) %] |
239 |
[% IF ( upgrading ) %] |
|
Lines 232-239
function Hide(link)
Link Here
|
| 232 |
<br> |
248 |
<br> |
| 233 |
<a href="install.pl?step=3&op=choosemarc" class="button">Install basic configuration settings</a> |
249 |
<a href="install.pl?step=3&op=choosemarc" class="button">Install basic configuration settings</a> |
| 234 |
|
250 |
|
| 235 |
[% END %] |
251 |
[% UNLESS ( has_update_errors ) %] |
| 236 |
[% END %] |
252 |
<p>Everything went okay. Update done.</p> |
|
|
253 |
[% END %] |
| 254 |
<p><a href="install.pl?step=3&op=finished" class="btn btn-primary">Continue to log in to Koha</a></p> |
| 255 |
[% END # / IF updatestructure %] |
| 256 |
</div> |
| 257 |
</div> |
| 237 |
|
258 |
|
| 238 |
[% IF ( updatestructure ) %] |
259 |
[% IF ( updatestructure ) %] |
| 239 |
<div><h2 align="center">Updating database structure</h2> |
260 |
<div><h2 align="center">Updating database structure</h2> |
|
Lines 260-265
function Hide(link)
Link Here
|
| 260 |
</div> |
281 |
</div> |
| 261 |
[% END %] |
282 |
[% END %] |
| 262 |
|
283 |
|
| 263 |
</div> |
284 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 264 |
</body> |
|
|
| 265 |
</html> |