Changeset 1276 for trunk/gsdl/src/recpt
- Timestamp:
- 2000-07-12T16:51:05+12:00 (24 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/cgiwrapper.cpp
r1270 r1276 28 28 /* 29 29 $Log$ 30 Revision 1.31 2000/07/12 04:51:05 nzdl 31 added an error message when no "valid" collections are available 32 30 33 Revision 1.30 2000/07/05 21:49:31 sjboddie 31 34 Receptionist now caches collection information to avoid making multiple … … 499 502 recptprotolistclass::iterator rprotolist_here = protos->begin(); 500 503 recptprotolistclass::iterator rprotolist_end = protos->end(); 504 bool found_valid_col = false; 501 505 while (rprotolist_here != rprotolist_end) { 502 506 if ((*rprotolist_here).p != NULL) { … … 524 528 else cout << "private"; 525 529 526 if (cinfo->buildDate > 0) cout << " running "; 527 else cout << " not running"; 530 if (cinfo->buildDate > 0) { 531 cout << " running "; 532 found_valid_col = true; 533 } else { 534 cout << " not running"; 535 } 528 536 } 529 537 … … 537 545 } 538 546 539 cout << "------------------------------------------------------------\n"; 547 if (!found_valid_col) { 548 cout << "WARNING: No \"running\" collections were found. You need to\n"; 549 cout << " build one of the above collections\n"; 550 } 551 552 cout << "\n------------------------------------------------------------\n"; 540 553 cout << "------------------------------------------------------------\n\n"; 541 554 cout << "receptionist running in command line debug mode\n"; -
trunk/gsdl/src/recpt/pageaction.cpp
r1270 r1276 28 28 /* 29 29 $Log$ 30 Revision 1.34 2000/07/12 04:51:05 nzdl 31 added an error message when no "valid" collections are available 32 30 33 Revision 1.33 2000/07/05 21:49:33 sjboddie 31 34 Receptionist now caches collection information to avoid making multiple … … 207 210 208 211 text_t homeextra = "<center><table width=_pagewidth_><tr valign=top>\n"; 212 bool found_valid_col = false; 209 213 210 214 recptprotolistclass::iterator rprotolist_here = protos->begin(); … … 229 233 if (cinfo->isPublic && (cinfo->buildDate > 0)) { 230 234 235 found_valid_col = true; 231 236 FilterResponse_t response; 232 237 text_tset metadata; … … 274 279 } 275 280 for (; count%3 != 0; count ++) homeextra += "<td></td>\n"; 276 homeextra += "</tr></table></center>\n";277 disp.setmacro ("homeextra", "home", homeextra);278 281 } 279 282 } 280 283 rprotolist_here ++; 281 284 } 285 286 if (!found_valid_col) { 287 homeextra += "<td>No valid (i.e. built and public) collections are available</td>\n"; 288 } 289 homeextra += "</tr></table></center>\n"; 290 disp.setmacro ("homeextra", "home", homeextra); 291 282 292 } 283 293
Note:
See TracChangeset
for help on using the changeset viewer.