Changeset 15950 for gsdl/trunk
- Timestamp:
- 2008-06-10T16:35:26+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/vlistbrowserclass.cpp
r15835 r15950 389 389 if (args["a"] == "dc") 390 390 { 391 // Open node 392 if (section.OID == args["dcn"]) 391 // Parent node or current node 392 text_t classifier_node_dcn = ""; 393 if (!starts_with (section.OID, args["dcn"]) || section.OID == args["dcn"]) 393 394 { 394 395 icon = "_document:iconopenbookshelf_"; 395 link = "<a href=\"_gwcgi_?c=" + args["c"] + "&a=dc&dcl=" + args["dcl"] + "&dcn=\">"; 396 397 // dcn value is the OID of this node's parent 398 text_t::iterator hierarchy_split_position = findchar(section.OID.begin(), section.OID.end(), '|'); 399 if (hierarchy_split_position != section.OID.end()) 400 { 401 classifier_node_dcn = substr (section.OID.begin(), hierarchy_split_position); 402 } 396 403 } 397 // C losed node404 // Child node 398 405 else 399 406 { 400 407 icon = "_document:iconclosedbookshelf_"; 401 402 // The node label is going into the URL, so make it CGI-safe 403 text_t classifier_node_cgi_safe = cgi_safe_utf8(section.OID); 404 link = "<a href=\"_gwcgi_?c=" + args["c"] + "&a=dc&dcl=" + args["dcl"] + "&dcn=" + classifier_node_cgi_safe + "\">"; 408 classifier_node_dcn = section.OID; 405 409 } 410 411 // The node label is going into the URL, so make it CGI-safe 412 text_t classifier_node_dcn_cgi_safe = cgi_safe_utf8(classifier_node_dcn); 413 link = "<a href=\"_gwcgi_?c=" + args["c"] + "&a=dc&dcl=" + args["dcl"] + "&dcn=" + classifier_node_dcn_cgi_safe + "\">"; 406 414 } 407 415 // Static classifier nodes
Note:
See TracChangeset
for help on using the changeset viewer.