(bug #4062) add item index in zebra conf
[koha.git] / etc / zebradb / ccl.properties
index 7e49986..f4cb267 100644 (file)
@@ -1,16 +1,16 @@
 # CCL field mappings
 # There are four types of lines in a CCL profile: 
 #  1. qualifier specification
-#      qualifier-name   [  attributeset   ,]  type   =   val   [  attributeset   ,]  type   =   val   ...
+#   qualifier-name   [  attributeset   ,]  type   =   val   [  attributeset   ,]  type   =   val   ...
 # 
 #  2. qualifier alias
-#      q q1 q2 q3
+#   q q1 q2 q3
 #
 #  3. comments
-#      comments begin with #
+#   comments begin with #
 #
 #  4. directives
-#      @   directive    value
+#   @   directive    value
 #
 # see http://indexdata.dk/yaz/doc/tools.tkl#CCL for more details
 #
@@ -20,6 +20,7 @@ term t=l,r  s=al
 # Simple rule for a field called "clean"
 clean t=l,r
 
+###################################################
 ### 1. BIB1 USE ATTRIBUTES MAPPED TO CCL QUALIFIERS
 #
 # SEE http://www.loc.gov/z3950/agency/bib1.html
@@ -89,7 +90,7 @@ kw Any
 #                           or a conference or meeting      410, 411, 700, 710,
 #                           name.  (No subject name         711, 800, 810, 811
 #                           headings are included.)
-Author 5=1 1=1003 s=pw
+Author 1=1003 s=pw
 au Author
 aut 1=1003
 #Author-name-and-     1000  A personal or corporate author, 100/2XX, 110/2XX,
@@ -244,14 +245,13 @@ callnum Local-classification
 #                           location.  The code space is
 #                           defined by the target.
 Code-institution 1=56
-homebranch Code-institution
 
 #
 #Code-language          54  A code that indicates the       008/35-37, 041
 #                           language of the item.
 #                           The codes are defined by the
 #                           target.
-language          1=54
+language 1=54
 ln language
 
 #Code-map-scale       1024  Coded form of cartographic      034
@@ -273,7 +273,7 @@ ln language
 Record-type 1=1001
 rtype Record-type
 mc-rtype Record-type
-mus 1=1001
+mus Record-type
 
 #Concept-reference    1015  Used within Z39.50-1988;
 #                           included here for historical
@@ -292,7 +292,7 @@ mus 1=1001
 #                           publication.  For example:
 #                           review, catalog, encyclopedia,
 #                           directory.
-Content-type         1=1034 t=b
+Content-type 1=1034 t=b
 ctype Content-type
 
 #Control number-BNB     10  Character string that uniquely  015
@@ -313,8 +313,8 @@ ctype Content-type
 #Control number-LC       9  Character string that uniquely  010, 011
 #                           identifies a record in the
 #                           Library of Congress database.
-#LC-card-number 1=9
-#lc-card LC-card-number
+LC-card-number 1=9
+lc-card LC-card-number
 
 #Control number-local   12  Character string that uniquely  001, 035
 #                           identifies a record in a local
@@ -322,6 +322,7 @@ ctype Content-type
 #                           is not one of the four listed
 #                           above).
 Local-number 1=12
+sn Local-number
 
 #Date                   30  The point of time at which      005, 008/00-05,
 #                           a transaction or event          008/07-10, 260$c,
@@ -386,7 +387,7 @@ acqdate Date-of-acquisition
 #                           identifies a book uniquely.
 #                           Cf. ANSI/NISO Z39.21 and
 #                           ISO 2108.
-ISBN         1=7
+ISBN 1=7
 nb ISBN
 
 #Identifier-ISSN         8  International Standard Serial   022, 4XX$x,
@@ -395,7 +396,7 @@ nb ISBN
 #                           identifies a serial uniquely.
 #                           Cf. ANSI/NISO z39.9 and
 #                           ISO 3297.
-ISSN         1=8
+ISSN 1=8
 ns ISSN
 
 #Identifier-legal-      49  The copyright registration      017
@@ -434,9 +435,6 @@ ns ISSN
 #                           are indexed together in many    030, 035, 037
 #                           online public-access catalogs.
 #Identifier-standard  1=1007 4=6
-Local-number  1=12
-#sn Identifier-standard
-sn Local-number
 #
 #Identifier-stock     1028  A stock number that could be    037
 #                           used for ordering the item.
@@ -460,12 +458,7 @@ Stock-number 1=1028
 #                           of the item, e.g., cassette,
 #                           kit, computer database,
 #                           computer file.
-Material-type  1=1031
-#collection Material-type
-#collection-code Material-type
-#mt Material-type
-#mc-collection Material-type
-#dt-lh Material-type
+Material-type 1=1031
 
 #Music-key            1025  A statement of the key in       $r in the following:
 #                           which the music is written.     130, 240, 243, 630,
@@ -493,18 +486,26 @@ Material-type     1=1031
 #                           of persons that is identified   810
 #                           by a particular name. (Subject
 #                           name headings are included.)
-Corporate-name 1=2
+Corporate-name 1=Corporate-name
 cpn Corporate-name
 
+Corporate-name-heading 1=Corporate-name-heading
+Corporate-name-see 1=Corporate-name-see
+Corporate-name-seealso 1=Corporate-name-seealso
+
 #Name-conference         3  A meeting of individuals or     111, 411, 611, 711
 #                           representatives of various      811
 #                           bodies for the purpose of
 #                           discussing topics of common
 #                           interest.  (Subject name
 #                           headings are included.)
-Conference-name 1=3
+Conference-name 1=Conference-name
 cfn Conference-name
 
+Conference-name-heading 1=Conference-name-heading
+Conference-name-see 1=Conference-name-see
+Conference-name-seealso 1=Conference-name-seealso
+
 #Name-editor          1020  A person who prepared for       100 $a or 700 $a when
 #                           publication an item that is     the corresponding $e
 #                           not his or her own.             contains value 'ed.'
@@ -513,17 +514,32 @@ cfn Conference-name
 #Name-geographic        58  Name of a country,              651
 #                           jurisdiction, region, or
 #                           geographic feature.
-#Name-geographic        1=58
+Name-geographic 1=Name-geographic
+Name-geographic-heading 1=Name-geographic-heading
+Name-geographic-see 1=Name-geographic-see
+Name-geographic-seealso 1=Name-geographic-seealso
+
+# Genre/Form Term       9019 Geographic Term
+Term-genre-form 1=Term-genre-form
+Term-genre-form-heading 1=Term-genre-form-heading
+Term-genre-form-see 1=Term-genre-form-see
+Term-genre-form-seealso 1=Term-genre-form-seealso
 
 #Name-geographic-place- 59  City or town where an item      008/15-17, 260$a
 #publication                was published.
+Place-publication 1=59
+pl Place-publication
 
 #Name-personal           1  A person's real name,           100, 400, 600, 700,
 #                           pseudonym, title of nobility    800
 #                           nickname, or initials.
-Personal-name 1=1
+Personal-name 1=Personal-name
 pn Personal-name
 
+Personal-name-heading 1=Personal-name-heading
+Personal-name-see 1=Personal-name-see
+Personal-name-seealso 1=Personal-name-seealso
+
 #Name-publisher       1018  The organization responsible    260$b
 #                           for the publication of the
 #                           item.
@@ -535,7 +551,7 @@ pb Publisher
 #                           physical description,
 #                           relationship to other works,
 #                           or contents may be recorded.
-Note                   1=63
+Note 1=63
 nt Note
 
 #Record-source        1019  The USMARC code or name of the  008/39, 040
@@ -570,7 +586,7 @@ nt Note
 #Subject                21  The primary topic on which a    600, 610, 611, 630,
 #                           work is focused.                650, 651, 653, 654,
 #                                                           655, 656, 657, 69X
-Subject                1=21
+Subject 1=21
 su Subject
 su-to Subject
 su-geo Subject
@@ -672,7 +688,7 @@ su-na 1=1009
 #                           place, period of time treated,
 #                           or aspect of the subject
 #                           treated.
-#Subject-subdivision 1=47
+Subject-subdivision 1=47
 
 #Title                   4  A word, phrase, character,      130, 21X-24X, 440,
 #                           or group of characters,         490, 730, 740, 830,
@@ -682,8 +698,6 @@ su-na 1=1009
 #                                                           610, 611, 700, 710,
 #                                                           711, 800, 810, 811
 Title 1=4
-#5=1 1=4 s=pw
-#1=4
 ti Title
 
 #Title-abbreviated      43  Shortened form of the title;    210, 211 (obs.),
@@ -717,7 +731,7 @@ ti Title
 
 #Title-cover            36  The title printed on the        246i4
 #                           cover of an item as issued. 
-Title-cover            1=36
+Title-cover 1=36
 
 #Title-expanded         44  An expanded (or augmented)      214 (obs.), 246
 #                           title has been enlarged with
@@ -741,7 +755,7 @@ Title-cover            1=36
 #                           example, a journal title
 #                           when the record describes an
 #                           article in the journal.
-Host-item      1=1033
+Host-item 1=1033
 
 #Title-key              33  The unique name assigned to     222
 #                           a serial by the International
@@ -775,7 +789,7 @@ Host-item      1=1033
 #                           a group of separate, but        subfield $t in the
 #                           related, items.                 following: 400,410,
 #                                                           411, 800, 810, 811
-Title-series            1=5
+Title-series 1=5
 #series Title-series
 se Title-series
 
@@ -787,29 +801,44 @@ se Title-series
 #                           a work is to be identified      subfield $t in the
 #                           for cataloging purposes.        following: 700,710,
 #                                                           711
-Title-uniform           1=6
+Title-uniform 1=Title-uniform
 ut Title-uniform
-#Authority-number           Koha-Auth-Number  The Number   
-#                           for an authority to be searched subfield $9 in the
-#                           for cataloging purposes.        following: 700,701,702,710,
-#                                                           711,712 and some 6XX fields (Unimarc)
-Authority-Number           1=8910
-an Authority-Number
-Koha-Auth-Number Authority-Number
-
-#Authority/format-id        authtypecode  The Code 
-#                           associated to an authority type
-#                                                            152$b in authority records
-Authority/format-id           1=Authority/format-id
-at Authority/format-id
 
-#Heading-Entity             Information for Heading in an 
-#                           authority record 
-#                                                             usually 2.. fields
-Heading-Entity           1=Heading-Entity
-he Heading-Entity
+Title-uniform-heading 1=Title-uniform-heading
+Title-uniform-see 1=Title-uniform-see
+Title-uniform-seealso 1=Title-uniform-seealso
 
+#Authority-number           Koha-Auth-Number  The identifier of the the authority
+#                           record, stored in 001 in the authority record, and $9/$0 in the
+#                           field that record is linked to in the bib record
+Authority-Number 1=Koha-Auth-Number
+an Authority-Number
+Koha-Auth-Number Authority-Number
 
+#authtype                   A coded value representing the authority type
+#                                                            942$a in auth records
+authtype        1=authtype
+at authtype
+
+# Subdivisions
+
+Geographic-subdivision 1=Geographic-subdivision
+Chronological-subdivision 1=Chronological-subdivision
+Form-subdivision 1=Form-subdivision
+
+# Koha Local-Use Authority Indexes
+Heading 1=Heading
+he Heading
+See 1=See
+See-also 1=See-also
+Match-heading 1=Match-heading
+Match-heading-see-from 1=Match-heading-see-from
+Heading-use-main-or-added-entry 1=Heading-use-main-or-added-entry
+Heading-use-series-added-entry 1=Heading-use-series-added-entry
+Heading-use-subject-added-entry 1=Heading-use-subject-added-entry
+Subject-heading-thesaurus 1=Subject-heading-thesaurus
+
+###################################################
 ### 2. BIB1 RELATION ATTRIBUTES
 lt 2=1
 le 2=2
@@ -827,6 +856,7 @@ AlwaysMatches 2=103
 
 Within 2=104
 
+###################################################
 ### 3. BIB1 POSITION ATTRIBUTES
 first-in-field 3=1
 
@@ -840,58 +870,60 @@ startswithnt 3=1 5=101 6=3
 first-in-subfield 3=2
 any-position-in-field 3=3
 
+###################################################
 ### 4. BIB1 STRUCTURE ATTRIBUTES
 st-phrase 4=1
 phr st-phrase
-st-word        4=2
-st-key         4=3
-st-year        4=4
-st-date-normalized     4=5
-st-word-list   4=6
+st-word     4=2
+st-key  4=3
+st-year     4=4
+st-date-normalized  4=5
+st-word-list    4=6
 wrdl st-word-list
 #st-word
-st-date-un-normalized  4=100
-st-name-normalized     4=101
-st-name-un-normalized  4=102
-st-structure   4=103
-st-urx         4=104
-st-free-form-text      4=105
-st-document-text       4=106
+st-date-un-normalized   4=100
+st-name-normalized  4=101
+st-name-un-normalized   4=102
+st-structure    4=103
+st-urx  4=104
+st-free-form-text   4=105
+st-document-text    4=106
 st-local-number 4=107
-st-string      4=108
-st-numeric     4=109
+st-string   4=108
+# http://indexdata.dk/yaz/doc/tools.tkl#ccl.special.attribute.combos
+st-numeric  4=109 r=o
 #string 109
 
+###################################################
 ### 5. BIB1 TRUNCATION ATTRIBUTES
 right-Truncation 5=1
 rt right-Truncation
 rtrn right-Truncation
-left-Truncation        5=2
+left-Truncation     5=2
 ltrn left-Truncation
-left-and-right         5=3
+left-and-right  5=3
 rltrn left-and-right
-do-not-truncate        5=100
-process-in-search-term         5=101
-regExpr-1      5=102
+do-not-truncate     5=100
+process-in-search-term 5=101
+regExpr-1 5=102
 fuzzy 5=103
-regExpr-2      5=103
-Z39-58 5=104
+regExpr-2 5=103
+Z39-58  5=104
 
+###################################################
 ### 6. BIB1 STRUCTURE ATTRIBUTES
-incomplete-subfield    6=1
-complete-subfield      6=2
-complete-field         6=3
+incomplete-subfield 6=1
+complete-subfield 6=2
+complete-field 6=3
 
-### COMBINATIONS OF THE ABOVE
+###################################################
+### SPECIAL COMBINATIONS OF THE ABOVE
 ext 4=1 6=3
 
-## ATTRIBUTES NOT IN BIB1 OR ELSE ONES I DON"T KNOW WHERE IN BIB1 THEY BELONG
-#Language
-#ln 1=8805
-#language 1=8805
-#Musical Composition
-#mc
+###################################################
+## ATTRIBUTES NOT IN BIB1
 
+###
 # Koha Local-Use Biblio Indexes
 Control-number 1=9001
 biblionumber 1=9002
@@ -899,13 +931,19 @@ totalissues 1=9003
 cn-bib-source 1=9004
 cn-bib-sort 1=9005
 itemtype 1=9006
+mc-itemtype itemtype
 cn-class 1=9007
 cn-item 1=9008 
 cn-prefix 1=9009
 cn-suffix 1=9010
 Suppress 1=9011
+id-other 1=9012
 date-entered-on-file 1=date-entered-on-file
+extent 1=Extent
+llength 1=llength
+Summary 1=Summary
 
+###
 # Items Index
 withdrawn 1=8001
 lost 1=8002
@@ -914,12 +952,17 @@ materials-specified 1=8004
 damaged 1=8005
 restricted 1=8006
 cn-sort 1=8007
-notforloan 1=8008
+notforloan 1=8008 4=109
 ccode 1=8009
+mc-ccode ccode
 itemnumber 1=8010
-Code-institution 1=8011
+# homebranch 1=8011
+homebranch 1=homebranch
+branch homebranch
 holdingbranch 1=8012
 location 1=8013
+mc-loc location
+# defined as 1=32 above
 #Date-of-acquisition 1=8014
 acqsource 1=8015
 coded-location-qualifier 1=8016
@@ -939,21 +982,10 @@ uri 1=8028
 replacementprice 1=8029
 replacementpricedate 1=8030
 itype 1=8031
-mc itype
-# Publisher Location
-
-Place-publication 1=59
-pl Place-publication
-#pl 1=59
-
-# Extent
-#Extent 1=8001
+mc-itype itype
 
-#att 8900            
-#Call-Number 1=8900
 #date1 1=8801
 #date2 1=8802
-#language 8805
 ff8-22 1=8822
 ff8-23 1=8823
 ff8-34 1=8834
@@ -976,46 +1008,36 @@ ff8-34 1=8834
 # lastname,firstname entry in $100$a
 Author-personal-bibliography 1=8900
 aub Author-personal-bibliography
+
 # Author-in-order - firstname lastname in 245$c statement of responsibility
 Author-in-order 1=8901
 auo Author-in-order
 
-### LIMITS
-# AUDIENCE
+# Audience
 audience 1=8822
 aud audience
 
-# CONTENT and Literary form
+# Content and Literary form
 fiction 1=8833
 fic fiction
-#mystery 1=
+#mystery 1=?
 biography 1=8834
 bio biography
 
-# FORMAT
+# Format
 format 1=8823
-
-# format limit
+# format used as a limit FIXME: needed?
 l-format 1=8703
 
-#fmt format
-
-# BRANCH (of local library)
-branch 1=homebranch
-#1033
-
 Illustration-code 1=Illustration-code 
-# Item Type
 
-# Year limit
-#yr 1=8801 4=109 r=r
+# Lexile Number
+lex 1=9903 r=r
 
-## STATUSES
+## Statuses
 popularity 1=issues
 
-# Material Category
-#mc 1=8700
-## TYPE LIMITS
+## Type Limits
 dt-bks 1=8700
 dt-vis 1=8700
 dt-sr 1=8700
@@ -1041,6 +1063,7 @@ sort1 7=1
 sort2 7=2
 sort3 7=3
 
+###################################################
 # CCL DIRECTIVES
 # Truncation characters (it seems to take multiple arguments)
 @truncation ? *
@@ -1069,6 +1092,23 @@ sort3 7=3
 # a !n b
 # Integer n may be omitted - in which case distance is 1.
 
+###################################################
+# Rules for a few bath atts
+keyTitle         = 1=33
+possessingInstitution    = 1=1044
+name             = 1=1002
+personalName     = 1=1
+corporateName    = 1=2
+conferenceName   = 1=3
+uniformTitle     = 1=6
+isbn             = 1=7
+issn             = 1=8
+geographicName   = 1=58
+notes            = 1=63
+topicalSubject   = 1=1079
+genreForm        = 1=1075
+
+###################################################
 # Rules for a few GILS fields
 #north  gils-attset,u=2040 r=o
 #south  gils-attset,u=2041 r=o
@@ -1077,6 +1117,7 @@ sort3 7=3
 #distributor gils-attset,u=2000 s=pw
 #distributorname gils-attset,u=2001 s=pw
 
+###################################################
 # Explain fields
 ExplainCategory      exp1,1=1
 HumanStringLanguage  exp1,1=2
@@ -1090,3 +1131,7 @@ DateAdded            exp1,1=9
 DateChanged          exp1,1=10
 DateExpires          exp1,1=11
 ElementSetName       exp1,1=12
+
+Item 1=9520
+item Item
+