Changeset 905 for trunk/gsdl/src/recpt/pageaction.cpp
- Timestamp:
- 2000-02-03T14:49:35+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r875 r905 28 28 /* 29 29 $Log$ 30 Revision 1.26 2000/02/03 01:49:35 sjboddie 31 fixed up some of the preferences stuff 32 30 33 Revision 1.25 2000/01/26 20:11:04 sjboddie 31 34 added some collection specific help text … … 325 328 text_tarray::const_iterator col_here = cinfo.ccsCols.begin(); 326 329 text_tarray::const_iterator col_end = cinfo.ccsCols.end(); 330 int count = 0; 327 331 while (col_here != col_end) { 328 332 text_t colname; … … 332 336 ColInfoResponse_t this_cinfo; 333 337 collectproto->get_collectinfo (*col_here, this_cinfo, err, logout); 338 if (err != noError) {col_here ++; continue;} 334 339 colname = this_cinfo.collectionmeta["collectionname"]; 335 340 } 336 341 342 count ++; 337 343 collectionoption += "<input type=checkbox name=\"cc\" value=\"" + 338 344 *col_here + "\" onClick=\"updatecc(\'" + *col_here + "\');\"> " + … … 340 346 col_here ++; 341 347 } 342 343 disp.setmacro ("collectionoption", "preferences", collectionoption); 348 349 if (count > 1) 350 disp.setmacro ("collectionoption", "preferences", collectionoption); 344 351 } 345 352 … … 472 479 text_tarray::const_iterator end = cinfo.ccsCols.end(); 473 480 bool first = true; 481 int count = 0; 474 482 while (here != end) { 475 483 if (*here == arg_c) { … … 479 487 ColInfoResponse_t this_cinfo; 480 488 collectproto->get_collectinfo (*here, this_cinfo, err, logout); 481 if (err == noError) { 482 if (!first) textsubcollections += "<br>"; 483 textsubcollections += "\n" + this_cinfo.collectionmeta["collectionname"] + "\n"; 484 } 489 if (err != noError) {here ++; continue;} 490 if (!first) textsubcollections += "<br>"; 491 textsubcollections += "\n" + this_cinfo.collectionmeta["collectionname"] + "\n"; 485 492 } 493 count ++; 486 494 first = false; 487 495 here ++; 488 496 } 489 497 textsubcollections += "_textsubcols2_"; 490 disp.setmacro ("textsubcollections", "about", textsubcollections); 498 if (count > 1) 499 disp.setmacro ("textsubcollections", "about", textsubcollections); 491 500 } 492 501 }
Note:
See TracChangeset
for help on using the changeset viewer.