Ignore:
Timestamp:
1999-10-20T16:55:03+13:00 (25 years ago)
Author:
sjboddie
Message:

yet another problem with calling browserclass
processOID functions correctly

File:
1 edited

Legend:

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

    r722 r731  
    2828/*
    2929   $Log$
     30   Revision 1.37  1999/10/20 03:55:03  sjboddie
     31   yet another problem with calling browserclass
     32   processOID functions correctly
     33
    3034   Revision 1.36  1999/10/19 03:23:44  davidb
    3135   Collection building support through web pages
     
    868872      if (get_info (OIDs, args["c"], metadata, false, collectproto, response, logout)) {
    869873    text_t classifytype;
    870     MetadataInfo_tmap::iterator it = response.docInfo[0].metadata.find ("childtype");
    871     if (it != response.docInfo[0].metadata.end())
    872       classifytype = (*it).second.values[0];
    873     else {
    874       it = response.docInfo[1].metadata.find ("childtype");
    875       if (it != response.docInfo[1].metadata.end())   
    876         classifytype = (*it).second.values[0];
     874    if (!response.docInfo[0].metadata["childtype"].values[0].empty())
     875      classifytype = response.docInfo[0].metadata["childtype"].values[0];
     876    else if (!is_top (OID)) {
     877      if (!response.docInfo[1].metadata["childtype"].values[0].empty())
     878        classifytype = response.docInfo[1].metadata["childtype"].values[0];
    877879    }
    878880    browserclass *b = browsers.getbrowser (classifytype);
Note: See TracChangeset for help on using the changeset viewer.