Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
[yaz-moved-to-github.git] / src / facet.asn
1 UserInfoFormat-facet-1
2 {Z39-50-userInfoFormat facet-1 (1)} DEFINITIONS ::=
3 BEGIN
4 IMPORTS AttributeList, Term FROM Z39-50-APDU-1995;
5 FacetList ::= SEQUENCE OF FacetField;
6
7 FacetField ::= SEQUENCE {
8   -- attributes will specify:
9   --   1=use (field name)
10   --   2=sortorder 0=count descending, 1=alpha ascending  ..
11   --   3=limit (integer)
12   --   4=start (integer), starting from 1
13   attributes [1] IMPLICIT AttributeList,
14   terms      [2] IMPLICIT SEQUENCE OF FacetTerm OPTIONAL
15 }
16
17 FacetTerm ::= SEQUENCE {
18   term  Term,
19   count INTEGER
20 }
21
22 END