Ignore:
Timestamp:
1999-08-12T11:28:03+12:00 (25 years ago)
Author:
sjboddie
Message:

-added support for html classifier

  • removed _random_ macro - now use _blank for detach page
File:
1 edited

Legend:

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

    r448 r450  
    1212/*
    1313   $Log$
     14   Revision 1.21  1999/08/11 23:28:03  sjboddie
     15   -added support for html classifier
     16   - removed _random_ macro - now use _blank for detach page
     17
    1418   Revision 1.20  1999/08/10 23:16:39  sjboddie
    1519   a couple of small changes to get format options DocumentArrowsBottom
     
    341345       
    342346        // set the _httpbrowseXXX_ macro for this classification
    343         text_t link = (*dochere).OID;
     347        text_t link;
     348        if (classifytype == "HTML")
     349          link = "_httppagex_(html)&hp=" + (*dochere).OID + ".fc";
     350        else
     351          link = "_httpdocument_&cl=" + (*dochere).OID;
     352
    344353        if (classifytype == "AZList" || classifytype == "DateList") link += ".fc";
    345         disp.setmacro ("httpbrowse" + title, "Global",
    346                "_httpdocument_&cl=" + link);
     354        disp.setmacro ("httpbrowse" + title, "Global", link);
     355
    347356      }
    348357        javaimagesnavbar += "_java" + title + "_";
     
    372381
    373382  // define_internal_macros sets the following macros:
    374 
    375   // _random_               a random number - used for setting target tags to display
    376   //                        a random page when you hit the 'detach' button
    377383
    378384  // _pagetitle_            the title to be displayed at the top of the browser window
     
    441447  text_t &collection = args["c"];
    442448
    443   disp.setmacro("random", "document", rand());
    444 
    445449  if (!formatinfo.DocumentArrowsBottom)
    446450    disp.setmacro("navarrows", "document", "");
     
    504508          javaimagescontent += "_javaexpandtext_";
    505509      } else if (*button_here == "Expand Contents") {
    506         if (classifytype == "Hierarchy")
    507510          if (arg_gc == 1)
    508511        javaimagescontent += "_javacontractcontents_";
     
    568571           
    569572            // set the _httpprevarrow_, _httpnextarrow_ macros while we're here
    570             if (sechere != response.docInfo.begin())
    571               disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + (*(sechere-1)).OID);
    572             if ((sechere + 1) != secend)
    573               disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + (*(sechere+1)).OID);
     573            if (formatinfo.DocumentArrowsBottom) {
     574              if (sechere != response.docInfo.begin())
     575            disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + (*(sechere-1)).OID);
     576              if ((sechere + 1) != secend)
     577            disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + (*(sechere+1)).OID);
     578            }
    574579
    575580            lenlinks += sectionheading.size();
     
    674679
    675680    // output the document text
     681    textout << "<p>\n";
    676682    output_document (OID, args, collectproto, disp, outconvert, textout, logout);
    677683
Note: See TracChangeset for help on using the changeset viewer.