Ignore:
Timestamp:
2000-08-03T17:21:26+12:00 (24 years ago)
Author:
jrm21
Message:

merged z39.50 receptionist stuff into main trunk (along with the mgpp stuff)

File:
1 edited

Legend:

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

    r1285 r1347  
    365365  text_tset metadata;
    366366
    367   ColInfoResponse_t *cinfo = recpt->get_collectinfo_ptr (collectproto, collection, logout);
    368   if (cinfo == NULL) {
    369     logout << "ERROR (documentaction::define_external_macros): get_collectinfo_ptr returned NULL\n";
    370     return;
    371   }
    372   load_formatinfo (cinfo->format, args.getintarg("gt"));
     367  // get info on current collection and load up formatinfo
     368  // I'd prefer not to do this here as we're getting
     369  // collection info every time (and probably also getting
     370  // it in other places some of the time) - One day I'll
     371  // fix it ... maybe - Stefan.
     372  ColInfoResponse_t cinfo;
     373
     374  collectproto->get_collectinfo (collection, cinfo, err, logout);
     375  load_formatinfo (cinfo.format, args.getintarg("gt"));
     376  //  ColInfoResponse_t *cinfo = recpt->get_collectinfo_ptr (collectproto, collection, logout);
     377  //  if (cinfo == NULL) {
     378  //    logout << "ERROR (documentaction::define_external_macros): get_collectinfo_ptr returned NULL\n";
     379  //    return;
     380  //  }
     381  //load_formatinfo (cinfo->format, args.getintarg("gt"));
    373382
    374383  if (formatinfo.DocumentUseHTML) {
     
    594603
    595604    metadata.insert ("archivedir");
    596    
     605
     606    OptionValue_tarray options;
     607    // we need to know what the query was for the z3950proto
     608    if (collectproto->get_protocol_name()=="z3950proto") {
     609      OptionValue_t opt;
     610      opt.name="Query";
     611      opt.value=args["q"];
     612      options.push_back(opt);
     613    }
     614
    597615    // get metadata for this document and it's parents
    598     if (get_info (arg_d, collection, metadata, true, collectproto, response, logout)) {
     616    if (get_info (arg_d, collection, metadata, options,
     617          true, collectproto, response, logout)) {
    599618      disp.setmacro ("header", "document", "_textheader_");
    600619
Note: See TracChangeset for help on using the changeset viewer.