Merge remote branch 'kc/new/enh/bug_4449' into kcmaster
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / checkmarc.tmpl
index 2961955..48ba766 100644 (file)
@@ -1,18 +1,22 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha &rsaquo; System Administration &rsaquo; MARC Check &rsaquo;
-<!-- TMPL_IF name="total" --><!-- TMPL_VAR name="total" --> errors found<!-- TMPL_ELSE -->Configuration OK!<!-- /TMPL_IF --></title>
+<title>Koha &rsaquo; Administration &rsaquo; MARC Check
+<!-- TMPL_IF name="total" --> :<!-- TMPL_VAR name="total" --> errors found<!-- TMPL_ELSE --> : Configuration OK!<!-- /TMPL_IF --></title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+</head>
+<body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
+<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
-<!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; MARC Check
+<!-- TMPL_IF name="total" -->: <!-- TMPL_VAR name="total" --> errors found<!-- TMPL_ELSE --> : Configuration OK!<!-- /TMPL_IF --></div>
 
 <div id="doc3" class="yui-t2">
    
    <div id="bd">
        <div id="yui-main">
-       <div class="yui-b"><div class="yui-g">
+       <div class="yui-b">
 
-<h1>MARC Checking</h1>
+<h1>MARC Bibliographic Framework Test</h1>
 <table>
     <tr>
         <th>Test</th>
@@ -23,7 +27,7 @@
     <tr>
         <td>itemnum</td>
         <td><ul><li>The field itemnum MUST be mapped </li>
-            <li>The correspounding subfield MUST be in with -1 (ignore) tab</li></ul></td>
+            <li>The corresponding subfield MUST be in with -1 (ignore) tab</li></ul></td>
     </tr>
 <!-- TMPL_ELSE -->
     <tr>
@@ -63,7 +67,7 @@
         <td>itemtype NOT mapped</td>
         <td>the biblioitems.itemtype field MUST :<br />
             <ul><li>be mapped to a MARC subfield, </li>
-            <li>the correspounding subfield MUST have authorised_value=itemtype</li></ul></td>
+            <li>the corresponding subfield MUST have authorised_value=itemtype</li></ul></td>
     </tr>
 <!-- TMPL_ELSE -->
     <tr>
@@ -77,7 +81,7 @@
         <td>homebranch NOT mapped</td>
         <td>the items.homebranch field MUST :<br />
             <ul><li>be mapped to a MARC subfield,</li>
-            <li>the correspounding subfield MUST have authorised value=branches</li></ul></td>
+            <li>the corresponding subfield MUST have authorised value=branches</li></ul></td>
     </tr>
 <!-- TMPL_ELSE -->
     <tr>
@@ -91,7 +95,7 @@
         <td>holdingbranch NOT mapped</td>
         <td>the items.holdingbranch field MUST :<br />
             <ul><li>be mapped to a MARC subfield, </li>
-            <li>the correspounding subfield MUST have authorised value=branches</li></ul></td>
+            <li>the corresponding subfield MUST have authorised value=branches</li></ul></td>
     </tr>
 <!-- TMPL_ELSE -->
     <tr>
     </tr>
 <!-- /TMPL_IF -->
 <!-- -->
+<!-- TMPL_IF name="itemtypes_empty" -->
+    <tr>
+        <td>item type not defined</td>
+        <td>at least 1 item type must be defined</td>
+    </tr>
+<!-- TMPL_ELSE -->
+    <tr>
+        <td>OK</td>
+        <td>at least 1 item type defined</td>
+    </tr>
+<!-- /TMPL_IF -->
+<!-- -->
+<!-- TMPL_IF name="branches_empty" -->
+    <tr>
+        <td>branch not defined</td>
+        <td>at least 1 branch must be defined</td>
+    </tr>
+<!-- TMPL_ELSE --> 
+    <tr>
+        <td>OK</td>             
+        <td>at least 1 branch defined</td>
+    </tr>                                       
+<!-- /TMPL_IF -->
+<!-- -->
 <!-- TMPL_IF name="biblionumber" -->
     <tr>
         <td>biblio and biblionumber</td>
             <td>there is a null value in a frameworkcode. Check the following tables<br />
                 <li>select * from marc_subfield_structure where frameworkcode is NULL</li>
                 <li>select * from marc_tag_structure where frameworkcode is NULL</li>
-                <li>select * from marc_biblio where frameworkcode is NULL</li></td>
+            </td>
         </tr>
     <!-- TMPL_ELSE -->
         <tr>
         </tr>
     <!-- /TMPL_IF -->
 
+    <!-- TMPL_IF NAME="inconsistent_tabs" -->
+        <tr>
+            <td style="vertical-align:top;">subfields not in same tabs</td>
+            <td>Not all subfields for the following tags are in the same tab (or marked 'ignored').
+                <table>
+                    <tr>
+                        <th>Code</th>
+                        <th>Description</th>
+                        <th>Tag</th>
+                        <th>Tabs in use</th>
+                    </tr>
+                    <!-- TMPL_LOOP NAME="tab_info" -->
+                        <tr>
+                            <td><!-- TMPL_VAR NAME="frameworkcode" --></td>
+                            <!-- TMPL_IF NAME="frameworkcode" -->
+                                <td><!-- TMPL_VAR NAME="frameworktext" --></td>
+                            <!-- TMPL_ELSE -->
+                                <td>Default framework</td>
+                            <!-- /TMPL_IF -->
+                            <td><!-- TMPL_VAR NAME="tagfield" --></td>
+                            <td><!-- TMPL_VAR NAME="tabs" --></td>
+                        </tr>
+                    <!-- /TMPL_LOOP -->
+                </table>
+            </td>
+        </tr>
+    <!-- TMPL_ELSE -->
+        <tr>
+            <td>OK</td>
+            <td>all subfields for each tag are in the same tab (or ignored)</td>
+        </tr>
+    <!-- /TMPL_IF -->
+
+    <!-- TMPL_IF NAME="invalid_authtypecodes" -->
+        <tr>
+            <td style="vertical-align:top;">invalid authority types</td>
+            <td>Not all authority types referred to by the frameworks are defined.
+                <table>
+                    <tr>
+                        <th>Framework code</th>
+                        <th>Framework description</th>
+                        <th>Tag</th>
+                        <th>Subfield</th>
+                        <th>Invalid authority type</th>
+                    </tr>
+                    <!-- TMPL_LOOP NAME="authtypecode_info" -->
+                        <tr>
+                            <td><!-- TMPL_VAR NAME="frameworkcode" --></td>
+                            <!-- TMPL_IF NAME="frameworkcode" -->
+                                <td><!-- TMPL_VAR NAME="frameworktext" --></td>
+                            <!-- TMPL_ELSE -->
+                                <td>Default framework</td>
+                            <!-- /TMPL_IF -->
+                            <td><!-- TMPL_VAR NAME="tagfield" --></td>
+                            <td><!-- TMPL_VAR NAME="tagsubfield" --></td>
+                            <td><!-- TMPL_VAR NAME="authtypecode" --></td>
+                        </tr>
+                    <!-- /TMPL_LOOP -->
+                </table>
+            </td>
+        </tr>
+    <!-- TMPL_ELSE -->
+        <tr>
+            <td>OK</td>
+            <td>all authority types used in the frameworks are defined</td>
+        </tr>
+    <!-- /TMPL_IF -->
 <!-- -->
 <!-- TMPL_IF name="total" -->
     <tr>
 
 </div>
 </div>
+<div class="yui-b">
+<!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
+</div>
 </div>
-
-<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->