Add Ubuntu Vivid 15.04
[yaz-moved-to-github.git] / src / oclcui.asn
1 UserInfoFormat-oclcUserInformation
2 {Z39-50-userInfoFormat OCLCUserInformation (7)} DEFINITIONS ::=
3 BEGIN
4
5 --
6 -- This format is returned from the server at
7 --      fsz3950test.oclc.org:210
8 -- I found the definition at
9 --      http://www.oclc.org/firstsearch/documentation/z3950/config_guide.htm
10 --
11 -- I have added OPTIONAL modifiers to the `dblist' and and `code'
12 -- elements because they appear to be admitted from the APDU returned
13 -- as an Init diagnostic from fsz3950test.oclc.org:210.  Adam further
14 -- removed the SEQUENCE structure, changed failReason to a BOOLEAN and
15 -- deleted diagnosticSetId altogether, to make the ASN.1 conform to
16 -- what's actually returned on the wire.  Finally, I removed the
17 -- OPTIONAL on failReason on the advice of OCLC's Keith Neibarger
18 -- <neibarge@oclc.org> (although he'd also advised me, wrongly, that I
19 -- could remove the OPTIONAL on dblist).
20
21 OCLC-UserInformation ::= SEQUENCE {
22     motd        [1] IMPLICIT VisibleString OPTIONAL,
23     dblist      SEQUENCE OF DBName OPTIONAL,
24     failReason  [3] IMPLICIT BOOLEAN OPTIONAL,
25     code        [1] IMPLICIT INTEGER OPTIONAL,
26     text        [2] IMPLICIT VisibleString OPTIONAL
27 }
28
29 DBName ::= [2] IMPLICIT VisibleString
30
31 END
32