Changeset 9931 for trunk/gsdl/src/recpt/receptionist.cpp
- Timestamp:
- 2005-05-23T16:36:40+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/receptionist.cpp
r9674 r9931 1396 1396 disp.setmacro ("httpprefix", displayclass::defaultpackage, configinfo.httpprefix); 1397 1397 1398 // get relevant info from the collection1399 if (!collection.empty()) {1400 ColInfoResponse_t cinfo;1401 comerror_t err;1402 recptproto *collectproto = protocols.getrecptproto (collection, logout);1403 if (collectproto != NULL) {1404 collectproto->get_collectinfo (collection, cinfo, err, logout);1405 text_t httpcollection;1406 if (!cinfo.httpdomain.empty()) httpcollection = "http://";1407 httpcollection += cinfo.httpdomain + cinfo.httpprefix + "/collect/"1408 + collection;1409 disp.setmacro ("httpcollection", displayclass::defaultpackage,1410 httpcollection);1411 // as of gsdl 2.53, collect.cfg can specify macros1412 if (cinfo.collection_macros.size() > 0) {1413 macros_map::const_iterator this_macro=cinfo.collection_macros.begin();1414 macros_map::const_iterator done_macro=cinfo.collection_macros.end();1415 while (this_macro != done_macro) {1416 1417 disp.setcollectionmacro("Global", // package1418 this_macro->first, // macro name1419 this_macro->second.first, // params1420 this_macro->second.second); // value1421 ++this_macro;1422 }1423 } // col macros1424 } // collectproto != NULL1425 }1426 1398 1427 1399 text_t compressedoptions = get_compressed_arg(args, logout); … … 1498 1470 if (!lang.empty()) { 1499 1471 if (args["l"]==lang) { 1500 disp.set macro (name, displayclass::defaultpackage, (*here).second.values[0]);1472 disp.setcollectionmacro(displayclass::defaultpackage, name, "", (*here).second.values[0]); 1501 1473 } 1502 1474 } 1503 1475 else { // the default one 1504 disp.set macro ((*here).first, displayclass::defaultpackage, (*here).second.values[0]);1476 disp.setcollectionmacro(displayclass::defaultpackage, (*here).first, "", (*here).second.values[0]); 1505 1477 } 1506 1478 } … … 1525 1497 } 1526 1498 } 1499 1500 if (!collection.empty()) { 1501 ColInfoResponse_t cinfo; 1502 comerror_t err; 1503 recptproto *collectproto = protocols.getrecptproto (collection, logout); 1504 if (collectproto != NULL) { 1505 collectproto->get_collectinfo (collection, cinfo, err, logout); 1506 text_t httpcollection; 1507 if (!cinfo.httpdomain.empty()) httpcollection = "http://"; 1508 httpcollection += cinfo.httpdomain + cinfo.httpprefix + "/collect/" 1509 + collection; 1510 disp.setmacro ("httpcollection", displayclass::defaultpackage, 1511 httpcollection); 1512 // as of gsdl 2.53, collect.cfg can specify macros 1513 if (cinfo.collection_macros.size() > 0) { 1514 macros_map::const_iterator this_macro=cinfo.collection_macros.begin(); 1515 macros_map::const_iterator done_macro=cinfo.collection_macros.end(); 1516 while (this_macro != done_macro) { 1517 1518 disp.setcollectionmacro("Global", // package 1519 this_macro->first, // macro name 1520 this_macro->second.first, // params 1521 this_macro->second.second); // value 1522 ++this_macro; 1523 } 1524 } // col macros 1525 } // collectproto != NULL 1526 } 1527 1527 1528 } 1528 1529
Note:
See TracChangeset
for help on using the changeset viewer.