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