Changeset 15810

Show
Ignore:
Timestamp:
29.05.2008 17:02:25 (11 years ago)
Author:
mdewsnip
Message:

(Adding dynamic classifiers) Added a bit of code into get_link_icon() to generate the correct URL for dynamic classifier nodes.

Files:
1 modified

Legend:

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

    r15808 r15810  
    2525 
    2626#include "vlistbrowserclass.h" 
    27 #include <assert.h> 
    2827#include "OIDtools.h" 
    2928#include "browsetoolsclass.h" 
     29#include "cgiutils.h" 
     30 
    3031 
    3132vlistbrowserclass::vlistbrowserclass () { 
     
    400401 
    401402#ifndef DOCHANDLE 
    402       link += "&amp;cl=" + section.OID + "\">"; 
     403      if (args["a"] == "dc") 
     404      { 
     405        // This is a dynamic classifier node, and the node label is going into the URL, so make it CGI-safe 
     406        text_t classifier_node_cgi_safe = cgi_safe_utf8(section.OID); 
     407        link = "<a href=\"_gwcgi_?c=" + args["c"] + "&amp;a=dc&amp;dcl=" + args["dcl"] + "&amp;dcn=" + classifier_node_cgi_safe + "\">"; 
     408      } 
     409      else 
     410      { 
     411        link += "&amp;cl=" + section.OID + "\">"; 
     412      } 
    403413#else 
    404414      link += ","+section.OID + ")\">";