Changeset 712


Ignore:
Timestamp:
1999-10-19T09:07:05+13:00 (25 years ago)
Author:
sjboddie
Message:

tidied up a few things - moved processing of "hp" argument
to htmlbrowserclass

File:
1 edited

Legend:

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

    r669 r712  
    2828/*
    2929   $Log$
     30   Revision 1.35  1999/10/18 20:07:05  sjboddie
     31   tidied up a few things - moved processing of "hp" argument
     32   to htmlbrowserclass
     33
    3034   Revision 1.34  1999/10/14 23:00:52  sjboddie
    3135   finished changes to browsing support
     
    859863      metadata.insert ("childtype");
    860864      if (get_info (OIDs, args["c"], metadata, false, collectproto, response, logout)) {
    861     text_t classifytype = response.docInfo[0].metadata["childtype"].values[0];
    862     if (classifytype.empty())
    863       classifytype = response.docInfo[1].metadata["childtype"].values[0];
     865    text_t classifytype;
     866    MetadataInfo_tmap::iterator it = response.docInfo[0].metadata.find ("childtype");
     867    if (it != response.docInfo[0].metadata.end())
     868      classifytype = (*it).second.values[0];
     869    else {
     870      it = response.docInfo[1].metadata.find ("childtype");
     871      if (it != response.docInfo[1].metadata.end())   
     872        classifytype = (*it).second.values[0];
     873    }
    864874    browserclass *b = browsers.getbrowser (classifytype);
    865875    b->processOID (args, collectproto, logout);
     
    867877    }
    868878
    869     // translate "d", "cl", and "hp" arguments if required
     879    // translate "d" and "cl" arguments if required
    870880    translate_OIDs (args, collectproto, logout);
    871881  }
     
    10121022}
    10131023
    1014 // translate_OIDs translates the "d", "cl", and "hp" arguments to their correct values
     1024// translate_OIDs translates the "d" and "cl" arguments to their correct values
    10151025// if they use the tricky ".fc", ".lc" type syntax.
    10161026void receptionist::translate_OIDs (cgiargsclass &args, recptproto *collectproto,
     
    10221032  text_t &arg_d = args["d"];
    10231033  text_t &arg_cl = args["cl"];
    1024   text_t &arg_hp = args["hp"];
    10251034  text_t &collection = args["c"];
    10261035 
     
    10461055    else
    10471056      arg_cl = response.docInfo[0].OID;
    1048   }
    1049 
    1050   if (needs_translating (arg_hp)) {
    1051     request.docSet.push_back (arg_hp);
    1052     collectproto->filter (collection, request, response, err, logout);
    1053     arg_hp = response.docInfo[0].OID;
    10541057  }
    10551058}
Note: See TracChangeset for help on using the changeset viewer.