File: marc_indexing.xml

package info (click to toggle)
idzebra 2.2.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,644 kB
  • sloc: ansic: 54,389; xml: 27,054; sh: 6,214; makefile: 1,099; perl: 210; tcl: 64
file content (318 lines) | stat: -rw-r--r-- 7,850 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook &acro.xml; V4.2//EN" 
 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">


<book id="marc_indexing">
<bookinfo>
 <title>Indexing of &acro.marc; records by &zebra;</title>
 <abstract>
  <simpara>&zebra; is suitable for distribution of &acro.marc; records via &acro.z3950;. We
	have a several possibilities to describe the indexing process of &acro.marc; records.
	This document shows these possibilities.
  </simpara>
 </abstract>
</bookinfo>

<chapter id="simple">
 <title>Simple indexing of &acro.marc; records</title>
<para>Simple indexing is not described yet.</para>
</chapter>

<chapter id="extended">
 <title>Extended indexing of &acro.marc; records</title>

<para>Extended indexing of &acro.marc; records will help you if you need index a
combination of subfields, or index only a part of the whole field,
or use during indexing process embedded fields of &acro.marc; record.
</para>

<para>Extended indexing of &acro.marc; records additionally allows:
<itemizedlist>

<listitem>
<para>to index data in LEADER of &acro.marc; record</para>
</listitem>

<listitem>
<para>to index data in control fields (with fixed length)</para>
</listitem>

<listitem>
<para>to use during indexing the values of indicators</para>
</listitem>

<listitem>
<para>to index linked fields for UNI&acro.marc; based formats</para>
</listitem>

</itemizedlist>
</para>

<note><para>In compare with simple indexing process the extended indexing
may increase (about 2-3 times) the time of indexing process for &acro.marc;
records.</para></note>

<sect1 id="formula">
<title>The index-formula</title>

<para>At the beginning, we have to define the term <emphasis>index-formula</emphasis>
for &acro.marc; records. This term helps to understand the notation of extended indexing of MARC records
by &zebra;. Our definition is based on the document <ulink url="http://www.rba.ru/rusmarc/soft/Z39-50.htm">"The
table of conformity for &acro.z3950; use attributes and R&acro.usmarc; fields"</ulink>.
The document is available only in Russian language.</para>

<para>The <emphasis>index-formula</emphasis> is the combination of subfields presented in such way:</para>

<screen>
71-00$a, $g, $h ($c){.$b ($c)} , (1)
</screen>

<para>We know that &zebra; supports a &acro.bib1; attribute - right truncation.
In this case, the <emphasis>index-formula</emphasis> (1) consists from 
forms, defined in the same way as (1)</para>

<screen>
71-00$a, $g, $h
71-00$a, $g
71-00$a
</screen>

<note><para>The original &acro.marc; record may be without some elements, which included in <emphasis>index-formula</emphasis>.</para>
</note>

<para>This notation includes such operands as:
<variablelist>

<varlistentry>
 <term>#</term>
 <listitem><para>It means whitespace character.</para></listitem>
</varlistentry>

<varlistentry>
 <term>-</term>
 <listitem><para>The position may contain any value, defined by &acro.marc; format.
 For example, <emphasis>index-formula</emphasis></para>

<screen>
70-#1$a, $g , (2)
</screen>

<para>includes</para> 

<screen>
700#1$a, $g
701#1$a, $g
702#1$a, $g
</screen>

</listitem>
</varlistentry>

<varlistentry>
<term>{...}</term>
<listitem><para>The repeatable elements are defined in figure-brackets {}. For example,
<emphasis>index-formula</emphasis></para>


<screen>
71-00$a, $g, $h ($c){.$b ($c)} , (3)
</screen>

<para>includes</para>

<screen>
71-00$a, $g, $h ($c). $b ($c)
71-00$a, $g, $h ($c). $b ($c). $b ($c)
71-00$a, $g, $h ($c). $b ($c). $b ($c). $b ($c)
</screen>

</listitem>
</varlistentry>
</variablelist>

<note><para>All another operands are the same as accepted in &acro.marc; world.</para>
</note>
</para>
</sect1>

<sect1 id="notation">
<title>Notation of <emphasis>index-formula</emphasis> for &zebra;</title>


<para>Extended indexing overloads <literal>path</literal> of
<literal>elm</literal> definition in abstract syntax file of &zebra;
(<literal>.abs</literal> file). It means that names beginning with
<literal>"mc-"</literal> are interpreted by &zebra; as
<emphasis>index-formula</emphasis>. The database index is created and
linked with <emphasis>access point</emphasis> (&acro.bib1; use attribute)
according to this formula.</para>

<para>For example, <emphasis>index-formula</emphasis></para>

<screen>
71-00$a, $g, $h ($c){.$b ($c)} , (4)
</screen>

<para>in <literal>.abs</literal> file looks like:</para>

<screen>
mc-71.00_$a,_$g,_$h_(_$c_){.$b_(_$c_)}
</screen>


<para>The notation of <emphasis>index-formula</emphasis> uses the operands:
<variablelist>

<varlistentry>
<term>_</term>
<listitem><para>It means whitespace character.</para></listitem>
</varlistentry>

<varlistentry>
<term>.</term>
<listitem><para>The position may contain any value, defined by &acro.marc; format. For example,
<emphasis>index-formula</emphasis></para>

<screen>
70-#1$a, $g , (5)
</screen>

<para>matches <literal>mc-70._1_$a,_$g_</literal> and includes</para>

<screen>
700_1_$a,_$g_
701_1_$a,_$g_
702_1_$a,_$g_
</screen>
</listitem>
</varlistentry>

<varlistentry>
<term>{...}</term>
<listitem><para>The repeatable elements are defined in figure-brackets {}. For example,
<emphasis>index-formula</emphasis></para>

<screen>
71#00$a, $g, $h ($c) {.$b ($c)} , (6)
</screen>

<para>matches <literal>mc-71.00_$a,_$g,_$h_(_$c_){.$b_(_$c_)}</literal> and
includes</para>

<screen>
71.00_$a,_$g,_$h_(_$c_).$b_(_$c_)
71.00_$a,_$g,_$h_(_$c_).$b_(_$c_).$b_(_$c_)
71.00_$a,_$g,_$h_(_$c_).$b_(_$c_).$b_(_$c_).$b_(_$c_)
</screen>
</listitem>
</varlistentry>


<varlistentry>
<term>&#60;...&#62;</term>
<listitem><para>Embedded <emphasis>index-formula</emphasis> (for linked fields) is between &#60;&#62;. For example,
<emphasis>index-formula</emphasis></para>

<screen>
4--#-$170-#1$a, $g ($c) , (7)
</screen>

<para>matches <literal>mc-4.._._$1&#60;70._1_$a,_$g_(_$c_)&#62;_</literal> and
includes</para>

<screen>
463_._$1&#60;70._1_$a,_$g_(_$c_)&#62;_
</screen>

</listitem>
</varlistentry>
</variablelist>
</para>

<note>
<para>All another operands are the same as accepted in &acro.marc; world.</para>
</note>

<sect2>
<title>Examples</title>

<para>
<orderedlist>

<listitem>

<para>indexing LEADER</para>

<para>You need to use keyword "ldr" to index leader. For example, indexing data from 6th
and 7th position of LEADER</para>

<screen>
elm mc-ldr[6] Record-type !
elm mc-ldr[7] Bib-level   !
</screen>

</listitem>

<listitem>

<para>indexing data from control fields</para>

<para>indexing date (the time added to database)</para>

<screen>
elm mc-008[0-5] Date/time-added-to-db !	
</screen>

<para>or for R&acro.usmarc; (this data included in 100th field)</para>

<screen>
elm mc-100___$a[0-7]_ Date/time-added-to-db !
</screen>

</listitem>

<listitem>

<para>using indicators while indexing</para>

<para>For R&acro.usmarc; <emphasis>index-formula</emphasis>
<literal>70-#1$a, $g</literal> matches</para>

<screen>
elm 70._1_$a,_$g_ Author !:w,!:p
</screen>

<para>When &zebra; finds a field according to <literal>"70."</literal> pattern it checks
the indicators.  In this case the value of first indicator doesn't mater, but
the value of second one must be whitespace, in another case a field is not 
indexed.</para>

</listitem>

<listitem>

<para>indexing embedded (linked) fields for UNI&acro.marc; based formats</para>

<para>For R&acro.usmarc; <emphasis>index-formula</emphasis> 
<literal>4--#-$170-#1$a, $g ($c)</literal> matches</para>

<screen>
elm mc-4.._._$1<70._1_$a,_$g_(_$c_)>_ Author !:w,!:p
</screen>

<para>Data are extracted from record if the field matches to
<literal>"4.._."</literal> pattern and data in linked field match to embedded
<emphasis>index-formula</emphasis> <literal>70._1_$a,_$g_(_$c_)</literal>.</para>

</listitem>

</orderedlist>
</para>


</sect2>
</sect1>

</chapter>
</book>