Directive s=pw sets structure to phrase if term includes blank(s).
[yaz-moved-to-github.git] / ccl / bib1
1 # $Id: bib1,v 1.8 2001-03-22 21:23:30 adam Exp $
2 # CCL qualifiers and their mappings
3 #
4 # Each line takes the form:
5 #   name      [<attributeset>,]<type>=<val>,<val>..   <type>=<val> ...
6 # Where type is one of:
7 #    u       use-attribute          
8 #    r       relation-attribute    )
9 #    p       position-attribute
10 #    s       structure-attribute
11 #    t       truncation-attribute
12 #    c       completeness-attribute
13 #
14 # Special value for relation:
15 #    o       ordered. Tells the CCL parser to convert a ccl relation
16 #            to a bib-1 relation (1,2,..6).
17 # Special value for structure:
18 #    pw      phrase/word. The CCL parser will decide whether phrase or word
19 #            is needed. Phrase is used if term contain blanks; otherwise
20 #            Word is used.
21 #    al      and-list. AND operation is put between each term.
22 #    ol      or-list. OR operation is put between each term.
23 # Special value for truncation:
24 #    l       Allow left truncation if ? is at left side of term.
25 #    r       Allow right truncation if ? is at left side of term.
26 #    b       Allow left&right truncation if ? is at left&right side of term.
27 #    n       Set truncation explicitly to "none" if no ? is given.
28
29 # This rule is for CCL tokens where no fields are specified
30 term u=1016 t=l,r s=pw,al
31 # Common short-hand access points.
32 au   u=1    s=pw t=l,r          # author
33 ti   u=4    s=pw t=l,r          # title
34 isbn u=7
35 issn u=8
36 cc   u=20
37 su   u=21   s=pw
38 date u=30   r=o s=pw
39 dp   u=31   r=o
40 da   u=32   r=o
41 la   u=54   s=pw
42 ab   u=62   s=pw
43 note u=63   s=pw
44 af   u=1006 s=pw
45 rel         s=9
46 cln
47
48 # Relation Attributes
49 rel:lt      r=1
50 rel:le      r=2
51 rel:eq      r=3
52 rel:ge      r=4
53 rel:gt      r=5
54 rel:ne      r=6
55 rel:phon    r=100
56 rel:stem    r=101
57 rel:rele    r=102
58 rel:alwa    r=103
59
60 # Position Attributes
61 pos:ff      p=1
62 pos:fs      p=2
63 pos:af      p=3
64
65 # Structure Attributes
66 str:wp      s=pw
67 str:phrase  s=1
68 str:word    s=2
69 str:key     s=3
70 str:year    s=4
71 str:date    s=5
72 str:wlist   s=6
73 str:dateu   s=100
74 str:daten   s=101
75 str:nameu   s=102
76 str:struc   s=103
77 str:urx     s=104
78 str:fft     s=105
79 str:dt      s=106
80 str:ln      s=107
81 str:str     s=108
82 str:num     s=109
83
84 # Truncation Attributes
85 tru:right   t=1
86 tru:left    t=2
87 tru:both    t=3
88 tru:none    t=100
89 tru:proh    t=101
90 tru:re1     t=102
91 tru:re2     t=103
92
93 # Completeness Attributes
94 com:is      c=1
95 com:cs      c=2
96 com:cf      c=3
97
98 exp:category exp1,1=1
99
100 # These special directives defines names of keywords for parser
101 @and og *             # either 'or' or *
102 @or eller   +         # either 'eller' or +
103 @not ikke -           # and so on..
104 @set s set
105 @case 0               # case insenstive (1 for case sensitive)
106 @truncation * ?