Lines 24-268
Link Here
|
24 |
[% IF ( selectframeworks ) %] |
24 |
[% IF ( selectframeworks ) %] |
25 |
Selecting default settings |
25 |
Selecting default settings |
26 |
[% END %] |
26 |
[% END %] |
|
|
27 |
[% IF ( addframeworks ) %] |
28 |
Default data loaded |
29 |
[% END %] |
30 |
[% IF ( finish ) %] |
31 |
Installation complete |
32 |
[% END %] |
27 |
</title> |
33 |
</title> |
|
|
34 |
|
28 |
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/installer/onboarding.pl">[% END %] |
35 |
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/installer/onboarding.pl">[% END %] |
29 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
36 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
|
|
37 |
</head> |
38 |
|
39 |
<body id="installer" class="installer"> |
40 |
<div class="container-fluid"> |
41 |
<div class="row"> |
42 |
<div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2"> |
43 |
<h1 id="logo"><a href="#">Koha</a></h1> |
44 |
[% IF ( finish ) %] |
45 |
<h2>Web installer › Installation complete</h2> |
46 |
<h3>Congratulations, installation complete</h3> |
47 |
<p> |
48 |
If this page does not redirect in 10 seconds, <a href="/cgi-bin/koha/installer/onboarding.pl">start onboarding process</a>. |
49 |
</p> |
50 |
[% END %] |
30 |
|
51 |
|
31 |
[% IF ( selectframeworks ) %] |
52 |
[% IF ( choosemarc ) %] |
32 |
<script type="text/javascript"> |
53 |
<h2>Select your MARC flavor</h2> |
33 |
//<![CDATA[ |
|
|
34 |
|
54 |
|
35 |
var surl = unescape(window.location.pathname); |
55 |
<form name="frameworkselection" method="post" action="install.pl"> |
|
|
56 |
<input type="hidden" name="step" value="3" /> |
57 |
<input type="hidden" name="op" value="selectframeworks" /> |
36 |
|
58 |
|
37 |
function doLoad() |
59 |
<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> |
38 |
{ |
|
|
39 |
// the timeout value should be the same as in the "refresh" meta-tag |
40 |
setTimeout( "refresh()", 2*1000 ); |
41 |
} |
42 |
|
60 |
|
43 |
function refresh(value) |
61 |
[% FOREACH flavourloo IN flavourloop %] |
44 |
{ |
62 |
[% IF ( flavourloo.label == "Unimarc") %] |
45 |
// The argument to the location.reload function determines |
63 |
<p> |
46 |
// if the browser should retrieve the document from the |
64 |
<label><input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %]</label> |
47 |
// web-server. In our example all we need to do is cause |
65 |
</p> |
48 |
// the JavaScript block in the document body to be |
66 |
[% ELSE %] |
49 |
// re-evaluated. If we needed to pull the document from |
67 |
<p> |
50 |
// the web-server again (such as where the document contents |
68 |
<label><input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %]</label> |
51 |
// change dynamically) we would pass the argument as 'true'. |
69 |
</p> |
52 |
// |
70 |
[% END %] |
53 |
surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value; |
71 |
[% END %] |
|
|
72 |
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p> |
73 |
</form> |
74 |
[% END # / IF choosemarc %] |
54 |
|
75 |
|
55 |
window.location.replace( surl ); |
76 |
[% IF ( selectframeworks ) %] |
56 |
} |
77 |
<h2>Web installer › [% setup %] setup › Selecting default settings</h2> |
57 |
|
78 |
|
58 |
function selectAllFrameworks() |
79 |
<p id="selectall"><a href="#">Select all sample data</a></p> |
59 |
{ |
|
|
60 |
// A handy short link that selects all available checkboxes |
61 |
// on the page. |
62 |
// |
63 |
var checkboxes = document.getElementsByTagName("input"); |
64 |
for (var i = 0; i < checkboxes.length; i++) |
65 |
{ |
66 |
if (checkboxes[i].type == 'checkbox') |
67 |
{ |
68 |
checkboxes[i].checked = true; |
69 |
} |
70 |
} |
71 |
|
80 |
|
72 |
// Prevent event propergation. |
81 |
<form name="frameworkselection" method="post" action="install.pl"> |
73 |
return false; |
82 |
<input type="hidden" name="step" value="3" /> |
74 |
} |
83 |
<input type="hidden" name="op" value="addframeworks" /> |
|
|
84 |
[% IF ( frameworksloop ) %] |
85 |
<h3>MARC frameworks: [% marcflavour %]</h3> |
86 |
[% IF ( en_marc_frameworks ) %] |
87 |
<h4><span class="error">No MARC frameworks are available for your language. |
88 |
Defaulting to the frameworks supplied for English (en)<span></h4> |
89 |
[% END %] |
90 |
[% FOREACH frameworksloo IN frameworksloop %] |
91 |
<h4>[% frameworksloo.label %]</h4> |
92 |
[% FOREACH framework IN frameworksloo.frameworks %] |
93 |
<div class="checkbox"> |
94 |
<label> |
95 |
[% IF (frameworksloo.label == "Default") && (setup=="Basic") %] |
96 |
<input type="hidden" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" /> |
97 |
[% ELSE %] |
98 |
<input type="checkbox" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" /> |
99 |
[% END %] |
100 |
[% framework.fwkdescription %] |
101 |
<em>([% framework.fwkname %])</em> |
102 |
</label> |
103 |
</div> |
104 |
<hr /> |
105 |
[% END # / FOREACH framework %] |
106 |
[% END # / FOREACH frameworksloo %] |
107 |
[% END # / IF frameworkdsloop %] |
75 |
|
108 |
|
76 |
function Hide(link) |
109 |
<h2>Other data</h2> |
77 |
{ |
|
|
78 |
// Toggle the display of a given element on the page. |
79 |
// |
80 |
subfield = document.getElementById('bloc'+link); |
81 |
var initstyle = subfield.style.display; |
82 |
if (initstyle == 'block') subfield.style.display = 'none' ; |
83 |
if (initstyle == 'none') subfield.style.display = 'block' ; |
84 |
} |
85 |
|
110 |
|
86 |
//]]> |
111 |
[% IF ( en_sample_data ) %] |
87 |
</script> |
112 |
<h4><span class="error">No sample data and settings are available for your language. |
88 |
[% END %] |
113 |
Defaulting to the samples supplied for English (en)<span></h4> |
|
|
114 |
[% END %] |
89 |
|
115 |
|
90 |
<div class="container-fluid"> |
116 |
[% FOREACH levelloo IN levelloop %] |
91 |
<div class="row"> |
117 |
<h4>[% levelloo.label %]</h4> |
92 |
<div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2"> |
|
|
93 |
<h1 id="logo"><a href="#">Koha</a></h1> |
94 |
[% IF ( finish ) %] |
95 |
<h2>Web installer › Installation complete</h2> |
96 |
<p>If this page does not redirect in 10 seconds, click <a href="/cgi-bin/koha/installer/onboarding.pl">Start onboarding process</a>.</p> |
97 |
[% END %] |
98 |
|
118 |
|
99 |
[% IF ( choosemarc ) %] |
119 |
[% IF (setup == "Basic" && levelloo.label == "Optional") %] |
100 |
<h2 align="center">Select your MARC flavor</h2> |
120 |
<p id="selectall"><a href="#">Select all sample data</a></p> |
101 |
<form name="frameworkselection" method="post" action="install.pl"> |
|
|
102 |
<input type="hidden" name="step" value="3" /> |
103 |
<input type="hidden" name="op" value="selectframeworks" /> |
104 |
<p> |
105 |
[% FOREACH flavourloo IN flavourloop %] |
106 |
<div> |
107 |
[% IF ( flavourloo.checked ) %] |
108 |
<input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/> |
109 |
[% ELSE %] |
110 |
<input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/> |
111 |
[% END %] |
112 |
</div> |
113 |
[% END %] |
114 |
</p> |
115 |
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p> |
116 |
</form> |
117 |
[% END %] |
118 |
[% IF ( selectframeworks ) %] |
119 |
<h2>Web installer › [% setup %] setup › Selecting default settings</h2> |
120 |
<script type="text/javascript"> |
121 |
var linklabel = _("Select all sample data"); |
122 |
document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>'); |
123 |
</script> |
124 |
<form name="frameworkselection" method="post" action="install.pl"> |
125 |
<input type="hidden" name="step" value="3" /> |
126 |
<input type="hidden" name="op" value="addframeworks" /> |
127 |
[% IF ( frameworksloop ) %] |
128 |
<h2>MARC frameworks: [% marcflavour %]</h2> |
129 |
[% IF ( en_marc_frameworks ) %] |
130 |
<h4><span class="error">No MARC frameworks are available for your language. |
131 |
Defaulting to the frameworks supplied for English (en)<span></h4> |
132 |
[% END %] |
133 |
[% FOREACH frameworksloo IN frameworksloop %] |
134 |
<div> |
135 |
<h3>[% frameworksloo.label %]</h3> |
136 |
[% FOREACH framework IN frameworksloo.frameworks %] |
137 |
<table style="border:1px;vertical-align:top;"> |
138 |
<tr> |
139 |
<td style="vertical-align:top;"> |
140 |
<label> |
141 |
[% IF ( framework.checked ) %] |
142 |
<input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" /> |
143 |
[% ELSE %] |
144 |
<input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" /> |
145 |
[% END %] |
146 |
</label> |
147 |
</td> |
148 |
<td> |
149 |
<label for="[% framework.fwkname %]"> |
150 |
[% framework.fwkdescription %] |
151 |
<em>([% framework.fwkname %])</em> |
152 |
</label> |
153 |
</td> |
154 |
</table> |
155 |
[% END %] |
121 |
[% END %] |
156 |
</div> |
|
|
157 |
[% END %] |
158 |
<h2>Other data</h2> |
159 |
[% END %] |
160 |
[% IF ( en_sample_data ) %] |
161 |
<h4><span class="error">No sample data and settings are available for your language. |
162 |
Defaulting to the samples supplied for English (en)<span></h4> |
163 |
[% END %] |
164 |
[% FOREACH levelloo IN levelloop %] |
165 |
<div> |
166 |
<h3>[% levelloo.label %]</h3> |
167 |
[% FOREACH framework IN levelloo.frameworks %] |
168 |
<table style="border:1px;vertical-align:top;"> |
169 |
<tr> |
170 |
<td style="vertical-align:top;"> |
171 |
[% IF ( framework.checked ) %] |
172 |
<input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" /> |
173 |
[% ELSE %] |
174 |
<input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" /> |
175 |
[% END %] |
176 |
</td> |
177 |
<td> |
178 |
<label for="[% framework.fwkname %]"> |
179 |
[% framework.fwkdescription %] |
180 |
<em>([% framework.fwkname %])</em> |
181 |
</label> |
182 |
</td> |
183 |
</tr> |
184 |
</table> |
185 |
[% END %] |
186 |
</div> |
187 |
[% END %] |
188 |
<p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete, |
189 |
please be patient.</p> |
190 |
<p><input type="submit" value="Import" class="btn btn-primary" /></p> |
191 |
</p> |
192 |
</form> |
193 |
[% END %] |
194 |
|
122 |
|
195 |
[% IF ( addframeworks ) %] |
123 |
[% FOREACH framework IN levelloo.frameworks %] |
196 |
<h2>Web installer › Default data loaded</h2> |
124 |
<div class="checkbox"> |
197 |
[% FOREACH lis IN list %] |
125 |
<label for="[% framework.fwkname %]"> |
198 |
<h3>[% lis.level %] data added</h3> |
126 |
[% IF (levelloo.label == "Default" ) && (setup=="Basic")%] |
|
|
127 |
<input type="hidden" name="framework" value="[% framework.fwkfile %]" id="[%framework.fwkname %]" /> |
128 |
[% ELSE %] |
129 |
<input type="checkbox" name="framework" value="[%framework.fwkfile %]" id="[%framework.fwkname%]"/> |
130 |
[% END %] |
131 |
[% framework.fwkdescription %] |
132 |
<em>([% framework.fwkname %])</em> |
133 |
</label> |
134 |
</div> <!-- /div.checkbox --> |
135 |
[% END # / FOREACH framework %] |
136 |
[% END # / FOREACH levelloo %] |
137 |
|
138 |
<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> |
139 |
|
140 |
<p><input type="submit" value="Import" class="btn btn-primary" /></p> |
141 |
</form> |
142 |
[% END # / IF selectframeworks %] |
143 |
|
144 |
[% IF ( addframeworks ) %] |
145 |
<h2>Web installer › Default data loaded</h2> |
146 |
[% FOREACH lis IN list %] |
147 |
<h3>[% lis.level FILTER ucfirst %] data added</h3> |
199 |
<ul> |
148 |
<ul> |
200 |
[% FOREACH fwklis IN lis.fwklist %] |
149 |
[% FOREACH fwklis IN lis.fwklist %] |
201 |
<li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li> |
150 |
<li> |
|
|
151 |
[% fwklis.fwkname %] |
152 |
[% IF ( fwklis.error ) %]<p class="bg-danger">[% fwklis.error %]</p>[% END %] |
153 |
</li> |
202 |
[% END %] |
154 |
[% END %] |
203 |
</ul> |
155 |
</ul> |
204 |
[% END %] |
156 |
[% END %] |
205 |
<h3>All done!</h3> |
157 |
|
206 |
<p>Installation complete.<br /> |
158 |
<h3>All done!</h3> |
207 |
<p> |
159 |
<p>Installation complete.</p> |
208 |
You can help the Koha community by sharing your statistics with us. |
160 |
<form action="/cgi-bin/koha/installer/install.pl" method="post" name="finish"> |
209 |
<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. |
161 |
<p> |
210 |
</p> |
162 |
You can help the Koha community by sharing your statistics with us. |
211 |
<p>Click on 'Set up Koha with the onboarding tool' to complete and load the Koha onboarding tool. |
163 |
</p> |
212 |
<form name="finish"> |
164 |
<p> |
|
|
165 |
If you wish to share some of your data, please enable the functionality in the "Share your usage statistics" section of the Administration module. |
166 |
</p> |
167 |
|
168 |
<input type="hidden" name="step" value="3" /> |
169 |
<input type="hidden" name="op" value="finish" /> |
170 |
<p> |
171 |
<input value="Set up some of Koha's basic requirements" class="btn btn-primary" type="submit" /> |
172 |
</p> |
173 |
</form> |
174 |
|
175 |
[% END # / IF addframeworks %] |
176 |
|
177 |
[% IF ( importdatastructure ) %] |
178 |
[% IF ( error ) %] |
179 |
<p>The following error occurred while importing the database structure:</p> |
180 |
<div class="alert alert-warning"><p>[% error %] </p></div> |
181 |
<p>Please contact your system administrator</p> |
182 |
[% ELSE %] |
183 |
<h2>Web installer › Success</h2> |
184 |
<div class="alert alert-success"><p>Database tables created</p></div> |
185 |
<form action="install.pl" method="post"> |
213 |
<input type="hidden" name="step" value="3" /> |
186 |
<input type="hidden" name="step" value="3" /> |
214 |
<input type="hidden" name="op" value="finish" /> |
187 |
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p> |
215 |
<p> <input value="Set up Koha with the onboarding tool" class="btn btn-primary" type="submit" /> </p> |
|
|
216 |
</form> |
188 |
</form> |
217 |
</p> |
189 |
[% END %] |
218 |
</p> |
190 |
[% END # / IF importdatastructure %] |
219 |
[% END %] |
|
|
220 |
|
191 |
|
221 |
[% IF ( importdatastructure ) %] |
192 |
[% IF ( proposeimport ) %] |
222 |
[% IF ( error ) %] |
193 |
<h2>Web installer › Set up database</h2> |
223 |
<p>The following error occurred while importing the database structure:</p> |
194 |
<p>Now we're ready to create the database tables and fill them with some default data.</p> |
224 |
<p class="error">[% error %] </p> |
195 |
<form action="install.pl" method="post"> |
225 |
<p>Please contact your system administrator</p> |
|
|
226 |
[% ELSE %] |
227 |
<h2>Web installer › Success</h2> |
228 |
<ul> |
229 |
<li>Database tables created</li> |
230 |
</ul> |
231 |
<form action="install.pl"> |
232 |
<input type="hidden" name="step" value="3" /> |
196 |
<input type="hidden" name="step" value="3" /> |
|
|
197 |
<input type="hidden" name="op" value="importdatastructure" /> |
233 |
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p> |
198 |
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p> |
234 |
</form> |
199 |
</form> |
235 |
[% END %] |
200 |
[% END # / proposeimport %] |
236 |
[% END %] |
201 |
|
237 |
|
202 |
[% IF ( default ) %] |
238 |
[% IF ( proposeimport ) %] |
203 |
[% IF ( upgrading ) %] |
239 |
<h2>Web installer › Set up database</h2> |
204 |
<h2>Web installer › Update database</h2> |
240 |
<p>Now we're ready to create the database tables and fill them with some default data.</p> |
205 |
<p>We are upgrading from Koha [% dbversion %] to [% kohaversion %]</p> |
241 |
<form action="install.pl"> |
206 |
<p><a href="install.pl?step=3&op=updatestructure" class="btn btn-primary">Update your database</a></p> |
242 |
<input type="hidden" name="step" value="3" /> |
207 |
[% ELSE %] |
243 |
<input type="hidden" name="op" value="importdatastructure" /> |
208 |
<h2>Web installer › Install basic configuration settings</h2> |
244 |
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p> |
209 |
<p>We are ready to do some basic configuration.</p> |
245 |
</form> |
210 |
<p> <a href="install.pl?step=3&op=choosemarc" class="btn btn-primary">Continue to the next step</a> </p> |
246 |
[% END %] |
211 |
[% END %] |
247 |
|
212 |
[% END # / IF default %] |
248 |
[% IF ( default ) %] |
|
|
249 |
[% IF ( upgrading ) %] |
250 |
<h2>Web installer › Update database</h2> |
251 |
<p> We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must update your database. |
252 |
<br> |
253 |
<a href="install.pl?step=3&op=updatestructure" class="button">Update your database</a> |
254 |
</p> |
255 |
[% ELSE %] |
256 |
<h2>Web installer › Install basic configuration settings</h2> |
257 |
<p>We are ready to do some basic configuration. Please install some basic configuration settings to continue the installation: |
258 |
<br> |
259 |
<br> |
260 |
<p> <a href="install.pl?step=3&op=choosemarc" class="btn btn-primary">Install basic configuration settings</a> </p> |
261 |
[% END %] |
262 |
[% END %] |
263 |
|
213 |
|
264 |
[% IF ( updatestructure ) %] |
214 |
[% IF ( updatestructure ) %] |
265 |
<div><h2 align="center">Updating database structure</h2> |
215 |
<h2>Updating database structure</h2> |
266 |
[% IF ( has_update_succeeds ) %] |
216 |
[% IF ( has_update_succeeds ) %] |
267 |
<p>Update report :</p> |
217 |
<p>Update report :</p> |
268 |
<ul> |
218 |
<ul> |
Lines 278-292
function Hide(link)
Link Here
|
278 |
<li class="update_error">[% update_error.line |html %]</li> |
228 |
<li class="update_error">[% update_error.line |html %]</li> |
279 |
[% END %] |
229 |
[% END %] |
280 |
</ul> |
230 |
</ul> |
281 |
[% END %] |
231 |
[% END %] |
282 |
[% UNLESS ( has_update_errors ) %] |
232 |
[% UNLESS ( has_update_errors ) %] |
283 |
<p>Everything went OK, update done.</p> |
233 |
<p>Everything went okay. Update done.</p> |
284 |
[% END %] |
234 |
[% END %] |
285 |
<a href="install.pl?step=3&op=finished" class="button">Continue to log in to Koha</a> |
235 |
<p><a href="install.pl?step=3&op=finished" class="btn btn-primary">Continue to log in to Koha</a></p> |
286 |
</div> |
236 |
[% END # / IF updatestructure %] |
287 |
[% END %] |
237 |
</div> <!-- / #installer-step3 --> |
288 |
</div> |
238 |
</div> <!-- / .row --> |
289 |
</div> |
239 |
|
290 |
</div> |
240 |
[% IF ( selectframeworks ) %] |
291 |
</body> |
241 |
<script type="text/javascript"> |
292 |
</html> |
242 |
$(document).ready(function(){ |
|
|
243 |
$("#selectall").on("click",function(e){ |
244 |
e.preventDefault(); |
245 |
$("input:checkbox").prop("checked", true); |
246 |
}); |
247 |
}); |
248 |
</script> |
249 |
[% END %] |
250 |
|
251 |
[% INCLUDE 'intranet-bottom.inc' %] |