Bug 9972: Add/change some zebra indexes (MARC21)
[koha.git] / etc / zebradb / marc_defs / marc21 / biblios / record.abs
1 #
2 # NOTE: If you are using the DOM index filter, this configuration file is
3 #       *not* used.  To update the index definitions for the DOM filter,
4 #       edit biblio-koha-indexdefs.xml and run
5 #       xsltproc ../../../xsl/koha-indexdefs-to-zebra.xsl \
6 #                biblio-koha-indexdefs.xml \
7 #                > biblio-zebra-indexdefs.xsl
8 #
9 # This is a fairly simple example of a set of MARC21 indexing rules. It
10 # results in a server which provides a passable Bath level 0 and 1 service
11 # (author, title, subject, keyword and exact services). Feel free to
12 # elaborate on it, and if you do, please consider sharing your additions.
13 # NOTE: This is designed to be used with the grs.marcxml input filter
14 # for ISO2709 (ANSI Z39.2) or grs.xml for MARCXML-formatted records. It
15 # won't work for the old grs.marc input filter, which yields a different
16 # internal structure.
17 encoding utf-8
18 name marc21
19 attset bib1.att
20 attset gils.att
21 esetname F @
22 esetname B @
23
24 marc marc21.mar
25 systag sysno rank
26 xpath enable
27 # Some notes:
28 # pl = Published Place
29 # ta = Target Audience 002/22
30 # ff8-23
31 # lf = Literary Form 008/33
32 # bio = Biography 008/34
33 # fmt = Format
34 # ln = Language
35 # ctype = Content type: review, catalog, encyclopedia, dictionary
36 # pubdate Publication Date
37 # rtype =  Record type (leader 06)
38 #
39 # Date indexing in Koha 3.0 for MARC21:
40 # Index                   Expected format         Notes
41 # date-entered-on-file    [yymmdd]        (008/0-5, indexed in word and sort indexes)
42 # copydate                [yyyy]          (260$c, indexed in word and sort indexes)
43 # acqdate                 [yyyy-mm-dd]    (952$d, indexed in date,word,sort indexes)
44 # pubdate                 [yyyy]          (008/7-10, indexed in year,word,num,sort indexes)
45
46 all any
47 # melm 000      rtype:n:range(data,06,1),Bib-level:w:range(data,07,01)
48 xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)
49 # example: xelm /record/leader l1:w:range(data,0,5),l2:w:range(data,10,2)
50
51 melm 001        Control-number
52 melm 005        Date/time-last-modified
53 melm 007        Microform-generation:n:range(data,11,1),Material-type,ff7-00:w:range(data,0,1),ff7-01:w:range(data,1,1),ff7-02:w:range(data,2,1),ff7-01-02:w:range(data,0,2)
54
55 melm 008        date-entered-on-file:n:range(data,0,5),date-entered-on-file:s:range(data,0,5),pubdate:w:range(data,7,4),pubdate:n:range(data,7,4),pubdate:y:range(data,7,4),pubdate:s:range(data,7,4),pl:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),ln:w:range(data,35,3),ctype:w:range(data,24,4),Record-source:w:range(data,39,0)
56
57 melm 010        LC-card-number,Identifier-standard
58 melm 011        LC-card-number,Identifier-standard
59 melm 015        BNB-card-number,BGF-number,Number-db,Number-natl-biblio,Identifier-standard
60 melm 017        Number-legal-deposit,Identifier-standard
61 melm 018        Identifier-standard
62 melm 020$a      ISBN:w,Identifier-standard:w
63 melm 020        Identifier-standard
64 melm 022$a      ISSN:w,Identifier-standard:w
65 melm 022        Identifier-standard
66 melm 023        Identifier-standard
67 melm 024$a      Identifier-other
68 melm 024        Identifier-standard
69 melm 025        Identifier-standard
70 melm 027        Report-number,Identifier-standard
71 melm 028        Identifier-publisher-for-music,Identifier-standard
72 melm 030        CODEN,Identifier-standard
73 #melm 033       Date
74 melm 034        Map-scale
75 #melm 035       Local-number,Identifier-standard
76 melm 037        Identifier-standard,Stock-number
77 melm 040        Code-institution,Record-source
78 melm 041$a      ln,ln-audio:w
79 melm 041$d      ln
80 melm 041$e      ln
81 melm 041$h      language-original
82 melm 041$j      ln,ln-subtitle:w
83 melm 043        Code-geographic
84 #melm 046       pubdate
85 melm 050$b      LC-call-number:w,LC-call-number:p,LC-call-number:s
86 melm 050        LC-call-number:w,LC-call-number:p,LC-call-number:s
87 melm 052        Geographic-class
88 melm 060        NLM-call-number
89 melm 070        NAL-call-number
90 melm 080        UDC-classification
91 melm 082        Dewey-classification:w,Dewey-classification:s
92 melm 086        Number-govt-pub
93 #melm 942$k     LC-card-number:s
94
95 ## KOHA SPECIFIC
96 #melm 090$c     Local-number:w
97 #Identifier-standard:w
98
99 melm 100$9      Cross-Reference:w,Koha-Auth-Number
100 melm 100$a      Author,Author:p,Author:s,Editor,Author-personal-bibliography,Author-personal-bibliography:p,Author-personal-bibliography:s
101 melm 100        Author,Author:p,Author:s,Author-title,Author-name-personal,Name,Name-and-title,Personal-name
102 melm 110$9      Koha-Auth-Number
103 melm 110        Author,Author:p,Author:s,Author-title,Author-name-corporate,Name,Name-and-title,Corporate-name
104 melm 111$9      Koha-Auth-Number
105 melm 111        Author,Author:p,Author:s,Author-title,Author-name-corporate,Name,Name-and-title,Conference-name
106 melm 130$n      Thematic-number
107 melm 130$r      Music-key
108 melm 130$9      Koha-Auth-Number
109 melm 130        Title,Title:p,Title-uniform
110
111 melm 210        Title,Title:p,Title-abbreviated
112 melm 211        Title,Title:p,Title-abbreviated
113 melm 212        Title,Title:p,Title-other-variant
114 melm 214        Title,Title:p,Title-expanded
115 melm 222        Title,Title:p,Title-key
116 melm 240$r      Music-key
117 melm 240$n      Thematic-number
118 melm 240        Title:w,Title:p,Title-uniform
119 melm 243$n      Thematic-number
120 melm 243$r      Music-key
121 melm 243        Title:w,Title:p,Title-collective
122 melm 245$a      Title-cover:w,Title-cover:p,Title-cover:s,Title:w,Title:p,Title:s
123 melm 245$c      Author,Author-in-order:w,Author-in-order:p,Author-in-order:s
124 melm 245$9      Cross-Reference:w,Koha-Auth-Number
125 melm 245        Title:w,Title:p
126 melm 246        Title,Title:p,Title-abbreviated,Title-expanded,Title-former
127 melm 247        Title,Title:p,Title-former,Title-other-variant,Related-periodical
128 melm 260$a      pl:w,pl:p
129 melm 260$b      Publisher:w,Publisher:p
130 melm 260$c      copydate,copydate:s
131 melm 260        pl
132 melm 300        Extent:w,Extent:p
133 melm 400$a      Name-and-title
134 melm 400$t      Author-title,Name-and-title,Title,Title-series
135 melm 400$9      Koha-Auth-Number
136 melm 400        Author,Author-name-personal,Name,Personal-name
137 melm 410$a      Name-and-title
138 melm 410$t      Author-title,Title,Title-series
139 melm 410$9      Koha-Auth-Number
140 melm 410        Author,Corporate-name
141 #melm 410        Author-name-corporate,Name
142 melm 411$a      Name-and-title
143 #melm 411$t     title,author,Author-title,Title-series
144 melm 411$t      Author-title,Title-series
145 melm 411        Author,Conference-name
146 #melm 411       author,Author-name-corporate,Name
147 #melm 411        Author-name-corporate,Name
148 melm 440$a      Title-series:w,Title-series:p
149 melm 440$9      Koha-Auth-Number
150 melm 440        Title-series:w,Title-series:p,Title,Title-series
151 melm 490$a      Title-series:w,Title-series:p
152 melm 490$9      Koha-Auth-Number
153 melm 490        Title,Title-series
154
155 melm 500        Note:w,Note:p
156 melm 502        Material-type
157 melm 505$r      Author
158 melm 505$t      Title
159 melm 505        Note:w,Note:p
160 melm 510        Indexed-by
161 melm 520        Abstract:w,Abstract:p
162 melm 521$a      lex:w,lex:p,lex:n
163 melm 526$c      arl,arl:n
164 melm 526$d      arp,arp:n
165 #melm 533$d     pubdate,pubdate:s
166 #melm 541$d     Date-of-acquisition,Date-of-acquisition:s
167 melm 590        Note:w,Note:p
168
169 melm 600$a      Name-and-title,Name,Personal-name,Subject-name-personal,Subject,Subject:p
170 melm 600$t      Name-and-title,Title,Subject,Subject:p
171 melm 600$9      Koha-Auth-Number
172 #melm 600       Name,Personal-name,Subject-heading,Subject-name-personal
173 melm 600        Name,Personal-name,Subject-name-personal,Subject,Subject:p
174 melm 610$a      Name-and-title,Subject,Subject:p
175 melm 610$t      Name-and-title,Title,Subject,Subject:p
176 melm 610$9      Koha-Auth-Number
177 melm 610        Name,Subject,Subject:p,Corporate-name
178 melm 611$a      Name-and-title,Subject,Subject:p
179 melm 611$t      Name-and-title,Title,Subject,Subject:p
180 melm 611$9      Koha-Auth-Number
181 melm 611        Conference-name,Name,Subject,Subject:p
182 melm 630$n      Thematic-number,Subject,Subject:p
183 melm 630$r      Music-key,Subject,Subject:p
184 melm 630$9      Koha-Auth-Number
185 melm 630        Subject,Subject:p
186 melm 650$9      Koha-Auth-Number
187 melm 650        Subject,Subject:p
188 melm 651$9      Koha-Auth-Number
189 melm 651        Name-geographic,Subject,Subject:p
190 melm 652$9      Koha-Auth-Number
191 #melm 652       subject-heading,subject-heading:p
192 melm 653$a      Index-term-uncontrolled:w,Index-term-uncontrolled:p,Subject,Subject:p
193 melm 653$9      Koha-Auth-Number
194 melm 653        Subject,Subject:p
195 melm 654$9      Koha-Auth-Number
196 melm 654        Subject,Subject:p
197 melm 655$a      Index-term-genre:w,Index-term-genre:p,Subject,Subject:p
198 melm 655$9      Koha-Auth-Number
199 melm 655        Subject,Subject:p
200 melm 656$9      Koha-Auth-Number
201 melm 656        Subject,Subject:p
202 melm 657$9      Koha-Auth-Number
203 melm 657        Subject,Subject:p
204 melm 658$a      curriculum:w,curriculum:p,Subject,Subject:p
205 melm 658$b      curriculum:w,curriculum:p,Subject,Subject:p
206 melm 658$c      curriculum:w,curriculum:p,Subject,Subject:p
207 melm 658        Subject,Subject:p
208 melm 690$9      Koha-Auth-Number
209 melm 690        Subject,Subject:p
210
211 melm 700$9      Cross-Reference,Koha-Auth-Number
212 melm 700$a      Author,Author:p
213 melm 700$n      Thematic-number
214 melm 700$r      Music-key
215 #melm 700$t     author,Author-title,Name-and-title,Title,Title-uniform
216 melm 700$t      Author-title,Name-and-title,Title,Title-uniform
217 melm 700        Author,Author:p,Author-name-personal,Name,Editor,Personal-name
218 #melm 710$t     author,Author-title,Name-and-title,Title,Title-uniform
219 melm 710$t      Author-title,Name-and-title,Title,Title-uniform
220 #melm 710$a     author,author:p,Name-and-title
221 melm 710$a      Name-and-title
222 melm 710$9      Koha-Auth-Number
223 melm 710        Author,Author:p,Corporate-name,Name
224 melm 711$a      Name-and-title
225 #melm 711$t     author,Author-title,Title,Title-uniform
226 melm 711$t      Author-title,Title,Title-uniform
227 melm 711$9      Koha-Auth-Number
228 #melm 711       author,Author-name-corporate,Name,Conference-name
229 melm 711        Author,Author:p,Author-name-corporate,Name,Conference-name
230 melm 730$n      Thematic-number
231 melm 730$r      Music-key
232 melm 730$9      Koha-Auth-Number
233 melm 730        Title,Title:p,Title-uniform
234 melm 740        Title,Title:p,Title-other-variant
235 melm 751$a      Name-geographic
236 melm 751$9      Koha-Auth-Number
237 melm 751        Name-geographic
238 melm 770$w      Record-control-number
239 melm 772$w      Record-control-number
240 melm 773$a      Host-item
241 melm 773$9      Host-Item-Number
242 melm 773$t      Host-item
243 melm 773$w      Record-control-number
244 melm 774$w      Record-control-number
245 melm 775$w      Record-control-number
246 melm 776$w      Record-control-number
247 melm 777$w      Record-control-number
248 melm 780$t      Title
249 melm 780$w      Record-control-number
250 melm 780        Title,Title:p,Title-former,Related-periodical
251 melm 785$w      Record-control-number
252 melm 785        Title,Title:p,Title-later,Related-periodical
253 melm 787$w      Record-control-number
254
255 melm 800$a      Name-and-title,Title-series:w,Title-series:p
256 #melm 800$t     author,Author-title,Name-and-title,Title,Title-series
257 melm 800$t      Author-title,Name-and-title,Title,Title-series:w,Title-series:p
258 melm 800$9      Koha-Auth-Number
259 melm 800$w      Record-control-number
260 melm 800        Author,Author-name-personal,Name,Personal-name
261 melm 810$a      Name-and-title,Title-series:w,Title-series:p
262 melm 810$t      Author-title,Name-and-title,Title,Title-series:w,Title-series:p
263 melm 810$w      Record-control-number
264 melm 810$9      Koha-Auth-Number
265 melm 810        Author,Corporate-name,Author-name-corporate,Name
266 melm 811$a      Name-and-title,Title-series:w,Title-series:p
267 melm 811$9      Koha-Auth-Number
268 #melm 811$t     author,Author-title,Name-and-title,Title,Title-series
269 melm 811$t      Author-title,Name-and-title,Title,Title-series:w,Title-series:p
270 melm 811$w      Record-control-number
271 melm 811        Author,Author-name-corporate,Name,Conference-name
272 melm 830$w      Record-control-number
273 melm 830$9      Koha-Auth-Number
274 melm 830        Title,Title-series:w,Title-series:p
275 melm 840        Title,Title-series:w,Title-series:p
276
277 ###############################
278 # Koha Local-Use Biblio Indexes
279 melm 999$c      Local-Number:n,Local-Number:w,Local-Number:s
280 melm 999$d      biblioitemnumber:n,biblioitemnumber:w,biblioitemnumber:s
281 melm 942$0      totalissues:n,totalissues:s
282 melm 942$2      cn-bib-source
283 melm 942$6      cn-bib-sort:n,cn-bib-sort:s
284 melm 942$c      itemtype:w,itemtype:p,itype:w,itype:p
285 melm 942$n      Suppress:w,Suppress:n
286
287 # need to check bib1
288 melm 942$h      cn-class
289 melm 942$i      cn-item
290 melm 942$k      cn-prefix
291 melm 942$m      cn-suffix
292
293 # Items Indexes
294 melm 952$0      withdrawn:n,withdrawn:w
295 melm 952$1      lost,lost:n
296 melm 952$2      classification-source
297 melm 952$3      materials-specified
298 melm 952$4      damaged:n,damaged:w
299 melm 952$5      restricted:n,restricted:w
300 melm 952$6      cn-sort:n,cn-sort:s
301 melm 952$7      notforloan:n,notforloan:w
302 melm 952$8      ccode:w,ccode:p
303 melm 952$9      itemnumber:n,itemnumber:s
304 melm 952$a      homebranch
305 melm 952$b      holdingbranch
306 melm 952$c      location
307
308 #dateaccessioned
309 melm 952$d      Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s
310 melm 952$e      acqsource
311 melm 952$f      coded-location-qualifier
312 melm 952$g      price
313 #melm 952$h     
314 melm 952$i      Number-local-acquisition
315 melm 952$j      stack:n,stack:w
316 #melm 952$k     
317 melm 952$l      issues:n,issues:w,issues:s
318 melm 952$m      renewals:n,renewals:w
319 melm 952$n      reserves:n,reserves:w
320 melm 952$o      Local-classification:w,Local-classification:p,Local-classification:s
321 melm 952$p      barcode,barcode:n
322 melm 952$q      onloan:n,onloan:w
323 melm 952$r      datelastseen
324 melm 952$s      datelastborrowed
325 melm 952$t      copynumber
326 melm 952$u      uri:u
327 melm 952$v      replacementprice
328 melm 952$w      replacementpricedate
329 #melm 952$x
330 melm 952$y      itype:w,itype:p
331 melm 952$z      Note:w,Note:p