1 [% INCLUDE 'doc-head-open.inc' %]<title>Koha › Web installer › Step 3</title>
2 [% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl">[% END %]
3 [% INCLUDE 'installer-doc-head-close.inc' %]
5 <h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Web installer › Step 3</h1>
7 [% IF ( selectframeworks ) %]
8 <script type="text/javascript">
11 var surl = unescape(window.location.pathname);
15 // the timeout value should be the same as in the "refresh" meta-tag
16 setTimeout( "refresh()", 2*1000 );
19 function refresh(value)
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'.
29 surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value;
31 window.location.replace( surl );
34 function selectAllFrameworks()
36 // A handy short link that selects all available checkboxes
39 var checkboxes = document.getElementsByTagName("input");
40 for (var i = 0; i < checkboxes.length; i++)
42 if (checkboxes[i].type == 'checkbox')
44 checkboxes[i].checked = true;
48 // Prevent event propergation.
54 // Toggle the display of a given element on the page.
56 subfield = document.getElementById('bloc'+link);
57 var initstyle = subfield.style.display;
58 if (initstyle == 'block') subfield.style.display = 'none' ;
59 if (initstyle == 'none') subfield.style.display = 'block' ;
66 <h1>Congratulations, installation complete</h1>
67 <p>If this page does not redirect in 5 seconds, click <a href="/">here</a>.</p>
69 [% IF ( choosemarc ) %]
70 <h2 align="center">Select your MARC flavor</h2>
71 <form name="frameworkselection" method="post" action="install.pl">
72 <input type="hidden" name="step" value="3" />
73 <input type="hidden" name="op" value="selectframeworks" />
75 [% FOREACH flavourloo IN flavourloop %]
77 [% IF ( flavourloo.checked ) %]
78 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/>
80 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/>
85 <p> Click 'Next' to continue <input value="Next >>" type="submit" /></p>
89 [% IF ( selectframeworks ) %]
90 <h2 align="center">Selecting Default Settings</h2>
91 <script type="text/javascript">
92 document.write('<p><a href="#" onclick="return selectAllFrameworks();">Select all frameworks</a></p>');
94 <form name="frameworkselection" method="post" action="install.pl">
95 <input type="hidden" name="step" value="3" />
96 <input type="hidden" name="op" value="addframeworks" />
98 [% IF ( frameworksloop ) %]
99 <h2>MARC frameworks: [% marcflavour %]</h2>
100 [% IF ( en_marc_frameworks ) %]
101 <h4><span class="error">No MARC frameworks are available for your language.
102 Defaulting to the frameworks supplied for English (en)<span></h4>
104 [% FOREACH frameworksloo IN frameworksloop %]
106 <h3>[% frameworksloo.label %]</h3>
107 [% FOREACH framework IN frameworksloo.frameworks %]
108 <table style="border:1px;vertical-align:top;">
110 <td style="vertical-align:top;">
111 [% IF ( framework.checked ) %]
112 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
114 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
118 <label for="[% framework.fwkname %]">
119 [% framework.fwkdescription %]
120 <em>([% framework.fwkname %])</em>
129 [% IF ( en_sample_data ) %]
130 <h4><span class="error">No sample data and settings are available for your language.
131 Defaulting to the samples supplied for English (en)<span></h4>
133 [% FOREACH levelloo IN levelloop %]
135 <h3>[% levelloo.label %]</h3>
136 [% FOREACH framework IN levelloo.frameworks %]
137 <table style="border:1px;vertical-align:top;">
139 <td style="vertical-align:top;">
140 [% IF ( framework.checked ) %]
141 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
143 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
147 <label for="[% framework.fwkname %]">
148 [% framework.fwkdescription %]
149 <em>([% framework.fwkname %])</em>
156 <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
157 please be patient.</p>
158 <p><input type="submit" value="Import >>" />
164 [% IF ( addframeworks ) %]
165 [% FOREACH lis IN list %]
166 <h3>[% lis.level %] data added</h3>
168 [% FOREACH fwklis IN lis.fwklist %]
169 <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
174 <p>Installation complete.<br />
175 <p>Click on 'Finish' to complete and load the Koha Staff Interface.
177 <input type="hidden" name="step" value="3" />
178 <input type="hidden" name="op" value="finish" />
179 <input type="submit" value="Finish" /></form>
185 [% IF ( importdatastructure ) %]
187 <p>The following error occurred while importing the database structure:</p>
188 <p class="error">[% error %] </p>
189 <p>Please contact your system administrator</p>
191 <h2 align="center">Success</h2>
193 <li>Database tables created</li>
195 <form action="install.pl">
196 <input type="hidden" name="step" value="3" />
197 <p> Click 'Next' to continue <input value="Next >>" type="submit" /></p>
203 [% IF ( proposeimport ) %]
204 <p>Now we're ready to create the database tables and fill them with some default data.</p>
205 <form action="install.pl">
206 <input type="hidden" name="step" value="3" />
207 <input type="hidden" name="op" value="importdatastructure" />
208 <p> Click 'Next' to continue <input value="Next >>" type="submit" /></p>
214 [% IF ( upgrading ) %]
216 We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must <a href="install.pl?step=3&op=updatestructure" class="button">update your database</a>
219 <p>We are ready to do some basic configuration. Please
220 <a href="install.pl?step=3&op=choosemarc" class="button">install basic configuration settings</a>
221 to continue the installation.
228 [% IF ( updatestructure ) %]
229 <div><h2 align="center">Updating database structure</h2>
230 [% IF ( has_update_succeeds ) %]
231 <p>Update report :</p>
233 [% FOREACH update_repor IN update_report %]
234 <li>[% update_repor.line |html %]</li>
238 [% IF ( has_update_errors ) %]
239 <p>Update errors :</p>
241 [% FOREACH update_error IN update_errors %]
242 <li class="update_error">[% update_error.line |html %]</li>
246 [% UNLESS ( has_update_errors ) %]
247 <p>Everything went OK, update done.</p>
249 <a href="install.pl?step=3&op=finished" class="button">Continue to log in to Koha</a>