Galen Charlton
5cd357e76c
This enhances the web installer so that messages from updatedatabase.pl will be displayed to the user running a database update. Messages printed to STDOUT will be displayed as the update report, while messages printed to STDERR will be displayed as update errors. This patch introduces a new module dependency, IPC::Cmd. IPC::Cmd lets one run an external program such as updatedatabase.pl and easily capture STDERR and STDOUT for further munging. IPC::Cmd is core in Perl 5.10 and stable in Perl 5.8. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
298 lines
11 KiB
Cheetah
298 lines
11 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha › Web Installer › Step 3</title>
|
|
<!--TMPL_IF Name="finish"--><meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl"><!--/TMPL_IF-->
|
|
<!-- TMPL_INCLUDE NAME="installer-doc-head-close.inc" -->
|
|
<div>
|
|
<h1 id="logo"><img alt="Koha" src="/intranet-tmpl/prog/img/koha.org-logo.gif" /> Web Installer › Step 3</h1>
|
|
|
|
<!--TMPL_IF NAME="selectframeworks"-->
|
|
<script language="JavaScript">
|
|
<!--
|
|
|
|
var sURL = unescape(window.location.pathname);
|
|
|
|
function doLoad()
|
|
{
|
|
// the timeout value should be the same as in the "refresh" meta-tag
|
|
setTimeout( "refresh()", 2*1000 );
|
|
}
|
|
|
|
function refresh(value)
|
|
{
|
|
// This version of the refresh function will cause a new
|
|
// entry in the visitor's history. It is provided for
|
|
// those browsers that only support JavaScript 1.0.
|
|
//
|
|
sURL=sURL+'?step=3&op=selectframeworks&fwklanguage='+value;
|
|
window.location.href = sURL;
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
|
|
<script language="JavaScript1.1">
|
|
<!--
|
|
function refresh(value)
|
|
{
|
|
// This version does NOT cause an entry in the browser's
|
|
// page view history. Most browsers will always retrieve
|
|
// the document from the web-server whether it is already
|
|
// in the browsers page-cache or not.
|
|
//
|
|
sURL=sURL+'?step=3&op=selectframeworks&fwklanguage='+value;
|
|
window.location.replace( sURL );
|
|
}
|
|
//-->
|
|
</script>
|
|
|
|
<script language="JavaScript1.2">
|
|
<!--
|
|
function refresh(value)
|
|
{
|
|
// This version of the refresh function will be invoked
|
|
// for browsers that support JavaScript version 1.2
|
|
//
|
|
|
|
// The argument to the location.reload function determines
|
|
// if the browser should retrieve the document from the
|
|
// web-server. In our example all we need to do is cause
|
|
// the JavaScript block in the document body to be
|
|
// re-evaluated. If we needed to pull the document from
|
|
// the web-server again (such as where the document contents
|
|
// change dynamically) we would pass the argument as 'true'.
|
|
//
|
|
sURL=sURL+'?step=3&op=selectframeworks&fwklanguage='+value;
|
|
window.location.replace( sURL );
|
|
}
|
|
//-->
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<script language="JavaScript">
|
|
function Hide(link) {
|
|
subfield = document.getElementById('bloc'+link);
|
|
var initstyle=subfield.style.display;
|
|
if (initstyle == 'block') subfield.style.display = 'none' ;
|
|
if (initstyle == 'none') subfield.style.display = 'block' ;
|
|
}
|
|
</script>
|
|
<!--/TMPL_IF-->
|
|
<!--TMPL_IF Name="finish"-->
|
|
<h1>Congratulations, Installation complete</h1>
|
|
<p>If this page does not redirect in 5 seconds, click <a href="/">here</a>.</p>
|
|
<!--/TMPL_IF-->
|
|
<!--TMPL_IF Name="choosemarc"-->
|
|
<h2 align="center">Select your MARC flavour</h2>
|
|
<form name="frameworkselection" method="post" action="install.pl">
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="op" value="selectframeworks" />
|
|
<p>
|
|
<!--TMPL_LOOP Name="flavourloop"-->
|
|
<div>
|
|
<!--TMPL_IF Name="checked"-->
|
|
<input type="radio" name="marcflavour" value="<!--TMPL_VAR Name="code"-->" checked /> <!--TMPL_VAR Name="label"--> <br/>
|
|
<!--TMPl_ELSE-->
|
|
<input type="radio" name="marcflavour" value="<!--TMPL_VAR Name="code"-->" /> <!--TMPL_VAR Name="label"--> <br/>
|
|
<!--/TMPL_IF-->
|
|
</div>
|
|
<!--/TMPL_LOOP-->
|
|
</p>
|
|
<p> Click Next to continue <input value="Next >>" type="submit" /></p>
|
|
</form>
|
|
<!--/TMPL_IF-->
|
|
|
|
<!--TMPL_IF Name="selectframeworks"-->
|
|
<h2 align="center">Selecting Default Settings</h2>
|
|
<form name="frameworkselection" method="post" action="install.pl">
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="op" value="addframeworks" />
|
|
|
|
<!--TMPL_IF Name="frameworksloop"-->
|
|
<h2>MARC Frameworks: <!--TMPL_VAR Name="marcflavour"--></h2>
|
|
<!-- TMPL_IF Name="en_marc_frameworks" -->
|
|
<h4><span class="error">No MARC frameworks are available for your language.
|
|
Defaulting to the frameworks supplied for English (en)<span></h4>
|
|
<!-- /TMPL_IF -->
|
|
<!--TMPL_LOOP Name="frameworksloop"-->
|
|
<div>
|
|
<h3><!--TMPL_VAR Name="label"--></h3>
|
|
<!--TMPL_LOOP Name="frameworks"-->
|
|
<table style="border:1px;vertical-align:top;">
|
|
<tr>
|
|
<td style="vertical-align:top;">
|
|
<!--TMPL_IF Name="checked"-->
|
|
<input type="checkbox" name="framework" value="<!--TMPL_VAR Name="fwkfile"-->" checked="checked" />
|
|
<!--TMPl_ELSE-->
|
|
<input type="checkbox" name="framework" value="<!--TMPL_VAR Name="fwkfile"-->" />
|
|
<!--/TMPL_IF-->
|
|
</td>
|
|
<td>
|
|
<!--TMPL_VAR Name="fwkdescription"-->
|
|
<em>(<!--TMPL_VAR Name="fwkname"-->)</em>
|
|
</td>
|
|
</table>
|
|
<!--/TMPL_LOOP-->
|
|
</div>
|
|
</p>
|
|
<!--/TMPL_LOOP-->
|
|
<h2>Other data</h2>
|
|
<!--/TMPL_IF -->
|
|
<!-- TMPL_IF Name="en_sample_data" -->
|
|
<h4><span class="error">No sample data and settings are available for your language.
|
|
Defaulting to the samples supplied for English (en)<span></h4>
|
|
<!-- /TMPL_IF -->
|
|
<!--TMPL_LOOP Name="levelloop"-->
|
|
<div>
|
|
<h3><!--TMPL_VAR Name="label"--></h3>
|
|
<!--TMPL_LOOP Name="frameworks"-->
|
|
<table style="border:1px;vertical-align:top;">
|
|
<tr>
|
|
<td style="vertical-align:top;">
|
|
<!--TMPL_IF Name="checked"-->
|
|
<input type="checkbox" name="framework" value="<!--TMPL_VAR Name="fwkfile"-->" checked="checked" />
|
|
<!--TMPl_ELSE-->
|
|
<input type="checkbox" name="framework" value="<!--TMPL_VAR Name="fwkfile"-->" />
|
|
<!--/TMPL_IF-->
|
|
</td>
|
|
<td>
|
|
<!--TMPL_VAR Name="fwkdescription"-->
|
|
<em>(<!--TMPL_VAR Name="fwkname"-->)</em>
|
|
</td>
|
|
</table>
|
|
<!--/TMPL_LOOP-->
|
|
</div>
|
|
</p>
|
|
<!--/TMPL_LOOP-->
|
|
<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>
|
|
<p><input type="submit" value="import" />
|
|
</p>
|
|
</form>
|
|
</p>
|
|
<!--/TMPL_IF-->
|
|
|
|
|
|
<!--TMPL_IF Name="addframeworks"-->
|
|
<!--TMPL_LOOP Name="list"-->
|
|
<h3><!--TMPL_VAR Name="level"--> data added</h3>
|
|
<ul>
|
|
<!--TMPL_LOOP Name="fwklist"-->
|
|
<li><!--TMPL_VAR Name="fwkname"--><!--TMPL_IF Name="error"--><br /><span class="error"><!--TMPL_VAR Name="error"--></span><!--/TMPL_IF--> </li>
|
|
<!--/TMPL_LOOP-->
|
|
</ul>
|
|
<!--/TMPL_LOOP-->
|
|
<h2>Choose indexing engine</h2>
|
|
<p>Searching Koha's bibliographic and authorities databases can be accomplished in two ways:
|
|
Koha can utilize a textual index engine (Zebra) or use its own internal indexing scheme (NoZebra).
|
|
</p>
|
|
<p>You can change your selection after installation and re-index accordingly.</p>
|
|
<h3>Zebra</h3>
|
|
<ul>
|
|
<li>Is highly scalable (can scale to tens of millions of bibliographic records. Examples of
|
|
Zebra Koha installations include:
|
|
http://catalog.ccfls.org/cgi-bin/koha/opac-main.pl or
|
|
http://www.mediathequeouestprovence.fr/)
|
|
</li>
|
|
<li>Native support for Z39.50 and SRU servers for bibliographic and authority data</li>
|
|
<li>Support for field-weighting, relevance ranking, truncation, stemming</li>
|
|
<li>Arbitrarily complex queries</li>
|
|
<li>Can be complex to configure and maintain</li>
|
|
</ul>
|
|
<h3>NoZebra (internal Koha indexes)</h3>
|
|
<ul>
|
|
<li>Simple to configure and maintain</li>
|
|
<li>Hasn't been tested with data sets larger than 100,000 records</li>
|
|
<li>Does not provide a public (external) z3950 server</li>
|
|
</ul>
|
|
<p>Note that, if you choose "Zebra", you must configure Zebra before your catalog searching will work)</p>
|
|
<h3>Please Choose:</h3>
|
|
<form action="install.pl">
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="op" value="SetIndexingEngine" />
|
|
<p><input type="radio" name="NoZebra" value="1" />Nozebra: my catalog is not that large and I want something simple to setup/maintain</p>
|
|
<p><input type="radio" name="NoZebra" value="0" />Zebra: I have a large catalog, I understand I must configure Zebra after the installation has completed</p>
|
|
<input type="submit" value="Choose" /></form>
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF name="SetIndexingEngine" -->
|
|
<p>Installation complete.<br />
|
|
<p>Click on Finish to complete and load the Koha Staff Interface.
|
|
<form name="finish">
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="op" value="finish" />
|
|
<input type="submit" value="Finish" /></form>
|
|
</p>
|
|
</p>
|
|
<!--/TMPL_IF-->
|
|
|
|
|
|
<!--TMPL_IF Name="importdatastructure"-->
|
|
<!--TMPL_IF Name="error"-->
|
|
<p>The following error occurred while importing the database structure:</p>
|
|
<p class="error"><!-- TMPL_VAR NAME="error" --> </p>
|
|
<p>Please contact your system administrator</p>
|
|
<!-- TMPL_ELSE -->
|
|
<h2 align="center">Success</h2>
|
|
<ul>
|
|
<li>Database tables created</li>
|
|
</ul>
|
|
<form action="install.pl">
|
|
<input type="hidden" name="step" value="3" />
|
|
<p> Click Next to continue <input value="Next >>" type="submit" /></p>
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
<!--/TMPL_IF-->
|
|
|
|
|
|
<!--TMPL_IF Name="proposeimport"-->
|
|
<p>Now we're ready to create the database tables and fill them with some default data.</p>
|
|
<form action="install.pl">
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="op" value="importdatastructure" />
|
|
<p> Click Next to continue <input value="Next >>" type="submit" /></p>
|
|
</form>
|
|
<!--/TMPL_IF-->
|
|
|
|
|
|
<!--TMPL_IF Name="default"-->
|
|
<!-- TMPL_IF name="upgrading" -->
|
|
<p>
|
|
We are upgrading from Koha <!-- TMPL_VAR name="dbversion" --> to <!-- TMPL_VAR name="kohaversion" -->, you must <a href="install.pl?step=3&op=updatestructure" class="button">update your database</a>
|
|
</p>
|
|
<!-- TMPL_ELSE -->
|
|
<p>We are ready to do some basic configuration. Please
|
|
<a href="install.pl?step=3&op=choosemarc" class="button">install basic configuration settings</a>
|
|
to continue the installation.
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!--/TMPL_IF-->
|
|
|
|
|
|
|
|
<!--TMPL_IF Name="updatestructure"-->
|
|
<div><h2 align="center">Updating database structure</h2>
|
|
<!-- TMPL_IF NAME="has_update_succeeds" -->
|
|
<p>Update report :</p>
|
|
<ul>
|
|
<!-- TMPL_LOOP NAME="update_report" -->
|
|
<li><!-- TMPL_VAR NAME="line" ESCAPE="html" --></li>
|
|
<!-- /TMPL_LOOP -->
|
|
</ul>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="has_update_errors" -->
|
|
<p>Update errors :</p>
|
|
<ul>
|
|
<!-- TMPL_LOOP NAME="update_errors" -->
|
|
<li class="update_error"><!-- TMPL_VAR NAME="line" ESCAPE="html" --></li>
|
|
<!-- /TMPL_LOOP -->
|
|
</ul>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_UNLESS NAME="has_update_errors" -->
|
|
<p>Everything went OK, update done.</p>
|
|
<!-- /TMPL_UNLESS -->
|
|
<a href="install.pl?step=3&op=finished" class="button">Continue to log in to Koha</a>
|
|
</div>
|
|
<!--/TMPL_IF-->
|
|
|
|
</body>
|
|
</html>
|