fix for 525 (If itemtype is not set, we get a broken more detail page) and translation to french
This commit is contained in:
parent
ee79c36070
commit
02381a2301
3 changed files with 96 additions and 31 deletions
|
@ -128,5 +128,22 @@ if ($res && $res2 eq 10 && $field eq "branches") {
|
|||
$total++;
|
||||
}
|
||||
|
||||
# checks that itemtypes & branches tables are not empty
|
||||
$sth = $dbh->prepare("select count(*) from itemtypes");
|
||||
$sth->execute;
|
||||
($res) = $sth->fetchrow;
|
||||
unless ($res) {
|
||||
$template->param(itemtypes_empty =>1);
|
||||
$total++;
|
||||
}
|
||||
|
||||
$sth = $dbh->prepare("select count(*) from branches");
|
||||
$sth->execute;
|
||||
($res) = $sth->fetchrow;
|
||||
unless ($res) {
|
||||
$template->param(branches_empty =>1);
|
||||
$total++;
|
||||
}
|
||||
|
||||
$template->param(total => $total);
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
|
|
|
@ -33,6 +33,18 @@
|
|||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="itemtypes_empty">
|
||||
<tr>
|
||||
<td><b>itemtypes table empty</b></td>
|
||||
<td>the itemtypes table is empty. It must contain at least 1 value</td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>itemtypes table filled with at least 1 value</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="itemtype">
|
||||
<tr>
|
||||
<td><b>itemtype NOT mapped</b></td>
|
||||
|
@ -47,6 +59,18 @@
|
|||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="branches_empty">
|
||||
<tr>
|
||||
<td><b>branch table empty</b></td>
|
||||
<td>the branch table is empty. It must contain at least 1 value !</td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>branch table filled with at least 1 value</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="branch">
|
||||
<tr>
|
||||
<td><b>homebranch NOT mapped</b></td>
|
||||
|
|
|
@ -8,96 +8,120 @@
|
|||
<TMPL_IF name="itemnum">
|
||||
<tr>
|
||||
<td><b>itemnum</b></td>
|
||||
<td><li>The field itemnum MUST be mapped </li>
|
||||
<li>The correspounding subfield MUST be in with -1 (ignore) tab</td>
|
||||
<td><li>Le champ "itemnum" DOIT être connecté à un champs MARC </li>
|
||||
<li>Le sous champ correspondant DOIT être dans le "tab" -1 (ignore)</td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>itemnum : the field itemnumber is mapped to a field in tab -1</i></td>
|
||||
<td><i>itemnum : le champ est connecté et dans le tab -1 (ignore)</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="itemfields">
|
||||
<tr>
|
||||
<td><b>item fields</b></td>
|
||||
<td>ALL items fields MUST :<br/>
|
||||
<li>be mapped to the same tag,</li>
|
||||
<li>and they must all be in the 10 (items) tab</li></td>
|
||||
<td><b>champ item</b></td>
|
||||
<td>TOUS les sous champs des exemplaires (items) DOIVENT :<br/>
|
||||
<li>être reliés à 1 seul champ MARC (995 à priori pour l'UNIMARC),</li>
|
||||
<li>et ils doivent être dans le "tab" 10 (items)</li></td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>All item fields are in the same tag and in item tab</i></td>
|
||||
<td><i>Tous les sous-champs des exemplaires (items) sont dans le même champ et dans le tab 10 (items)</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="itemtypes_empty">
|
||||
<tr>
|
||||
<td><b>Table itemtypes vide</b></td>
|
||||
<td>La table itemtypes est vide. Elle doit contenir au moins 1 entrée</td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>la table itemtypes contient 1 entrée au moins</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="itemtype">
|
||||
<tr>
|
||||
<td><b>itemtype NOT mapped</b></td>
|
||||
<td>the biblioitems.itemtype field MUST :<br/>
|
||||
<li>be mapped to a MARC subfield, </li>
|
||||
<li>the correspounding subfield MUST have authorised_value=itemtype</li></td>
|
||||
<td><b>itemtype NON connecté</b></td>
|
||||
<td>Le champ biblioitems.itemtype DOIT :<br/>
|
||||
<li>être connecté à un sous-champ MARC</li>
|
||||
<li>Le sous champ correspondant DOIT avoir authorised_value=itemtype</li></td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>biblioitems.itemtype defined</i></td>
|
||||
<td><i>biblioitems.itemtype défini</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="branches_empty">
|
||||
<tr>
|
||||
<td><b>table branch est vide</b></td>
|
||||
<td>La table "branches" est vide. Elle doit contenir au moins 1 entrée</td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>La table "branches" contient au moins 1 entrée</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="branch">
|
||||
<tr>
|
||||
<td><b>branch NOT mapped</b></td>
|
||||
<td>the items.homebranch field MUST :<br/>
|
||||
<li>be mapped to a MARC subfield,</li>
|
||||
<li>the correspounding subfield MUST have authorised value=branch</li></td>
|
||||
<td><b>branch NON connecté</b></td>
|
||||
<td>le champ Koha items.homebranch field DOIT :<br/>
|
||||
<li>être connecté à un sous-champ MARC,</li>
|
||||
<li>Le sous-champ correspondant DOIT avec authorised value=branch</li></td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>homebranch defined</i></td>
|
||||
<td><i>homebranch défini</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="holdingbranch">
|
||||
<tr>
|
||||
<td><b>holdingbranch NOT mapped</b></td>
|
||||
<td>the items.holdingbranch field MUST :<br/>
|
||||
<li>be mapped to a MARC subfield, </li>
|
||||
<li>the correspounding subfield MUST have authorised value=branch</li></td>
|
||||
<td><b>holdingbranch NON connecté</b></td>
|
||||
<td>le champ Koha items.holdingbranch field DOIT :<br/>
|
||||
<li>être connecté à un sous-champ MARC,</li>
|
||||
<li>Le sous-champ correspondant DOIT avec authorised value=branch</li></td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>holdingbranch defined</i></td>
|
||||
<td><i>holdingbranch défini</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="biblionumber">
|
||||
<tr>
|
||||
<td><b>biblio and biblionumber</b></td>
|
||||
<td>The biblio.biblionumber and biblioitems.biblioitemnumber fields MUST :<br/>
|
||||
<li>be mapped to a MARC subfield,</li>
|
||||
<li>be in the SAME tag (for example : 090$a and 090$b)</li>
|
||||
<li>be in tab -1</li></td>
|
||||
<td><b>biblio et biblionumber</b></td>
|
||||
<td>Les champs Koha biblio.biblionumber et biblioitems.biblioitemnumber DOIVENT :<br/>
|
||||
<li>être reliés à un sous-champ MARC</li>
|
||||
<li>être connectés au même champ marc(par exemple : 090$a et 090$b)</li>
|
||||
<li>Etre dans le "tab" -1</li></td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td>OK</td>
|
||||
<td><i>biblionumber and biblioitemnumber mapped correctly</i></td>
|
||||
<td><i>biblionumber et biblioitemnumber correctement définis</i></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
<!----------------------------------------------------------------------------------------------------------->
|
||||
<TMPL_IF name="total">
|
||||
<tr>
|
||||
<td><b>TOTAL</b></td>
|
||||
<td>You have <TMPL_VAR name="total"> error(s) in your MARC configuration. Please fix them before using koha</td>
|
||||
<td>Il y a <TMPL_VAR name="total"> erreurs dans votre configuration MARC. corrigez les avant d'utiliser Koha !!!</td>
|
||||
</tr>
|
||||
<TMPL_ELSE>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><b>Configuration OK, you don't have errors in your MARC parameters table</b></td>
|
||||
<td><b>Configuration OK, pas d'erreur dans les paramètres MARC</b></td>
|
||||
</tr>
|
||||
</TMPL_IF>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue