Merge remote-tracking branch 'origin/new/bug_7016'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / installer / step3.tt
1 [% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Web installer &rsaquo; 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' %]
4 <div>
5 <h1 id="logo"><img alt="Koha" src="/intranet-tmpl/prog/img/koha.org-logo.gif" /> Web installer &rsaquo; Step 3</h1>
6
7 [% IF ( selectframeworks ) %]
8     <script language="JavaScript">
9     <!--
10     
11     var surl = unescape(window.location.pathname);
12     
13     function doLoad()
14     {
15         // the timeout value should be the same as in the "refresh" meta-tag
16         setTimeout( "refresh()", 2*1000 );
17     }
18     
19     function refresh(value)
20     {
21         //  This version of the refresh function will cause a new
22         //  entry in the visitor's history.  It is provided for
23         //  those browsers that only support JavaScript 1.0.
24         //
25         surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value;
26         window.location.href = surl;
27     }
28     
29     //-->
30     </script>
31     
32     <script language="JavaScript1.1">
33     <!--
34     function refresh(value)
35     {
36         //  This version does NOT cause an entry in the browser's
37         //  page view history.  Most browsers will always retrieve
38         //  the document from the web-server whether it is already
39         //  in the browsers page-cache or not.
40         //  
41         surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value;
42         window.location.replace( surl );
43     }
44     //-->
45     </script>
46     
47     <script language="JavaScript1.2">
48     <!--
49     function refresh(value)
50     {
51         //  This version of the refresh function will be invoked
52         //  for browsers that support JavaScript version 1.2
53         //
54         
55         //  The argument to the location.reload function determines
56         //  if the browser should retrieve the document from the
57         //  web-server.  In our example all we need to do is cause
58         //  the JavaScript block in the document body to be
59         //  re-evaluated.  If we needed to pull the document from
60         //  the web-server again (such as where the document contents
61         //  change dynamically) we would pass the argument as 'true'.
62         //  
63         surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value;
64         window.location.replace( surl );
65     }
66     //-->
67     </script>
68     </head>
69     <body>
70     <script language="JavaScript">
71     function Hide(link) {
72             subfield = document.getElementById('bloc'+link);
73         var initstyle=subfield.style.display;
74             if (initstyle == 'block') subfield.style.display = 'none' ;
75             if (initstyle == 'none') subfield.style.display = 'block' ;
76     }
77     </script>
78 [% END %]
79 [% IF ( finish ) %]
80     <h1>Congratulations, installation complete</h1>
81     <p>If this page does not redirect in 5 seconds, click <a href="/">here</a>.</p> 
82 [% END %]
83 [% IF ( choosemarc ) %]
84     <h2 align="center">Select your MARC flavor</h2>
85     <form name="frameworkselection" method="post" action="install.pl">   
86     <input type="hidden" name="step" value="3" />
87     <input type="hidden" name="op" value="selectframeworks" />
88     <p>  
89     [% FOREACH flavourloo IN flavourloop %]
90     <div>
91             [% IF ( flavourloo.checked ) %]
92                 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/>
93             [% ELSE %]
94                 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/>
95             [% END %]
96     </div>
97     [% END %]
98     </p>
99     <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
100     </form>
101 [% END %]
102
103 [% IF ( selectframeworks ) %]
104     <h2 align="center">Selecting Default Settings</h2>
105     <form name="frameworkselection" method="post" action="install.pl">
106     <input type="hidden" name="step" value="3" />
107     <input type="hidden" name="op" value="addframeworks" />
108     
109     [% IF ( frameworksloop ) %]
110     <h2>MARC frameworks: [% marcflavour %]</h2>
111     [% IF ( en_marc_frameworks ) %]
112         <h4><span class="error">No MARC frameworks are available for your language.  
113                 Defaulting to the frameworks supplied for English (en)<span></h4>
114     [% END %]
115     [% FOREACH frameworksloo IN frameworksloop %]
116     <div>
117     <h3>[% frameworksloo.label %]</h3>
118     [% FOREACH framework IN frameworksloo.frameworks %]
119         <table style="border:1px;vertical-align:top;">
120         <tr>
121         <td style="vertical-align:top;">
122             [% IF ( framework.checked ) %]
123                 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" />
124             [% ELSE %]
125                 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" />
126             [% END %]
127         </td>
128         <td>
129             [% framework.fwkdescription %]
130             <em>([% framework.fwkname %])</em>
131         </td>
132         </table>
133     [% END %]
134     </div>
135     </p>
136     [% END %]
137     <h2>Other data</h2>
138     [% END %]
139     [% IF ( en_sample_data ) %]
140         <h4><span class="error">No sample data and settings are available for your language.  
141                 Defaulting to the samples supplied for English (en)<span></h4>
142     [% END %]
143     [% FOREACH levelloo IN levelloop %]
144     <div>
145     <h3>[% levelloo.label %]</h3>
146     [% FOREACH framework IN levelloo.frameworks %]
147         <table style="border:1px;vertical-align:top;">
148         <tr>
149         <td style="vertical-align:top;">
150             [% IF ( framework.checked ) %]
151                 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" />
152             [% ELSE %]
153                 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" />
154             [% END %]
155         </td>
156         <td>
157             [% framework.fwkdescription %]
158             <em>([% framework.fwkname %])</em>
159         </td>
160         </table>
161     [% END %]
162     </div>
163     </p>
164     [% END %]
165     <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
166     please be patient.</p>
167     <p><input type="submit" value="import" />
168     </p>
169     </form>
170     </p>
171 [% END %]
172
173
174 [% IF ( addframeworks ) %]
175     [% FOREACH lis IN list %]
176     <h3>[% lis.level %] data added</h3>
177     <ul>
178     [% FOREACH fwklis IN lis.fwklist %]
179         <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
180     [% END %]
181     </ul>
182     [% END %]
183     <h3>All done!</h3>
184     <p>Installation complete.<br />
185         <p>Click on 'Finish' to complete and load the Koha Staff Interface.
186         <form name="finish">
187         <input type="hidden" name="step" value="3" />
188         <input type="hidden" name="op" value="finish" />
189         <input type="submit" value="Finish" /></form>
190         </p>
191     </p>
192 [% END %]
193
194
195 [% IF ( importdatastructure ) %]
196     [% IF ( error ) %]
197         <p>The following error occurred while importing the database structure:</p>
198         <p class="error">[% error %] </p>
199         <p>Please contact your system administrator</p>
200     [% ELSE %]
201         <h2 align="center">Success</h2>
202         <ul>
203         <li>Database tables created</li>
204         </ul>
205         <form action="install.pl">
206         <input type="hidden" name="step" value="3" />
207             <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
208         </form>
209     [% END %]
210 [% END %]
211
212
213 [% IF ( proposeimport ) %]
214     <p>Now we're ready to create the database tables and fill them with some default data.</p>
215     <form action="install.pl">
216     <input type="hidden" name="step" value="3" />
217     <input type="hidden" name="op" value="importdatastructure" />
218     <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
219     </form>
220 [% END %]
221
222
223 [% IF ( default ) %]
224     [% IF ( upgrading ) %]
225         <p>
226             We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must <a href="install.pl?step=3&amp;op=updatestructure" class="button">update your database</a>
227         </p>
228     [% ELSE %]
229         <p>We are ready to do some basic configuration. Please 
230             <a href="install.pl?step=3&amp;op=choosemarc" class="button">install basic configuration settings</a>
231             to continue the installation.
232         </p>
233     [% END %]
234 [% END %]
235
236
237
238 [% IF ( updatestructure ) %]
239   <div><h2 align="center">Updating database structure</h2>
240   [% IF ( has_update_succeeds ) %]
241   <p>Update report :</p>
242     <ul>
243       [% FOREACH update_repor IN update_report %]
244           <li>[% update_repor.line |html %]</li>
245       [% END %] 
246     </ul>
247   [% END %]
248   [% IF ( has_update_errors ) %]
249   <p>Update errors :</p>
250     <ul>
251       [% FOREACH update_error IN update_errors %]
252           <li class="update_error">[% update_error.line |html %]</li>
253       [% END %] 
254     </ul>
255   [% END %]
256  [% UNLESS ( has_update_errors ) %]
257     <p>Everything went OK, update done.</p>
258   [% END %]
259 <a href="install.pl?step=3&amp;op=finished" class="button">Continue to log in to Koha</a>
260   </div>
261 [% END %]
262
263 </body>
264 </html>