Changeset 1276


Ignore:
Timestamp:
2000-07-12T16:51:05+12:00 (24 years ago)
Author:
nzdl
Message:

added an error message when no "valid" collections are available

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

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/cgiwrapper.cpp

    r1270 r1276  
    2828/*
    2929   $Log$
     30   Revision 1.31  2000/07/12 04:51:05  nzdl
     31   added an error message when no "valid" collections are available
     32
    3033   Revision 1.30  2000/07/05 21:49:31  sjboddie
    3134   Receptionist now caches collection information to avoid making multiple
     
    499502  recptprotolistclass::iterator rprotolist_here = protos->begin();
    500503  recptprotolistclass::iterator rprotolist_end = protos->end();
     504  bool found_valid_col = false;
    501505  while (rprotolist_here != rprotolist_end) {
    502506    if ((*rprotolist_here).p != NULL) {
     
    524528        else cout << "private";
    525529
    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        }
    528536      }
    529537
     
    537545  }
    538546 
    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";
    540553  cout << "------------------------------------------------------------\n\n";
    541554  cout << "receptionist running in command line debug mode\n";
  • trunk/gsdl/src/recpt/pageaction.cpp

    r1270 r1276  
    2828/*
    2929   $Log$
     30   Revision 1.34  2000/07/12 04:51:05  nzdl
     31   added an error message when no "valid" collections are available
     32
    3033   Revision 1.33  2000/07/05 21:49:33  sjboddie
    3134   Receptionist now caches collection information to avoid making multiple
     
    207210
    208211  text_t homeextra = "<center><table width=_pagewidth_><tr valign=top>\n";
     212  bool found_valid_col = false;
    209213 
    210214  recptprotolistclass::iterator rprotolist_here = protos->begin();
     
    229233        if (cinfo->isPublic && (cinfo->buildDate > 0)) {
    230234         
     235          found_valid_col = true;
    231236          FilterResponse_t response;
    232237          text_tset metadata;
     
    274279    }
    275280    for (; count%3 != 0; count ++) homeextra += "<td></td>\n";
    276     homeextra += "</tr></table></center>\n";
    277     disp.setmacro ("homeextra", "home", homeextra);
    278281      }
    279282    }
    280283    rprotolist_here ++;
    281284  }
     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
    282292}
    283293
Note: See TracChangeset for help on using the changeset viewer.