Changeset 2773 for trunk/gsdl


Ignore:
Timestamp:
2001-10-02T15:54:58+12:00 (23 years ago)
Author:
kjm18
Message:

changes to enable language specific collectionmeta

File:
1 edited

Legend:

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

    r2660 r2773  
    12621262      if (((*here).first != "haschildren") && ((*here).first != "hasnext") &&
    12631263          ((*here).first != "hasprevious")) {
    1264         disp.setmacro ((*here).first, "Global", (*here).second.values[0]);
     1264        // check for args in form name:lang
     1265        text_t name = "";
     1266        text_t lang = "";
     1267        bool colonfound=false;
     1268        text_t::const_iterator a = (*here).first.begin();
     1269        text_t::const_iterator b = (*here).first.end();
     1270        while (a !=b) {
     1271          if (*a==':') {
     1272        colonfound=true;
     1273          }
     1274          else {
     1275        if (colonfound)
     1276          lang.push_back(*a);
     1277        else name.push_back(*a);
     1278          }
     1279          a++;
     1280        }
     1281        if (!lang.empty()) {
     1282          if (args["l"]==lang) {
     1283        disp.setmacro (name, "Global", (*here).second.values[0]);
     1284          }
     1285        }
     1286        else { // the default one
     1287          disp.setmacro ((*here).first, "Global", (*here).second.values[0]);
     1288        }
    12651289      }
    12661290      here ++;
Note: See TracChangeset for help on using the changeset viewer.