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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.