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