SRW, CQL, 2003
[yaz-moved-to-github.git] / ccl / bib1
1 # $Id: bib1,v 1.12 2002-10-14 19:45:36 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 term u=1016 t=l,r s=pw,al
32 # Common short-hand access points.
33 au   u=1    s=pw t=l,r          # author
34 sp   u=1    s=pw t=l,r          # author
35 ti   u=4    s=pw t=l,r          # title
36 isbn u=7
37 issn u=8
38 cc   u=20
39 su   u=21   s=pw
40 date u=30   r=o s=pw
41 dp   u=31   r=o
42 da   u=32   r=o
43 la   u=54   s=pw
44 ab   u=62   s=pw
45 note u=63   s=pw
46 af   u=1006 s=pw
47 rel         s=9
48 cln
49
50 # Relation Attributes
51 rel:lt      r=1
52 rel:le      r=2
53 rel:eq      r=3
54 rel:ge      r=4
55 rel:gt      r=5
56 rel:ne      r=6
57 rel:phon    r=100
58 rel:stem    r=101
59 rel:rele    r=102
60 rel:alwa    r=103
61
62 # Position Attributes
63 pos:ff      p=1
64 pos:fs      p=2
65 pos:af      p=3
66
67 # Structure Attributes
68 str:wp      s=pw
69 str:phrase  s=1
70 str:word    s=2
71 str:key     s=3
72 str:year    s=4
73 str:date    s=5
74 str:wlist   s=6
75 str:dateu   s=100
76 str:daten   s=101
77 str:nameu   s=102
78 str:struc   s=103
79 str:urx     s=104
80 str:fft     s=105
81 str:dt      s=106
82 str:ln      s=107
83 str:str     s=108
84 str:num     s=109
85
86 # Truncation Attributes
87 tru:right   t=1
88 tru:left    t=2
89 tru:both    t=3
90 tru:none    t=100
91 tru:proh    t=101
92 tru:re1     t=102
93 tru:re2     t=103
94
95 # Completeness Attributes
96 com:is      c=1
97 com:cs      c=2
98 com:cf      c=3
99
100 exp:category exp1,1=1
101
102 # These special directives defines names of keywords for parser
103 @and og *             # either 'or' or *
104 @or eller           # either 'eller' or +
105 @not ikke            # and so on..
106 @set s set
107 @case 0               # case insenstive (1 for case sensitive)
108 @truncation * ?
109 @field or
110
111 # Aliases 
112 #
113 # forfatter=x is equivalent to au=x
114 forfatter au
115 # tiau=x is equivalent to ti=x or ti=x
116 tiau ti au