X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=etc%2Fzebradb%2Fccl.properties;h=775feed6e22a0abe3e8e925a530b96d1a615929b;hb=085f329d7aa947646b9ccee52a293b9c8dd7c640;hp=54b8ae97e94ca726796ee478e6cfccc8239d1156;hpb=4559e0e0e00d6fc0a2cbd4b840e8b78e11576126;p=koha_fer diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 54b8ae97e9..775feed6e2 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -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,9 +90,9 @@ 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, #title or a conference or meeting 111/2XX, subfields # name, and the title of the $a & $t in @@ -183,7 +184,7 @@ au Author # number from a system not # specified elsewhere in this # list of attributes. -Local-classification 4=1 1=20 +Local-classification 1=20 lcn Local-classification callnum Local-classification #Local-classification cc callnum dewey @@ -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 @@ -322,22 +322,24 @@ 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, # takes place. 008/11-14, 033,etc. -Date 1=30 4=109 r=r -#yr Date +# interpreting this as the copyright date in 260$c +copydate 1=30 r=r #Date-publication 31 The date (usually year) in 008/07-10, 260$c # which a document is published. 046, 533$d -Date-of-publication 1=31 4=109 r=r +Date-of-publication 1=pubdate r=r #dp Date-of-publication yr Date-of-publication +pubdate Date-of-publication #Date-acquisition 32 The date when a document was 541$d # acquired. -Date-of-acquisition 1=32 +Date-of-acquisition 1=Date-of-acquisition acqdate Date-of-acquisition #da Date-of-acquisition @@ -385,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, @@ -394,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 @@ -433,14 +435,10 @@ 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. Stock-number 1=1028 -bc Stock-number #Identifier-thematic 1030 The numeric designation for a $n in the following: # part/section of a work such as 130, 240, 243, 630, @@ -460,13 +458,7 @@ bc Stock-number # of the item, e.g., cassette, # kit, computer database, # computer file. -Material-type 1=1031 -#itemtype Material-type -#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, @@ -494,8 +486,12 @@ mc-collection Material-type # of persons that is identified 810 # by a particular name. (Subject # name headings are included.) -#Corporate-name 1=2 -#cpn Corporate-name +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 @@ -503,8 +499,12 @@ mc-collection Material-type # discussing topics of common # interest. (Subject name # headings are included.) -#Conference-name 1=3 -#cfn Conference-name +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 @@ -514,16 +514,31 @@ mc-collection Material-type #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 -#pn Personal-name +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 @@ -536,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 @@ -571,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 @@ -673,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, @@ -683,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.), @@ -718,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 @@ -742,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 @@ -776,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 @@ -788,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 @@ -823,9 +851,12 @@ relevance 2=102 rk 2=102 rank relevance +allrecords 1=_ALLRECORDS AlwaysMatches 2=103 + Within 2=104 +################################################### ### 3. BIB1 POSITION ATTRIBUTES first-in-field 3=1 @@ -839,60 +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 -wrdl 4=6 - -# there was a reason I didn't want to use this but it's -# escaped me -- JF -wrd 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-local number 4=107 -st-string 4=108 -st-numeric 4=109 +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 +# 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 -left-Truncation 5=2 -left-and-right 5=3 -do-not-truncate 5=100 -process-in-search-term 5=101 -regExpr-1 5=102 +rtrn right-Truncation +left-Truncation 5=2 +ltrn left-Truncation +left-and-right 5=3 +rltrn left-and-right +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 @@ -900,59 +931,59 @@ 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 +date-entered-on-file 1=date-entered-on-file +extent 1=Extent +llength 1=llength +Summary 1=Summary +### # Items Index -withdrawn 1=8001 4=109 -lost 1=8002 4=109 +withdrawn 1=8001 +lost 1=8002 classification-source 1=8003 materials-specified 1=8004 -damaged 1=8005 4=109 -restricted 1=8006 4=109 +damaged 1=8005 +restricted 1=8006 cn-sort 1=8007 -notforloan 1=8008 4=109 +notforloan 1=8008 ccode 1=8009 -itemnumber 1=8010 4=109 -Code-institution 1=8011 +mc-ccode ccode +itemnumber 1=8010 +# homebranch 1=8011 +homebranch 1=homebranch +branch homebranch holdingbranch 1=8012 location 1=8013 -Date-of-acquisition 1=8014 +# defined as 1=32 above +#Date-of-acquisition 1=8014 acqsource 1=8015 coded-location-qualifier 1=8016 price 1=8017 -stack 1=8018 4=109 -issues 1=8019 4=109 -renewals 1=8020 4=109 -reserves 1=8021 4=109 +stack 1=8018 +issues 1=8019 +renewals 1=8020 +reserves 1=8021 Local-classification 1=8022 barcode 1=8023 -onloan 1=8024 4=109 +bc barcode +onloan 1=8024 datelastseen 1=8025 datelastborrowed 1=8026 copynumber 1=8027 uri 1=8028 replacementprice 1=8029 replacementpricedate 1=8030 +itype 1=8031 +mc-itype itype -# Publisher Location - -Place-publication 1=59 -pl Place-publication -#pl 1=59 - -# Extent -#Extent 1=8001 - -#Summary 1=8002 -#att 8900 -#Call-Number 1=8900 -#date-entered-on-file 1=8800 #date1 1=8801 #date2 1=8802 -#language 8805 ff8-22 1=8822 ff8-23 1=8823 ff8-34 1=8834 @@ -960,10 +991,6 @@ ff8-34 1=8834 #att 8700 ff7-00 #att 8701 ff7-01 #att 8702 ff7-02 -#att 9520 withdrawn -#att 9521 lost -#lost 1=9521 4=109 -#att 9522 onloan ############## SUBJECT-RELATED # Topical Term @@ -979,48 +1006,33 @@ 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=1033 - Illustration-code 1=Illustration-code -# Item Type - -# Year limit -#yr 1=8801 4=109 r=r -## STATUSES -onloan 1=9522 -datedue 1=9522 +## Statuses +popularity 1=issues -popularity 1=9523 - -# Material Category -mc 1=8700 -## TYPE LIMITS +## Type Limits dt-bks 1=8700 dt-vis 1=8700 dt-sr 1=8700 @@ -1041,6 +1053,12 @@ r9 9=14 # Sorting title-sort-za 7=2 1=36 title-sort-az 7=1 1=36 + +sort1 7=1 +sort2 7=2 +sort3 7=3 + +################################################### # CCL DIRECTIVES # Truncation characters (it seems to take multiple arguments) @truncation ? * @@ -1069,6 +1087,23 @@ title-sort-az 7=1 1=36 # 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 +1112,7 @@ title-sort-az 7=1 1=36 #distributor gils-attset,u=2000 s=pw #distributorname gils-attset,u=2001 s=pw +################################################### # Explain fields ExplainCategory exp1,1=1 HumanStringLanguage exp1,1=2