Bug 5917 : Swapping templates over
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / checkmarc.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Administration &rsaquo; MARC Check
3 [% IF ( total ) %] :[% total %] errors found[% ELSE %] : Configuration OK![% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body>
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'cat-search.inc' %]
9
10 <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
11 [% IF ( total ) %]: [% total %] errors found[% ELSE %] : Configuration OK![% END %]</div>
12
13 <div id="doc3" class="yui-t2">
14    
15    <div id="bd">
16         <div id="yui-main">
17         <div class="yui-b">
18
19 <h1>MARC Bibliographic Framework Test</h1>
20 <table>
21     <tr>
22         <th>Test</th>
23         <th>Result</th>
24     </tr>
25 <!-- -->
26 [% IF ( itemnum ) %]
27     <tr>
28         <td>itemnum</td>
29         <td><ul><li>The field itemnum MUST be mapped </li>
30             <li>The corresponding subfield MUST be in with -1 (ignore) tab</li></ul></td>
31     </tr>
32 [% ELSE %]
33     <tr>
34         <td>OK</td>
35         <td>itemnum : the field itemnumber is mapped to a field in tab -1</td>
36     </tr>
37 [% END %]
38 <!-- -->
39 [% IF ( itemfields ) %]
40     <tr>
41         <td>item fields</td>
42         <td>ALL items fields MUST :<br />
43             <ul><li>be mapped to the same tag,</li>
44             <li>and they must all be in the 10 (items) tab</li></ul></td>
45     </tr>
46 [% ELSE %]
47     <tr>
48         <td>OK</td>
49         <td>All item fields are in the same tag and in item tab</td>
50     </tr>
51 [% END %]
52 <!-- -->
53     [% IF ( itemtags ) %]
54         <tr>
55             <td>Item tag</td>
56             <td>There is more than 1 MARC tag related to items tab (10) : [% itemtags %]</td>
57         </tr>
58     [% ELSE %]
59         <tr>
60             <td>OK</td>
61             <td>Only 1 MARC tag mapped to items</td>
62         </tr>
63     [% END %]
64     <!--  -->
65 [% IF ( itemtype ) %]
66     <tr>
67         <td>itemtype NOT mapped</td>
68         <td>the biblioitems.itemtype field MUST :<br />
69             <ul><li>be mapped to a MARC subfield, </li>
70             <li>the corresponding subfield MUST have authorised_value=itemtype</li></ul></td>
71     </tr>
72 [% ELSE %]
73     <tr>
74         <td>OK</td>
75         <td>biblioitems.itemtype defined</td>
76     </tr>
77 [% END %]
78 <!-- -->
79 [% IF ( branch ) %]
80     <tr>
81         <td>homebranch NOT mapped</td>
82         <td>the items.homebranch field MUST :<br />
83             <ul><li>be mapped to a MARC subfield,</li>
84             <li>the corresponding subfield MUST have authorised value=branches</li></ul></td>
85     </tr>
86 [% ELSE %]
87     <tr>
88         <td>OK</td>
89         <td>homebranch defined</td>
90     </tr>
91 [% END %]
92 <!-- -->
93 [% IF ( holdingbranch ) %]
94     <tr>
95         <td>holdingbranch NOT mapped</td>
96         <td>the items.holdingbranch field MUST :<br />
97             <ul><li>be mapped to a MARC subfield, </li>
98             <li>the corresponding subfield MUST have authorised value=branches</li></ul></td>
99     </tr>
100 [% ELSE %]
101     <tr>
102         <td>OK</td>
103         <td>holdingbranch defined</td>
104     </tr>
105 [% END %]
106 <!-- -->
107 [% IF ( itemtypes_empty ) %]
108     <tr>
109         <td>item type not defined</td>
110         <td>at least 1 item type must be defined</td>
111     </tr>
112 [% ELSE %]
113     <tr>
114         <td>OK</td>
115         <td>at least 1 item type defined</td>
116     </tr>
117 [% END %]
118 <!-- -->
119 [% IF ( branches_empty ) %]
120     <tr>
121         <td>branch not defined</td>
122         <td>at least 1 branch must be defined</td>
123     </tr>
124 [% ELSE %] 
125     <tr>
126         <td>OK</td>             
127         <td>at least 1 branch defined</td>
128     </tr>                                       
129 [% END %]
130 <!-- -->
131 [% IF ( biblionumber ) %]
132     <tr>
133         <td>biblio and biblionumber</td>
134         <td>The biblio.biblionumber and biblioitems.biblioitemnumber fields be mapped to a MARC subfield,</td>
135     </tr>
136 [% ELSE %]
137     <tr>
138         <td>OK</td>
139         <td>biblionumber and biblioitemnumber mapped correctly</td>
140     </tr>
141 [% END %]
142
143     [% IF ( frameworknull ) %]
144         <tr>
145             <td>framework values</td>
146             <td>there is a null value in a frameworkcode. Check the following tables<br />
147                 <li>select * from marc_subfield_structure where frameworkcode is NULL</li>
148                 <li>select * from marc_tag_structure where frameworkcode is NULL</li>
149             </td>
150         </tr>
151     [% ELSE %]
152         <tr>
153             <td>OK</td>
154             <td>no NULL value in frameworkcode</td>
155         </tr>
156     [% END %]
157
158     [% IF ( inconsistent_tabs ) %]
159         <tr>
160             <td style="vertical-align:top;">subfields not in same tabs</td>
161             <td>Not all subfields for the following tags are in the same tab (or marked 'ignored').
162                 <table>
163                     <tr>
164                         <th>Code</th>
165                         <th>Description</th>
166                         <th>Tag</th>
167                         <th>Tabs in use</th>
168                     </tr>
169                     [% FOREACH tab_inf IN tab_info %]
170                         <tr>
171                             <td>[% tab_inf.frameworkcode %]</td>
172                             [% IF ( tab_inf.frameworkcode ) %]
173                                 <td>[% tab_inf.frameworktext %]</td>
174                             [% ELSE %]
175                                 <td>Default framework</td>
176                             [% END %]
177                             <td>[% tab_inf.tagfield %]</td>
178                             <td>[% tab_inf.tabs %]</td>
179                         </tr>
180                     [% END %]
181                 </table>
182             </td>
183         </tr>
184     [% ELSE %]
185         <tr>
186             <td>OK</td>
187             <td>all subfields for each tag are in the same tab (or ignored)</td>
188         </tr>
189     [% END %]
190
191     [% IF ( invalid_authtypecodes ) %]
192         <tr>
193             <td style="vertical-align:top;">invalid authority types</td>
194             <td>Not all authority types referred to by the frameworks are defined.
195                 <table>
196                     <tr>
197                         <th>Framework code</th>
198                         <th>Framework description</th>
199                         <th>Tag</th>
200                         <th>Subfield</th>
201                         <th>Invalid authority type</th>
202                     </tr>
203                     [% FOREACH authtypecode_inf IN authtypecode_info %]
204                         <tr>
205                             <td>[% authtypecode_inf.frameworkcode %]</td>
206                             [% IF ( authtypecode_inf.frameworkcode ) %]
207                                 <td>[% authtypecode_inf.frameworktext %]</td>
208                             [% ELSE %]
209                                 <td>Default framework</td>
210                             [% END %]
211                             <td>[% authtypecode_inf.tagfield %]</td>
212                             <td>[% authtypecode_inf.tagsubfield %]</td>
213                             <td>[% authtypecode_inf.authtypecode %]</td>
214                         </tr>
215                     [% END %]
216                 </table>
217             </td>
218         </tr>
219     [% ELSE %]
220         <tr>
221             <td>OK</td>
222             <td>all authority types used in the frameworks are defined</td>
223         </tr>
224     [% END %]
225 <!-- -->
226 [% IF ( total ) %]
227     <tr>
228         <td>TOTAL</td>
229         <td>You have [% total %] error(s) in your MARC configuration. Please fix them before using Koha</td>
230     </tr>
231 </table>
232 [% ELSE %]
233     </table>
234         <p><b>Configuration OK, you don't have errors in your MARC parameters table</b></p>
235 [% END %]
236
237
238
239 </div>
240 </div>
241 <div class="yui-b">
242 [% INCLUDE 'admin-menu.inc' %]
243 </div>
244 </div>
245 [% INCLUDE 'intranet-bottom.inc' %]