Changeset 3880


Ignore:
Timestamp:
2003-03-14T08:51:06+13:00 (21 years ago)
Author:
dana
Message:

added hooks for usability stuff to navbar

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

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

    r3666 r3880  
    363363  // _httppagehome_      overridden home url if html collections have own homepage
    364364
     365  // _usability_ - a macro for remote usability reporting
     366
    365367  // must have a valid collection server to continue
    366368  text_t &collection = args["c"];
     
    441443         << get_comerror_string (err);
    442444    }
     445 
     446 
     447  }
     448  text_tmap::iterator usability = cinfo.format.find("Usability");
     449  if(usability!=cinfo.format.end()){
     450    disp.setmacro("usability","Global","_imageusab_");
     451    disp.setmacro("usabinterface","Global",("_usab"+(*usability).second+"_"));
    443452  }
    444453}
  • trunk/gsdl/src/recpt/pageaction.cpp

    r3812 r3880  
    532532 
    533533  //setting _queryformcontent_ so that the query interface is consistent.
     534  //also adding usability button if necessary
    534535  if(arg_p == "about"){
    535536    if (cinfo != NULL) {
     
    542543    }
    543544      }
     545      check = cinfo->format.find("Usability");
     546      if(check != cinfo->format.end()){
     547    disp.setmacro("usability","Global","_imageusab_");
     548    disp.setmacro("usabinterface","Global",("_usab"+(*check).second+"_"));
     549      }
     550     
    544551    }
    545552  }
     
    747754  }
    748755}
     756
     757
     758
     759
     760
     761
     762
     763
     764
     765
Note: See TracChangeset for help on using the changeset viewer.