1 [% INCLUDE 'doc-head-open.inc' %]<title>Koha › Web installer › Step 3</title>
2 [% IF ( finish ) %]<meta http-equiv="refresh" content="5; url=/cgi-bin/koha/installer/onboarding.pl">[% END %]
3 [% INCLUDE 'installer-doc-head-close.inc' %]
5 <h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Koha 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' ;
68 <h1>Congratulations, installation complete</h1>
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>
73 [% IF ( choosemarc ) %]
74 <h2 align="center">Choose your setup</h2>
75 <p>Basic setup selects recommended settings by default.</p>
76 <form name="frameworkselection" method="post" action="install.pl">
77 <input type="hidden" name="step" value="3" />
78 <input type="hidden" name="op" value="selectframeworks"/>
81 <input type="radio" name="setup" value="Basic" checked="checked">Basic<br/>
82 <input type="radio" name="setup" value="Advanced"/>Advanced<br/>
85 <h2 align="center">Select your MARC flavor</h2>
86 <p>MARC stands for Machine Readable Cataloging, containing information about a bibliographic record. MARC21 is more commonly used globally, whereas UNIMARC tends to be used in Europe. </p>
88 [% FOREACH flavourloo IN flavourloop %]
90 [% IF ( flavourloo.label == "Unimarc") %]
91 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %]<br/>
93 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %] <br/>
98 <p>Click 'Next' to continue <input value="Next >>" type="submit" /></p>
104 [% IF ( selectframeworks ) %]
105 <h2 align= "center"> [% setup %] setup</h2>
106 <h2 align="center">Selecting Default Settings</h2>
108 [% IF setup == "Advanced" %]
109 <script type="text/javascript">
110 var linklabel = _("Select all options");
111 document.write('<p><a href="#" onclick="return selectAllFrameworks();"><button>'+linklabel+'</button></a></p>');
114 <form name="frameworkselection" method="post" action="install.pl">
115 <input type="hidden" name="step" value="3" />
116 <input type="hidden" name="op" value="addframeworks" />
117 [% IF ( frameworksloop ) %]
118 <h2>MARC frameworks: [% marcflavour %]</h2>
119 [% IF ( en_marc_frameworks ) %]
120 <h4><span class="error">No MARC frameworks are available for your language.
121 Defaulting to the frameworks supplied for English (en)<span></h4>
123 [% FOREACH frameworksloo IN frameworksloop %]
125 <h3>[% frameworksloo.label %]</h3>
126 [% FOREACH framework IN frameworksloo.frameworks %]
127 <table style="border:1px;vertical-align:top;">
129 <td style = "border:1px; vertical-align:top;">
130 [% IF (frameworksloo.label == "Default") && (setup=="Basic") %]
131 <input type="hidden" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" />
133 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" />
137 [% IF (frameworksloo.label == "Default") && (setup=="Basic") %]
140 <label for="[% framework.fwkname %]">
141 [% framework.fwkdescription %]
142 <em>([% framework.fwkname %])</em>
149 <label for= "[% framework.fwkname %]">
150 [% framework.fwkdescription %]
151 <em>([% framework.fwkname %])</em>
162 [% IF ( en_sample_data ) %]
163 <h4><span class="error">No sample data and settings are available for your language.
164 Defaulting to the samples supplied for English (en)<span></h4>
166 [% FOREACH levelloo IN levelloop %]
168 <h3>[% levelloo.label %]</h3>
170 [% IF (setup == "Basic" && levelloo.label == "Optional") %]
171 <script type="text/javascript">
172 var linklabel = _("Select all options");
173 document.write('<p><a href="#" onclick="return selectAllFrameworks();"><button>'+linklabel+'</button></a></p>');
177 [% FOREACH framework IN levelloo.frameworks %]
178 <table style="border:1px;vertical-align:top;">
180 <td style="vertical-align:top;">
181 [% IF (levelloo.label == "Default" ) && (setup=="Basic")%]
182 <input type="hidden" name="framework" value="[% framework.fwkfile %]" id="[%framework.fwkname %]" />
184 <input type="checkbox" name="framework" value="[%framework.fwkfile %]" id="[%framework.fwkname%]"/>
188 [% IF (levelloo.label == "Default") && (setup=="Basic")%]
191 <label for="[% framework.fwkname %]">
192 [% framework.fwkdescription %]
193 <em>([% framework.fwkname %])</em>
200 <label for= "[% framework.fwkname %]">
201 [% framework.fwkdescription %]
202 <em>([% framework.fwkname %])</em>
211 <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
212 please be patient.</p>
213 <p><input type="submit" value="Import >>" />
219 [% IF ( addframeworks ) %]
220 [% FOREACH lis IN list %]
221 <h3>[% lis.level %] data added</h3>
223 [% FOREACH fwklis IN lis.fwklist %]
224 <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
229 <p>Installation complete.<br />
231 You can help the Koha community by sharing your statistics with us.
232 <br>If you wish to share some of your data, please enable the functionality in the "Share your usage statistics" section of the admin module.
234 <p>Click on 'Set up Koha with the onboarding tool' to complete and load the Koha onboarding tool.
236 <input type="hidden" name="step" value="3" />
237 <input type="hidden" name="op" value="finish" />
238 <input type="submit" value="Set up Koha with the onboarding tool"/>
245 [% IF ( importdatastructure ) %]
247 <p>The following error occurred while importing the database structure:</p>
248 <p class="error">[% error %] </p>
249 <p>Please contact your system administrator</p>
251 <h2 align="center">Success</h2>
253 <li>Database tables created</li>
255 <form action="install.pl">
256 <input type="hidden" name="step" value="3" />
257 <p> Click 'Next' to continue <input value="Next >>" type="submit" /></p>
263 [% IF ( proposeimport ) %]
264 <p>Now we're ready to create the database tables and fill them with some default data.</p>
265 <form action="install.pl">
266 <input type="hidden" name="step" value="3" />
267 <input type="hidden" name="op" value="importdatastructure" />
268 <p> Click 'Next' to continue <input value="Next >>" type="submit" /></p>
273 [% IF ( upgrading ) %]
275 We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must update your database.
277 <a href="install.pl?step=3&op=updatestructure" class="button"><button>Update Database</button></a>
280 <p>We are ready to do some basic configuration. Please install some basic configuration settings to continue the installation:
283 <a href="install.pl?step=3&op=choosemarc" class="button"><button>Install Basic Configuration Settings</button></a>
288 [% IF ( updatestructure ) %]
289 <div><h2 align="center">Updating database structure</h2>
290 [% IF ( has_update_succeeds ) %]
291 <p>Update report :</p>
293 [% FOREACH update_repor IN update_report %]
294 <li>[% update_repor.line |html %]</li>
298 [% IF ( has_update_errors ) %]
299 <p>Update errors :</p>
301 [% FOREACH update_error IN update_errors %]
302 <li class="update_error">[% update_error.line |html %]</li>
306 [% UNLESS ( has_update_errors ) %]
307 <p>Everything went OK, update done.</p>
309 <a href="install.pl?step=3&op=choosemarc" class="button"><button>Back to Installation</button></a>