Changeset 9930
- Timestamp:
- 2005-05-23T16:34:09+12:00 (19 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/comtypes.cpp
r9620 r9930 79 79 } 80 80 81 text_t ColInfoResponse_t::get_collectionmeta(text_t name, text_t lang) { 82 text_t value = collectionmeta[name][lang]; 83 if (value.empty()) { 84 value = collectionmeta[name][g_EmptyText]; 85 } 86 return value; 87 88 } 89 81 90 void InfoFiltersResponse_t::clear () { 82 91 filterNames.erase(filterNames.begin(), filterNames.end()); -
trunk/gsdl/src/recpt/comtypes.h
r8977 r9930 70 70 typedef multimap<text_t, pair<text_t, text_t>, less<text_t> > macros_map; 71 71 72 typedef map<text_t, text_tmap, lttext_t> collectionmeta_map; // maps meta name to langmap 73 72 74 struct ColInfoResponse_t { 73 void clear (); 74 ColInfoResponse_t () {clear();} 75 76 ShortColInfo_t shortInfo; 77 bool isPublic; 78 bool isBeta; 75 void clear (); 76 ColInfoResponse_t () {clear();} 77 text_t get_collectionmeta(text_t name, text_t lang); 78 79 ShortColInfo_t shortInfo; 80 bool isPublic; 81 bool isBeta; 79 82 bool isSegmented; 80 unsigned long buildDate; 81 text_tarray ccsCols; // empty if collection does not use cross-collection searching 82 text_tarray languages; 83 unsigned long numDocs; // 0 if not known 84 unsigned long numSections; // 0 if not known 85 unsigned long numWords; // 0 if not known 86 unsigned long numBytes; // 0 if not known 87 text_tmap collectionmeta; 88 text_tmap format; 89 macros_map collection_macros; // for collectionmacro config directive (> gsdl 2.53) 90 text_tmap building; 91 text_t httpdomain; // GRB: could these two http items need removing 92 text_t httpprefix; 93 text_t receptionist; 94 text_t buildType; // 'mg' or 'mgpp' 95 text_t authenticate; // 'document' or 'collection' 96 text_t auth_group; // 'mygroup' 'yourgroup' 97 text_tmap public_documents; // the acl to allow access to listed documents 98 text_tmap private_documents; // the acl to disallow access to listed documents 99 text_tarray searchTypes; // form, plain, empty if collection uses mg, or has no searching facility 83 unsigned long buildDate; 84 text_tarray ccsCols; // empty if collection does not use cross-collection searching 85 text_tarray languages; 86 unsigned long numDocs; // 0 if not known 87 unsigned long numSections; // 0 if not known 88 unsigned long numWords; // 0 if not known 89 unsigned long numBytes; // 0 if not known 90 //text_tmap collectionmeta; 91 collectionmeta_map collectionmeta; 92 text_tmap format; 93 macros_map collection_macros; // for collectionmacro config directive (> gsdl 2.53) 94 text_tmap building; 95 text_t httpdomain; // GRB: could these two http items need removing 96 text_t httpprefix; 97 text_t receptionist; 98 text_t buildType; // 'mg' or 'mgpp' or 'lucene' 99 text_t authenticate; // 'document' or 'collection' 100 text_t auth_group; // 'mygroup' 'yourgroup' 101 text_tmap public_documents; // the acl to allow access to listed documents 102 text_tmap private_documents; // the acl to disallow access to listed documents 103 text_tarray searchTypes; // form, plain, empty if collection uses mg, or has no searching facility 100 104 }; 101 105
Note:
See TracChangeset
for help on using the changeset viewer.