Changeset 183


Ignore:
Timestamp:
1999-03-04T09:26:50+13:00 (25 years ago)
Author:
rjmcnab
Message:

Modified stuff.

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/comproto.asn

    r179 r183  
    5757
    5858  -- Authority
    59   authListRequest            [12] IMPLICIT AuthListRequest,
    60   authListResponse           [13] IMPLICIT AuthListResponse,
    61   editAuthListRequest        [14] IMPLICIT EditAuthListRequest,
    62   editAuthListResponse       [15] IMPLICIT EditAuthListResponse,
     59--  authListRequest            [12] IMPLICIT AuthListRequest,
     60--  authListResponse           [13] IMPLICIT AuthListResponse,
     61--  editAuthListRequest        [14] IMPLICIT EditAuthListRequest,
     62--  editAuthListResponse       [15] IMPLICIT EditAuthListResponse,
    6363
    6464  -- an authority mirror is a mirror of THIS authority
    65   authMirListRequest         [16] IMPLICIT AuthMirListRequest,
    66   authMirListResponse        [17] IMPLICIT AuthMirListResponse,
    67   editAuthMirListRequest     [18] IMPLICIT EditAuthMirListRequest,
    68   editAuthMirListResponse    [19] IMPLICIT EditAuthMirListResponse,
     65--  authMirListRequest         [16] IMPLICIT AuthMirListRequest,
     66--  authMirListResponse        [17] IMPLICIT AuthMirListResponse,
     67--  editAuthMirListRequest     [18] IMPLICIT EditAuthMirListRequest,
     68--  editAuthMirListResponse    [19] IMPLICIT EditAuthMirListResponse,
    6969
    7070  colListRequest             [20] IMPLICIT ColListRequest,
    7171  colListResponse            [21] IMPLICIT ColListResponse,
    72   editColListRequest         [22] IMPLICIT EditColListRequest,
    73   editColListResponse        [23] IMPLICIT EditColListResponse,
    74 
    75   colMirListRequest          [24] IMPLICIT ColMirListRequest,
    76   colMirListResponse         [25] IMPLICIT ColMirListResponse,
    77   editColMirListRequest      [26] IMPLICIT EditColMirListRequest,
    78   editColMirListResponse     [27] IMPLICIT EditColMirListResponse,
     72--  editColListRequest         [22] IMPLICIT EditColListRequest,
     73--  editColListResponse        [23] IMPLICIT EditColListResponse,
     74
     75--  colMirListRequest          [24] IMPLICIT ColMirListRequest,
     76--  colMirListResponse         [25] IMPLICIT ColMirListResponse,
     77--  editColMirListRequest      [26] IMPLICIT EditColMirListRequest,
     78--  editColMirListResponse     [27] IMPLICIT EditColMirListResponse,
    7979
    8080  -- Collection
     
    132132-- for simplicity.
    133133
    134 AuthListRequest ::= SEQUENCE {
    135 }
    136 
    137 AuthListResponse ::= SEQUENCE {
    138   authList  [1] IMPLICIT StringSet
    139 }
    140 
    141 
    142 EditAuthListRequest ::= SEQUENCE {
    143   editAction EditAction,
    144   authority  GeneralString
    145 }
    146 
    147 EditAuthListResponse ::= SEQUENCE {
    148 }
    149 
    150 
    151 AuthMirListRequest ::= SEQUENCE {
    152   limitNumber [1] IMPLICIT INTEGER OPTIONAL,
    153   limitDomain [2] IMPLICIT GeneralString OPTIONAL
    154 }
    155 
    156 AuthMirListResponse ::= SEQUENCE {
    157   authMirList [1] IMPLICIT HostPortSet
    158 }
    159 
    160 
    161 EditAuthMirListRequest ::= SEQUENCE {
    162   editAction EditAction,
    163   authMir    HostPort
    164 }
    165 
    166 EditAuthMirListResponse ::= SEQUENCE {
    167 }
     134-- AuthListRequest ::= SEQUENCE {
     135-- }
     136
     137-- AuthListResponse ::= SEQUENCE {
     138--   authList  [1] IMPLICIT StringSet
     139-- }
     140
     141
     142-- EditAuthListRequest ::= SEQUENCE {
     143--   editAction EditAction,
     144--   authority  GeneralString
     145-- }
     146
     147-- EditAuthListResponse ::= SEQUENCE {
     148-- }
     149
     150
     151-- AuthMirListRequest ::= SEQUENCE {
     152--   limitNumber [1] IMPLICIT INTEGER OPTIONAL,
     153--   limitDomain [2] IMPLICIT GeneralString OPTIONAL
     154-- }
     155
     156-- AuthMirListResponse ::= SEQUENCE {
     157--   authMirList [1] IMPLICIT HostPortSet
     158-- }
     159
     160
     161-- EditAuthMirListRequest ::= SEQUENCE {
     162--   editAction EditAction,
     163--   authMir    HostPort
     164-- }
     165
     166-- EditAuthMirListResponse ::= SEQUENCE {
     167-- }
    168168
    169169
     
    176176
    177177
    178 EditColListRequest ::= SEQUENCE {
    179   editAction EditAction,
    180   colInfo    ShortColInfo
    181 }
    182 
    183 EditColListResponse ::= SEQUENCE {
    184 }
    185 
    186 
    187 ColMirListRequest ::= SEQUENCE {
    188   limitNumber [1] IMPLICIT INTEGER OPTIONAL,
    189   limitDomain [2] IMPLICIT GeneralString OPTIONAL
    190 }
    191 
    192 ColMirListResponse ::= SEQUENCE {
    193   colMirList [1] IMPLICIT ShortColInfoSet
    194 }
    195 
    196 
    197 EditColMirListRequest ::= SEQUENCE {
    198   editAction EditAction,
    199   colMirInfo ShortColInfo
    200 }
    201 
    202 EditColMirListResponse ::= SEQUENCE {
    203 }
     178-- EditColListRequest ::= SEQUENCE {
     179--   editAction EditAction,
     180--   colInfo    ShortColInfo
     181-- }
     182
     183-- EditColListResponse ::= SEQUENCE {
     184-- }
     185
     186
     187-- ColMirListRequest ::= SEQUENCE {
     188--   limitNumber [1] IMPLICIT INTEGER OPTIONAL,
     189--   limitDomain [2] IMPLICIT GeneralString OPTIONAL
     190-- }
     191
     192-- ColMirListResponse ::= SEQUENCE {
     193--   colMirList [1] IMPLICIT ShortColInfoSet
     194-- }
     195
     196
     197-- EditColMirListRequest ::= SEQUENCE {
     198--   editAction EditAction,
     199--   colMirInfo ShortColInfo
     200-- }
     201
     202-- EditColMirListResponse ::= SEQUENCE {
     203-- }
    204204
    205205
     
    216216ColInfoResponse ::= SEQUENCE {
    217217  shortInfo   [0] IMPLICIT ShortCollectionInfo,
    218   -- I've taken out fullName and put it in the interface documents
    219   public      [2] IMPLICIT BOOLEAN,    -- whether has anonymous access
    220   beta        [3] IMPLICIT BOOLEAN,    -- beta if still under development
     218  isPublic    [2] IMPLICIT BOOLEAN,    -- whether has anonymous access
     219  isBeta      [3] IMPLICIT BOOLEAN,    -- beta if still under development
    221220  builddate   [4] IMPLICIT GeneralizedTime,
    222221  languages   [5] IMPLICIT StringSet,  -- languages in the collection
     
    298297
    299298
    300 -- filter options which might be supported for text collections
     299-- filter options which might be supported for the query filter
    301300--
    302 -- QueryType      enumerated
    303 -- Index          enumerated
    304 -- Casefold       boolean
    305 -- Stem           boolean
    306 -- StartResults   integer
    307 -- EndResults     integer
    308 -- Subcollection  enumerated
    309 -- Query          string ???
    310 -- Ranking        enumerated
    311 --
    312 -- filter options which might be supported for music collections
    313 -- MatchAlgorithm
    314 -- PitchMode
    315 -- UseRhythm
    316 -- RestMode
    317 -- MatchMode
    318 -- MaxDist
    319 -- Count
     301-- onePerQuery StartResults   integer
     302-- onePerQuery EndResults     integer
     303-- onePerQuery InverseOrder   boolean
     304-- onePerQuery Ordering       enumerated (rank, or metadata field)
     305-- onePerTerm  Term           string ???
     306-- onePerTerm  MimeType       enumerated
     307-- onePerTerm  Language       enumerated
     308-- onePerTerm  MatchOption    enumerated (must match, can match, mustn't match)
     309-- onePerTerm  Casefold       boolean
     310-- onePerTerm  Stem           boolean
     311-- onePerTerm  Index          enumerated
     312-- onePerTerm  Subcollection  enumerated
    320313
    321314InfoFilterOptionsRequest ::= SEQUENCE {
     
    323316
    324317InfoFilterOptionsResponse ::= SEQUENCE {
    325   mimeTypes     StringSequence,
    326   filterOptions SET OF FilterOption,
     318  filterOptions SET OF FilterDescript
     319}
     320
     321FilterDescript ::= SEQUENCE {
     322  filterName GeneralString,
     323  filterOptions SET OF FilterOption
    327324}
    328325
     
    330327  name        GeneralString,
    331328  type        ENUMERATED {boolean(0), integer(1), enumerated(2), string(3)},
     329  repeatable  ENUMERATED {onePerQuery(0), onePerTerm(1), nPerTerm(2)},
    332330  default     GeneralString,
     331  -- the interpretation of the validValues depends on the type
     332  -- for boolean: the first value is the false value, the second is true value
     333  -- for integer: the first value is the minimum, the second the maximum
     334  -- for enumerated: all values a listed
     335  -- for string: this value is ignored
    333336  validValues StringSequence
    334337}
     
    342345
    343346FilterRequest ::= SEQUENCE {
    344   filterOptions       [0] IMPLICIT SEQUENCE OF OptionValue,
    345   docSet              [1] IMPLICIT SEQUENCE OF GeneralString OPTIONAL,
    346   filterResultOptions [2] BIT STRING {termFreq(0), matchTerms(1), docID(2), subCol(3),
     347  filterName          [0] GeneralString,
     348  filterOptions       [1] IMPLICIT SEQUENCE OF OptionValue,
     349  docSet              [2] IMPLICIT StringSequence OPTIONAL,
     350  filterResultOptions [3] BIT STRING {termFreq(0), matchTerms(1), docID(2), subCol(3),
    347351                                      ranking(4), docFreq(5)}
    348352}
  • trunk/gsdl/src/recpt/queryaction.cpp

    r174 r183  
    1212/*
    1313   $Log$
     14   Revision 1.2  1999/03/03 20:26:50  rjmcnab
     15
     16   Modified stuff.
     17
    1418   Revision 1.1  1999/02/28 22:45:21  rjmcnab
    1519
     
    3034  arg_ainfo.defaultstatus = cgiarginfo::weak;
    3135  arg_ainfo.argdefault = "q";
    32   arg_ainfo.savedarginfo = cgiarginfo::must;
    33   argsinfo.addarginfo (NULL, arg_ainfo);
    34 
    35   // "i"
    36   arg_ainfo.shortname = "i";
    37   arg_ainfo.longname = "index";
    38   arg_ainfo.multiplechar = true;
    39   arg_ainfo.defaultstatus = cgiarginfo::weak;
    40   arg_ainfo.argdefault = "";
    4136  arg_ainfo.savedarginfo = cgiarginfo::must;
    4237  argsinfo.addarginfo (NULL, arg_ainfo);
     
    142137
    143138bool queryaction::check_cgiargs (cgiargsclass &/*args*/, ostream &/*logout*/) {
    144   // extract h, j, and n arguments, use if not already defined
    145 
    146   // combine to form i argument
    147 
    148139  // check t argument
    149140
Note: See TracChangeset for help on using the changeset viewer.