2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Administration › MARC check
4 [% IF ( total ) %] :[% total %] errors found[% ELSE %] : Configuration OK![% END %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="admin_checkmarc" class="admin">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'prefs-admin-search.inc' %]
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › MARC check
12 [% IF ( total ) %]: [% total %] errors found[% ELSE %] : Configuration OK![% END %]</div>
14 <div id="doc3" class="yui-t2">
20 <h1>MARC bibliographic framework test</h1>
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>
36 <td>itemnum : the field itemnumber is mapped to a field in tab -1</td>
40 [% IF ( itemfields ) %]
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>
50 <td>All item fields are in the same tag and in item tab</td>
57 <td>There is more than 1 MARC tag related to items tab (10) : [% itemtags %]</td>
62 <td>Only 1 MARC tag mapped to items</td>
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>
76 <td>biblioitems.itemtype defined</td>
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>
90 <td>homebranch defined</td>
94 [% IF ( holdingbranch ) %]
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>
104 <td>holdingbranch defined</td>
108 [% IF ( itemtypes_empty ) %]
110 <td>item type not defined</td>
111 <td>at least 1 item type must be defined</td>
116 <td>at least 1 item type defined</td>
120 [% IF ( branches_empty ) %]
122 <td>library not defined</td>
123 <td>at least 1 library must be defined</td>
128 <td>at least 1 library defined</td>
132 [% IF ( biblionumber ) %]
134 <td>biblio and biblionumber</td>
135 <td>The biblio.biblionumber and biblioitems.biblioitemnumber fields be mapped to a MARC subfield,</td>
140 <td>biblionumber and biblioitemnumber mapped correctly</td>
144 [% IF ( frameworknull ) %]
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>
155 <td>no NULL value in frameworkcode</td>
159 [% IF ( inconsistent_tabs ) %]
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').
170 [% FOREACH tab_inf IN tab_info %]
172 <td>[% tab_inf.frameworkcode %]</td>
173 [% IF ( tab_inf.frameworkcode ) %]
174 <td>[% tab_inf.frameworktext %]</td>
176 <td>Default framework</td>
178 <td>[% tab_inf.tagfield %]</td>
179 <td>[% tab_inf.tabs %]</td>
188 <td>all subfields for each tag are in the same tab (or ignored)</td>
192 [% IF ( invalid_authtypecodes ) %]
194 <td style="vertical-align:top;">invalid authority types</td>
195 <td>Not all authority types referred to by the frameworks are defined.
198 <th>Framework code</th>
199 <th>Framework description</th>
202 <th>Invalid authority type</th>
204 [% FOREACH authtypecode_inf IN authtypecode_info %]
206 <td>[% authtypecode_inf.frameworkcode %]</td>
207 [% IF ( authtypecode_inf.frameworkcode ) %]
208 <td>[% authtypecode_inf.frameworktext %]</td>
210 <td>Default framework</td>
212 <td>[% authtypecode_inf.tagfield %]</td>
213 <td>[% authtypecode_inf.tagsubfield %]</td>
214 <td>[% authtypecode_inf.authtypecode %]</td>
223 <td>all authority types used in the frameworks are defined</td>
227 [% IF ( permanent_location_mapped ) %]
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.
233 <th>Framework code</th>
234 <th>Framework description</th>
238 [% FOREACH mapped_perm_loc IN mapped_permanent_location %]
240 <td>[% mapped_perm_loc.frameworkcode %]</td>
241 [% IF ( mapped_perm_loc.frameworkcode ) %]
242 <td>[% mapped_perm_loc.frameworktext %]</td>
244 <td>Default framework</td>
246 <td>[% mapped_perm_loc.tagfield %]</td>
247 <td>[% mapped_perm_loc.tagsubfield %]</td>
256 <td>items.permanent_location is not mapped on the frameworks</td>
264 <td>You have [% total %] error(s) in your MARC configuration. Please fix them before using Koha</td>
269 <p><b>Configuration OK, you don't have errors in your MARC parameters table</b></p>
277 [% INCLUDE 'admin-menu.inc' %]
281 [% MACRO jsinclude BLOCK %]
282 <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
284 [% INCLUDE 'intranet-bottom.inc' %]