(unimarc) moving items declaration after it's subfields
[koha.git] / misc / zebra / record_biblios_unimarc.abs
1 # indexing rules. It
2 # results in a server which provides a passable Bath level 0 and 1 service
3 ############################################################################
4 # IMPORTANT : this file MUST be renamed record.abs : this name is "hardcoded" in zebra
5 # the default record.abs is designed for MARC21.
6 ############################################################################
7 # NOTE: This is designed to be used with the grs.marcxml input filter
8 # for ISO2709 (ANSI Z39.2) or grs.xml for MARCXML-formatted records. It
9 # won't work for the old grs.marc input filter, which yields a different
10 # internal structure.
11
12 encoding utf-8
13 name marc21
14 attset bib1.att
15 attset gils.att
16 esetname F @
17 esetname B @
18
19 marc usmarc.mar
20 systag sysno rank
21 xpath disable
22
23 all any
24 melm 001        Local-number,Local-number:n
25 # Local-number (biblionumber can be either in 090$9 or, on some setup, on 001)
26 melm 090$9      Local-number,Local-number:n
27
28 melm 010$a    Standard-Number,ISBN:w
29 # wrong ISBN
30 melm 010$z    Standard-Number,ISBN:w
31 melm 011$a    Standard-Number,ISSN:w
32 # cancelled ISSN
33 melm 011$y    Standard-Number,ISSN:w
34 # wrong ISSN
35 melm 011$z    ISSN:w
36
37 melm 200$b      Material-type,Koha-ItemType
38
39
40 #melm 100$9   Cross-Reference !:w
41 #melm 100$a      date-entered-on-file:n:range(data,0,8),date-entered-on-file:s:range(data,0,8),tpubdate:s:range(data,8,1),Date-of-publication:n:range(data,9,4),Date-of-publication:n:range(data,13,4),Date-of-publication:s:range(data,9,4),Date-of-publication:s:range(data,13,4),audience:s:range(data,17,1),audience:s:range(data,18,1),audience:s:range(data,19,1),Modified-code:n:range(data,21,1),Language:s:range(data,22,3),char-encoding:n:range(data,26,2),char-encoding:n:range(data,28,2)
42 melm 100$a      date-entered-on-file:n:range(data,0,8),date-entered-on-file:s:range(data,0,8),tpubdate:s:range(data,8,1),audience:s:range(data,17,1),audience:s:range(data,18,1),audience:s:range(data,19,1),Modified-code:n:range(data,21,1),Language:s:range(data,22,3),char-encoding:n:range(data,26,2),char-encoding:n:range(data,28,2),char-encoding:n:range(data,30,2),script-Title:n:range(data,34,2)
43 melm 101     Language
44 melm 102$a     Country-heading
45
46 #Field 105 Description
47 #Illustration codes 4
48 #Form of contents codes 4
49 #Conference or meeting code 1
50 #Festschrift indicator 1
51 #Index indicator 1
52 #Literature code 1
53 #Biography code   1
54 melm 105$a     Illustration-code:w:range(data,0,4),Content-type:w:range(data,4,1),Content-type:w:range(data,5,1),Content-type:w:range(data,6,1),Content-type:w:range(data,7,1),Conference-code:w:range(data,8,1),Festschrift-indicator:w:range(data,9,1),Index-indicator:w:range(data,10,1),Literature-Code:w:range(data,11,1),Biography-Code:w:range(data,12,1)
55
56 melm 106$a     Material-type
57
58 #Field 110 Description
59 #Name of Data Element                  Number of characters                 Character Positions
60 #Type of serial designator              1                                   0
61 #Frequency of issue                     1                                   1
62 #Regularity                             1                                   2
63 #Type of material code                  1                                   3
64 #Nature of contents code                3                                   4-6
65 #Conference publication indicator       1                                   7
66 #Title page availability codes          1                                   8
67 #Index availability code                1                                   9
68 #Cumulative index availability code   1                                   10
69 melm 110$a     Type-Of-Serial:w:range(data,0,1),Frequency-code:w:range(data,1,1),Regularity-code:w:range(data,2,1),Content-type:w:range(data,3,1),Content-type:w:range(data,4,3),Conference-publication-Code:w:range(data,7,1),Title-Page-availability-Code:w:range(data,8,1),Index-availability-Code:w:range(data,9,1),Cumulative-Index-availability-Code:w:range(data,10,1)
70
71 melm 115$a     Video-mt:w:range(data,0,1)
72
73 melm 116$a     Graphics-type:w:range(data,0,1),Graphics-support:w:range(data,1,1),Graphics-support:w:range(data,2,1),
74
75
76 melm 680$b              LC-call-number:s
77 melm 680                LC-call-number
78 #melm 001               Identifier-standard:w
79
80 melm 200$b      Material-type
81 #melm 200$b      Koha-Itemtype
82
83 #melm 100$9             Cross-Reference !:w
84
85 melm 101$a              Code-Language:w
86
87 ############ AUTHORS ##################
88 # main Author
89 melm 200$f              Author:w,Author:p,Author:s
90 # other Authors
91 melm 200$g              Author:w,Author:p
92 # physical Author
93 melm 700$9        Koha-Auth-Number,Koha-Auth-Number:n
94 melm 700$a    Author,Author-name-personal,Author:p,Author-name-personal:p                                                  melm 700    Author,Author-name-personal,Author:p,Author-name-personal:p                                                    
95 melm 701$9        Koha-Auth-Number,Koha-Auth-Number:n
96 melm 701    Author,Author-name-personal,Author:p,Author-name-personal:p
97 melm 702$9        Koha-Auth-Number,Koha-Auth-Number:n
98 melm 702    Author,Author-name-personal,Author:p,Author-name-personal:p
99 # collective Author
100 melm 710$9        Koha-Auth-Number,Koha-Auth-Number:n
101 melm 710    Author,Author-name-corporate,Author-name-conference,Corporate-name,Conference-name,Author:p,Author-name-corporate:p,Author-name-conference:p,Corporate-name:p,Conference-name:p
102 melm 711$9        Koha-Auth-Number,Koha-Auth-Number:n
103 melm 711    Author,Author-name-corporate,Author-name-conference,Corporate-name,Conference-name,Author:p,Author-name-corporate:p,Author-name-conference:p,Corporate-name:p,Conference-name:p
104
105 melm 712$9        Koha-Auth-Number,Koha-Auth-Number:n
106 melm 712    Author,Author-name-corporate,Author-name-conference,Corporate-name,Conference-name,Author:p,Author-name-corporate:p,Author-name-conference:p,Corporate-name:p,Conference-name:p
107
108
109
110 ############## TITLE ##################
111 # main Title
112 melm 200$a              Title:w,Title:p,Title:s
113 # Title 2
114 melm 200$c              Title:w,Title:p
115 # // Title
116 melm 200$d              Title:w,Title:p
117 # subTitle
118 melm 200$e              Title:w,Title:p
119
120 melm 205    Title,Title:p
121
122 melm 208    Serials,Serials:p
123 melm 207    Printed-Music,Printed-Music:p
124
125
126
127 melm 210$a    Place-Publication,Place-Publication:p
128 melm 210$c    Publisher,Publisher:p
129 melm 210$d    Date-of-Publication:y,Date:y,Date-of-Publication:s,Date:s
130
131 melm 215        Physical-detail
132
133 #Series
134 melm 225$a      Title-series,Title-series:p
135 melm 225$d      Title-series,Title-series:p
136 #SubTitle
137 melm 225$e      Title-series,Title-series:p 
138 #Authors
139 melm 225$f      Author,Author:p,Author-Title-series,Author-Title-series:p
140 #Part-Title
141 melm 225$h      Title-series,Title-series:p 
142 #Part Number
143 melm 225$i      Title-series,Title-series:p 
144 #Volume
145 melm 225$v      Title-series,Title-series:p 
146 melm 225$x      ISSN
147
148 melm 230$a      Electronic-Ressource
149
150 ########## NOTES #################
151 melm 300$a    Note,Note:p
152 melm 301$a    Note,Note:p
153 melm 302$a    Note,Note:p
154 melm 303$a    Note,Note:p
155 melm 304$a    Note,Note:p
156 melm 305$a    Note,Note:p
157 melm 306$a    Note,Note:p
158 melm 307$a    Note,Note:p
159 melm 308      Note,Note:p
160 melm 308$a    Note,Note:p
161 melm 310$a    Note,Note:p
162 melm 311$a    Note,Note:p
163 melm 312$a    Note,Note:p
164 melm 313$a    Note,Note:p
165 melm 314$a    Note,Note:p
166 melm 315$a    Note,Note:p
167 melm 316$a    Note,Note:p
168 melm 317$a    Note,Note:p
169 melm 318$a    Note,Note:p
170 melm 320$a    Note,Note:p
171 melm 321$a    Note,Note:p
172 melm 322$a    Note,Note:p
173 melm 323$a    Note,Note:p
174 melm 324$a    Note,Note:p
175 melm 325$a    Note,Note:p
176 melm 326$a    Note,Note:p
177 melm 327$a    Note,Note:p
178 melm 328      Note,Thesis-Note:w,Note:p
179 melm 328$a    Note,Note:p
180 melm 330$a    Abstract,Note:w,Abstract:p,Note:p
181 melm 332$a    Note,Note:p
182 melm 333$a    Note,Note:p
183 melm 336$a    Note,Note:p
184 melm 337$a    Note,Note:p
185 melm 345$a    Note,Note:p
186
187
188 ############## 4XX - LINKING ##################
189 # Authorities Title,Title:p
190 melm 400$t    Title,Title:p
191 melm 401$t    Title,Title:p
192 melm 403$t    Title,Title:p,Title-Uniform,Title-Uniform:p
193 melm 410$t    Title,Title:p
194 melm 412$t    Title,Title:p
195 melm 413$t    Title,Title:p
196 melm 414$t    Title,Title:p
197 melm 415$t    Title,Title:p
198 melm 416$t    Title,Title:p
199 melm 417$t    Title,Title:p
200 melm 418$t    Title,Title:p
201 melm 419$t    Title,Title:p
202 melm 420$t    Title,Title:p
203 melm 430$t    Title,Title:p
204 melm 431$t    Title,Title:p
205 melm 432$t    Title,Title:p
206 melm 440$t    Title,Title:p
207 melm 441$t    Title,Title:p
208 melm 445$t    Title,Title:p
209 melm 400$d    Date-of-Publication:n
210 melm 401$d    Date-of-Publication:n
211 melm 403$d    Date-of-Publication:n
212 melm 410$d    Date-of-Publication:n
213 melm 412$d    Date-of-Publication:n
214 melm 413$d    Date-of-Publication:n
215 melm 414$d    Date-of-Publication:n
216 melm 415$d    Date-of-Publication:n
217 melm 416$d    Date-of-Publication:n
218 melm 417$d    Date-of-Publication:n
219 melm 418$d    Date-of-Publication:n
220 melm 419$d    Date-of-Publication:n
221 melm 420$d    Date-of-Publication:n
222 melm 430$d    Date-of-Publication:n
223 melm 431$d    Date-of-Publication:n
224 melm 432$d    Date-of-Publication:n
225 melm 440$d    Date-of-Publication:n
226 melm 441$d    Date-of-Publication:n
227 melm 445$d    Date-of-Publication:n
228 melm 400    Link
229 melm 401    Link
230 melm 403    Link
231 melm 410    Link
232 melm 412    Link
233 melm 413    Link
234 melm 414    Link
235 melm 415    Link
236 melm 416    Link
237 melm 417    Link
238 melm 418    Link
239 melm 419    Link
240 melm 420    Link
241 melm 430    Link
242 melm 431    Link
243 melm 432    Link
244 melm 440    Link
245 melm 441    Link
246 melm 445    Link
247
248 # Authorities Title
249 melm 500$9    Koha-Auth-Number,Koha-Auth-Number:n
250 melm 501$9    Koha-Auth-Number,Koha-Auth-Number:n
251 melm 503$9    Koha-Auth-Number,Koha-Auth-Number:n
252 melm 510$9    Koha-Auth-Number,Koha-Auth-Number:n
253 melm 512$9    Koha-Auth-Number,Koha-Auth-Number:n
254 melm 513$9    Koha-Auth-Number,Koha-Auth-Number:n
255 melm 514$9    Koha-Auth-Number,Koha-Auth-Number:n
256 melm 515$9    Koha-Auth-Number,Koha-Auth-Number:n
257 melm 516$9    Koha-Auth-Number,Koha-Auth-Number:n
258 melm 517$9    Koha-Auth-Number,Koha-Auth-Number:n
259 melm 518$9    Koha-Auth-Number,Koha-Auth-Number:n
260 melm 519$9    Koha-Auth-Number,Koha-Auth-Number:n
261 melm 520$9    Koha-Auth-Number,Koha-Auth-Number:n
262 melm 530$9    Koha-Auth-Number,Koha-Auth-Number:n
263 melm 531$9    Koha-Auth-Number,Koha-Auth-Number:n
264 melm 532$9    Koha-Auth-Number,Koha-Auth-Number:n
265 melm 540$9    Koha-Auth-Number,Koha-Auth-Number:n
266 melm 541$9    Koha-Auth-Number,Koha-Auth-Number:n
267 melm 545$9    Koha-Auth-Number,Koha-Auth-Number:n
268
269 melm 500                Title,Title:p
270 melm 501                Title,Title:p
271 melm 503                Title,Title:p
272 melm 510                Title,Title:p
273 melm 512                Title,Title:p
274 melm 513                Title,Title:p
275 melm 514                Title,Title:p
276 melm 515                Title,Title:p
277 melm 516                Title,Title:p
278 melm 517                Title,Title:p
279 melm 518                Title,Title:p
280 melm 519                Title,Title:p
281 melm 520                Title,Title:p
282 melm 530                Title,Title:p
283 melm 531                Title,Title:p
284 melm 532                Title,Title:p
285 melm 540                Title,Title:p
286 melm 541                Title,Title:p
287 melm 545                Title,Title:p
288
289 ########### SUBJECTS (6xx) ##################
290 melm 600$9      Koha-Auth-Number,Koha-Auth-Number:n
291 melm 601$9      Koha-Auth-Number,Koha-Auth-Number:n
292 melm 602$9      Koha-Auth-Number,Koha-Auth-Number:n
293 melm 603$9      Koha-Auth-Number,Koha-Auth-Number:n
294 melm 604$9      Koha-Auth-Number,Koha-Auth-Number:n
295 melm 605$9      Koha-Auth-Number,Koha-Auth-Number:n
296 melm 606$9      Koha-Auth-Number,Koha-Auth-Number:n
297 melm 607$9      Koha-Auth-Number,Koha-Auth-Number:n
298 melm 610$9      Koha-Auth-Number,Koha-Auth-Number:n
299 melm 630$9      Koha-Auth-Number,Koha-Auth-Number:n
300 melm 631$9      Koha-Auth-Number,Koha-Auth-Number:n
301 melm 632$9      Koha-Auth-Number,Koha-Auth-Number:n
302 melm 633$9      Koha-Auth-Number,Koha-Auth-Number:n
303 melm 634$9      Koha-Auth-Number,Koha-Auth-Number:n
304 melm 635$9      Koha-Auth-Number,Koha-Auth-Number:n
305 melm 636$9      Koha-Auth-Number,Koha-Auth-Number:n
306
307 melm 600$a              author,Personal-name,author:p,Personal-name:p
308 melm 600                subject-heading,subject-heading:p
309 melm 602$a    Personal-name,Personal-name:p
310 melm 602    subject-heading,subject-heading:p
311 melm 601$a              author,Corporate-name,Conference-name,author:p,Corporate-name:p,Conference-name:p
312 melm 601                subject-heading,subject-heading:p
313 melm 604$a              author
314 melm 604$t              title
315 melm 610$t              title
316 melm 605$a              title
317 melm 606                subject-heading,subject-heading:p
318 melm 607        subject-heading,subject-heading:p
319 melm 630                subject-heading,subject-heading:p
320 melm 631                subject-heading,subject-heading:p
321 melm 632                subject-heading,subject-heading:p
322 melm 633                subject-heading,subject-heading:p
323 melm 634                subject-heading,subject-heading:p
324 melm 635                subject-heading,subject-heading:p
325 melm 636                subject-heading,subject-heading:p
326 melm 610                subject-heading
327 melm 640        subject-heading,subject-heading:p
328 melm 641        subject-heading,subject-heading:p
329 melm 642        subject-heading,subject-heading:p
330 melm 643        subject-heading,subject-heading:p
331 melm 644        subject-heading,subject-heading:p
332 melm 645        subject-heading,subject-heading:p
333 melm 646        subject-heading,subject-heading:p
334
335 ######################
336
337 melm 676$a              Dewey-classification:w,Dewey-classification:s
338
339 #############"# item information (based on 995) ###############
340 melm 995$a              homebranch,Host-item
341 melm 995$b              homebranch,Host-item
342 melm 995$c              holdingbranch,Record-Source
343 melm 995$d              holdingbranch,Record-Source
344 melm 995$e      location
345 melm 995$f              barcode
346 melm 995$j              LC-card-number:s
347 melm 995$k      Call-Number,Local-Classification,lcn,Call-Number:p,Local-Classification:p,lcn:p
348 melm 995$s      popularity:n,popularity:s
349 melm 995$n      onloan:d,onloan:n,onloan:s
350 melm 995$u      Note, Note:p
351 melm  995       item   # just to index every subfield