Changeset 12229


Ignore:
Timestamp:
2006-07-14T13:15:57+12:00 (18 years ago)
Author:
kjdon
Message:

set_navbarmacros now uses httpbrowseCL1 etc rather than httpbrowseTitle etc. This means it will work for classifiers where the title is not in latin characters, and also if you have two classifiers of the same name, they won't get confused

File:
1 edited

Legend:

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

    r12174 r12229  
    380380   if (!use_pulldown) {
    381381      if (has_search_button) {
    382     // search uses its own navtab, as it may be suppressed based on args
     382    // search uses its own navtab, as it may be suppressed based on other args
    383383    navigationbar += "_navtabsearch_";
    384384    if (args["a"] == "q") {
     
    395395    text_t title = (*dochere).metadata["Title"].values[0];
    396396   
    397     navigationbar += "_navtab_(_httpbrowse"+title+"_,"+title;
     397    navigationbar += "_navtab_(_httpbrowse"+(*dochere).OID+"_,"+title;
    398398    // if we are at this classifier
    399399    if (arg_d.empty() && ((*dochere).OID == topparent)) {
     
    403403     navigationbar += ")";
    404404
    405     // set the _httpbrowseXXX_ macro for this classification
    406     // set the correct url for this link
    407     disp.setmacro ("httpbrowse" + title, displayclass::defaultpackage, "_httpdocument_&cl=" + (*dochere).OID);
     405    // set the _httpbrowseCLX_ macro for this classification
     406    disp.setmacro ("httpbrowse" + (*dochere).OID, displayclass::defaultpackage, "_httpdocument_&cl=" + (*dochere).OID);
    408407     ++dochere;
    409408     first = false;
Note: See TracChangeset for help on using the changeset viewer.