1 <?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook &acro.xml; V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 <book id="marc_indexing">
8 <title>Indexing of &acro.marc; records by &zebra;</title>
10 <simpara>&zebra; is suitable for distribution of &acro.marc; records via &acro.z3950;. We
11 have a several possibilities to describe the indexing process of &acro.marc; records.
12 This document shows these possibilities.
18 <title>Simple indexing of &acro.marc; records</title>
19 <para>Simple indexing is not described yet.</para>
22 <chapter id="extended">
23 <title>Extended indexing of &acro.marc; records</title>
25 <para>Extended indexing of &acro.marc; records will help you if you need index a
26 combination of subfields, or index only a part of the whole field,
27 or use during indexing process embedded fields of &acro.marc; record.
30 <para>Extended indexing of &acro.marc; records additionally allows:
34 <para>to index data in LEADER of &acro.marc; record</para>
38 <para>to index data in control fields (with fixed length)</para>
42 <para>to use during indexing the values of indicators</para>
46 <para>to index linked fields for UNI&acro.marc; based formats</para>
52 <note><para>In compare with simple indexing process the extended indexing
53 may increase (about 2-3 times) the time of indexing process for &acro.marc;
54 records.</para></note>
57 <title>The index-formula</title>
59 <para>At the beginning, we have to define the term <emphasis>index-formula</emphasis>
60 for &acro.marc; records. This term helps to understand the notation of extended indexing of MARC records
61 by &zebra;. Our definition is based on the document <ulink url="http://www.rba.ru/rusmarc/soft/Z39-50.htm">"The
62 table of conformity for &acro.z3950; use attributes and R&acro.usmarc; fields"</ulink>.
63 The document is available only in russian language.</para>
65 <para>The <emphasis>index-formula</emphasis> is the combination of subfields presented in such way:</para>
68 71-00$a, $g, $h ($c){.$b ($c)} , (1)
71 <para>We know that &zebra; supports a &acro.bib1; attribute - right truncation.
72 In this case, the <emphasis>index-formula</emphasis> (1) consists from
73 forms, defined in the same way as (1)</para>
81 <note><para>The original &acro.marc; record may be without some elements, which included in <emphasis>index-formula</emphasis>.</para>
84 <para>This notation includes such operands as:
89 <listitem><para>It means whitespace character.</para></listitem>
94 <listitem><para>The position may contain any value, defined by &acro.marc; format.
95 For example, <emphasis>index-formula</emphasis></para>
101 <para>includes</para>
114 <listitem><para>The repeatable elements are defined in figure-brackets {}. For example,
115 <emphasis>index-formula</emphasis></para>
119 71-00$a, $g, $h ($c){.$b ($c)} , (3)
122 <para>includes</para>
125 71-00$a, $g, $h ($c). $b ($c)
126 71-00$a, $g, $h ($c). $b ($c). $b ($c)
127 71-00$a, $g, $h ($c). $b ($c). $b ($c). $b ($c)
134 <note><para>All another operands are the same as accepted in &acro.marc; world.</para>
139 <sect1 id="notation">
140 <title>Notation of <emphasis>index-formula</emphasis> for &zebra;</title>
143 <para>Extended indexing overloads <literal>path</literal> of
144 <literal>elm</literal> definition in abstract syntax file of &zebra;
145 (<literal>.abs</literal> file). It means that names beginning with
146 <literal>"mc-"</literal> are interpreted by &zebra; as
147 <emphasis>index-formula</emphasis>. The database index is created and
148 linked with <emphasis>access point</emphasis> (&acro.bib1; use attribute)
149 according to this formula.</para>
151 <para>For example, <emphasis>index-formula</emphasis></para>
154 71-00$a, $g, $h ($c){.$b ($c)} , (4)
157 <para>in <literal>.abs</literal> file looks like:</para>
160 mc-71.00_$a,_$g,_$h_(_$c_){.$b_(_$c_)}
164 <para>The notation of <emphasis>index-formula</emphasis> uses the operands:
169 <listitem><para>It means whitespace character.</para></listitem>
174 <listitem><para>The position may contain any value, defined by &acro.marc; format. For example,
175 <emphasis>index-formula</emphasis></para>
181 <para>matches <literal>mc-70._1_$a,_$g_</literal> and includes</para>
193 <listitem><para>The repeatable elements are defined in figure-brackets {}. For example,
194 <emphasis>index-formula</emphasis></para>
197 71#00$a, $g, $h ($c) {.$b ($c)} , (6)
200 <para>matches <literal>mc-71.00_$a,_$g,_$h_(_$c_){.$b_(_$c_)}</literal> and
204 71.00_$a,_$g,_$h_(_$c_).$b_(_$c_)
205 71.00_$a,_$g,_$h_(_$c_).$b_(_$c_).$b_(_$c_)
206 71.00_$a,_$g,_$h_(_$c_).$b_(_$c_).$b_(_$c_).$b_(_$c_)
213 <term><...></term>
214 <listitem><para>Embedded <emphasis>index-formula</emphasis> (for linked fields) is between <>. For example,
215 <emphasis>index-formula</emphasis></para>
218 4--#-$170-#1$a, $g ($c) , (7)
221 <para>matches <literal>mc-4.._._$1<70._1_$a,_$g_(_$c_)>_</literal> and
225 463_._$1<70._1_$a,_$g_(_$c_)>_
234 <para>All another operands are the same as accepted in &acro.marc; world.</para>
238 <title>Examples</title>
245 <para>indexing LEADER</para>
247 <para>You need to use keyword "ldr" to index leader. For example, indexing data from 6th
248 and 7th position of LEADER</para>
251 elm mc-ldr[6] Record-type !
252 elm mc-ldr[7] Bib-level !
259 <para>indexing data from control fields</para>
261 <para>indexing date (the time added to database)</para>
264 elm mc-008[0-5] Date/time-added-to-db !
267 <para>or for R&acro.usmarc; (this data included in 100th field)</para>
270 elm mc-100___$a[0-7]_ Date/time-added-to-db !
277 <para>using indicators while indexing</para>
279 <para>For R&acro.usmarc; <emphasis>index-formula</emphasis>
280 <literal>70-#1$a, $g</literal> matches</para>
283 elm 70._1_$a,_$g_ Author !:w,!:p
286 <para>When &zebra; finds a field according to <literal>"70."</literal> pattern it checks
287 the indicators. In this case the value of first indicator doesn't mater, but
288 the value of second one must be whitespace, in another case a field is not
295 <para>indexing embedded (linked) fields for UNI&acro.marc; based formats</para>
297 <para>For R&acro.usmarc; <emphasis>index-formula</emphasis>
298 <literal>4--#-$170-#1$a, $g ($c)</literal> matches</para>
301 elm mc-4.._._$1<70._1_$a,_$g_(_$c_)>_ Author !:w,!:p
304 <para>Data are extracted from record if the field matches to
305 <literal>"4.._."</literal> pattern and data in linked field match to embedded
306 <emphasis>index-formula</emphasis> <literal>70._1_$a,_$g_(_$c_)</literal>.</para>