Ignore:
Timestamp:
2000-08-17T17:07:43+12:00 (24 years ago)
Author:
sjboddie
Message:

Added collector action - also changed the javascript required by all the
rollover buttons

File:
1 edited

Legend:

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

    r1348 r1419  
    256256}
    257257
    258 // set_navbarmacros sets _navigationbar_, _javaimagesnavbar_ and _httpbrowseXXX_ macros
     258// set_navbarmacros sets _navigationbar_ and _httpbrowseXXX_ macros
    259259// reponse contains 1 metadata field (Title)
    260260void documentaction::set_navbarmacros (displayclass &disp, FilterResponse_t &response,
    261261                       cgiargsclass &args) {
    262262
    263   text_t javaimagesnavbar, topparent;
     263  text_t topparent;
    264264  text_t &arg_d = args["d"];
    265265  text_t navigationbar = "<!-- Navigation Bar -->\n";
     
    275275  } else {
    276276    navigationbar += "_imagesearch_";
    277     javaimagesnavbar = "_javasearch_";
    278277  }
    279278 
     
    307306      }
    308307    }
    309     if (!unknown) javaimagesnavbar += "_java" + title + "_";
    310308    dochere ++;
    311309  }
     
    313311  navigationbar += "<!-- End of Navigation Bar -->\n";
    314312  disp.setmacro ("navigationbar", "Global", navigationbar);
    315   if (args.getintarg("v") == 0)
    316     disp.setmacro ("javaimagesnavbar", "Global", javaimagesnavbar);
    317313}
    318314
     
    333329  //                     are Title and Creator classifications _httpbrowseTitle_
    334330  //                     and _httpbrowseCreator_ will be set
    335 
    336   // _javaimagesnavbar_  this is the javascript code to shove in to make the
    337   //                     flashy images used by _navigationbar_ work
    338331
    339332  // _widthtspace_       the width of the spacers between buttons in navigation
     
    414407    if (args.getintarg("v") == 0) set_spacemacro (disp, response);
    415408
    416     // set _navigationbar_ and _javaimagesnavbar_ macros
     409    // set _navigationbar_ macro
    417410    set_navbarmacros (disp, response, args);
    418411   
     
    511504}
    512505
    513 void documentaction::set_java_macros (cgiargsclass &args, displayclass &disp) {
    514 
    515   text_t javaimagescontent = "_javaextras_";
    516    
    517   int arg_gt = args.getintarg("gt");
    518   int arg_gc = args.getintarg("gc");
    519   int arg_hl = args.getintarg("hl");
    520 
    521   text_tarray::const_iterator button_here = formatinfo.DocumentButtons.begin();
    522   text_tarray::const_iterator button_end = formatinfo.DocumentButtons.end();
    523 
    524   while (button_here != button_end) {
    525     if (*button_here == "Detach")
    526       javaimagescontent += "_javadetach_";
    527     else if (*button_here == "Expand Text") {
    528       if (arg_gt == 1)
    529     javaimagescontent += "_javacontracttext__javacontinue_";
    530       else if (arg_gt == 2)
    531     javaimagescontent += "_javacontracttext_";
    532       else
    533     javaimagescontent += "_javaexpandtext_";
    534     } else if (*button_here == "Expand Contents") {
    535       if (arg_gc == 1)
    536     javaimagescontent += "_javacontractcontents_";
    537       else
    538     javaimagescontent += "_javaexpandcontents_";
    539     } else if (*button_here == "Highlight") {
    540       if (arg_hl == 1)
    541     javaimagescontent += "_javanohighlighting_";
    542       else
    543     javaimagescontent += "_javahighlighting_";
    544     }
    545     button_here ++;
    546   }
    547   disp.setmacro ("javaimagescontent", "document", javaimagescontent);
    548 }
    549 
    550506
    551507// define all the macros which are related to pages generated
     
    566522  // _header_               the header macro is overridden if we're not at a top level
    567523  //                        classification to remove the title block
    568 
    569   // _javaimagescontent_    this is the javascript code to shove in to make the
    570   //                        flashy buttons work
    571524
    572525  // _thisOID_              the OID (directory) of the current document - this corresponds
     
    645598    disp.setmacro ("thisOID", "Global", dm_safe(thisOID));
    646599      }
    647      
    648       if (args["u"] != "1")
    649     set_java_macros (args, disp);
    650 
    651600    }
    652601  } else {
Note: See TracChangeset for help on using the changeset viewer.