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 var linklabel = _("Select all sample data");
93 document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>');
95 <form name="frameworkselection" method="post" action="install.pl">
96 <input type="hidden" name="step" value="3" />
97 <input type="hidden" name="op" value="addframeworks" />
99 [% IF ( frameworksloop ) %]
100 <h2>MARC frameworks: [% marcflavour %]</h2>
101 [% IF ( en_marc_frameworks ) %]
102 <h4><span class="error">No MARC frameworks are available for your language.
103 Defaulting to the frameworks supplied for English (en)<span></h4>
105 [% FOREACH frameworksloo IN frameworksloop %]
107 <h3>[% frameworksloo.label %]</h3>
108 [% FOREACH framework IN frameworksloo.frameworks %]
109 <table style="border:1px;vertical-align:top;">
111 <td style="vertical-align:top;">
112 [% IF ( framework.checked ) %]
113 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
115 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
119 <label for="[% framework.fwkname %]">
120 [% framework.fwkdescription %]
121 <em>([% framework.fwkname %])</em>
130 [% IF ( en_sample_data ) %]
131 <h4><span class="error">No sample data and settings are available for your language.
132 Defaulting to the samples supplied for English (en)<span></h4>
134 [% FOREACH levelloo IN levelloop %]
136 <h3>[% levelloo.label %]</h3>
137 [% FOREACH framework IN levelloo.frameworks %]
138 <table style="border:1px;vertical-align:top;">
140 <td style="vertical-align:top;">
141 [% IF ( framework.checked ) %]
142 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
144 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
148 <label for="[% framework.fwkname %]">
149 [% framework.fwkdescription %]
150 <em>([% framework.fwkname %])</em>
157 <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
158 please be patient.</p>
159 <p><input type="submit" value="Import >>" />
165 [% IF ( addframeworks ) %]
166 [% FOREACH lis IN list %]
167 <h3>[% lis.level %] data added</h3>
169 [% FOREACH fwklis IN lis.fwklist %]
170 <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
175 <p>Installation complete.<br />
176 <p>Click on 'Finish' to complete and load the Koha Staff Interface.
178 <input type="hidden" name="step" value="3" />
179 <input type="hidden" name="op" value="finish" />
180 <input type="submit" value="Finish" /></form>
186 [% IF ( importdatastructure ) %]
188 <p>The following error occurred while importing the database structure:</p>
189 <p class="error">[% error %] </p>
190 <p>Please contact your system administrator</p>
192 <h2 align="center">Success</h2>
194 <li>Database tables created</li>
196 <form action="install.pl">
197 <input type="hidden" name="step" value="3" />
198 <p> Click 'Next' to continue <input value="Next >>" type="submit" /></p>
204 [% IF ( proposeimport ) %]
205 <p>Now we're ready to create the database tables and fill them with some default data.</p>
206 <form action="install.pl">
207 <input type="hidden" name="step" value="3" />
208 <input type="hidden" name="op" value="importdatastructure" />
209 <p> Click 'Next' to continue <input value="Next >>" type="submit" /></p>
215 [% IF ( upgrading ) %]
217 We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must <a href="install.pl?step=3&op=updatestructure" class="button">update your database</a>
220 <p>We are ready to do some basic configuration. Please
221 <a href="install.pl?step=3&op=choosemarc" class="button">install basic configuration settings</a>
222 to continue the installation.
229 [% IF ( updatestructure ) %]
230 <div><h2 align="center">Updating database structure</h2>
231 [% IF ( has_update_succeeds ) %]
232 <p>Update report :</p>
234 [% FOREACH update_repor IN update_report %]
235 <li>[% update_repor.line |html %]</li>
239 [% IF ( has_update_errors ) %]
240 <p>Update errors :</p>
242 [% FOREACH update_error IN update_errors %]
243 <li class="update_error">[% update_error.line |html %]</li>
247 [% UNLESS ( has_update_errors ) %]
248 <p>Everything went OK, update done.</p>
250 <a href="install.pl?step=3&op=finished" class="button">Continue to log in to Koha</a>