Changeset 15808 for gsdl/trunk/src/recpt/vlistbrowserclass.cpp
- Timestamp:
- 2008-05-29T16:38:55+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/vlistbrowserclass.cpp
r13451 r15808 292 292 doctype = section.metadata["doctype"].values[0]; 293 293 294 295 294 text_t &arg_d = args["d"]; 296 295 text_t &arg_cl = args["cl"]; 297 298 299 if (args["a"] == "q"){296 297 if (args["a"] == "q") 298 { 300 299 // query results list 301 300 #ifndef DOCHANDLE … … 319 318 link += "," + section.OID+")"; 320 319 #endif 321 322 320 323 321 if (args["xx"] == "1") { 324 322 link += detach_link_end; 325 } else { 323 } 324 else { 326 325 link += link_end; 327 326 } 328 327 if ((is_top (section.OID)) && (haschildren == 1)) icon = "_document:iconclosedbook_"; 329 else if (haschildren == 1) icon = "_document:iconclosedfolder_"; 330 331 }else if (!arg_d.empty()) {328 else if (haschildren == 1) icon = "_document:iconclosedfolder_"; 329 } 330 else if (!arg_d.empty()) { 332 331 // we are in a document - none of the links should be detach links 333 332 if (is_top(section.OID)) { … … 343 342 link += ","+arg_cl + ")\">"; 344 343 #endif 345 } 346 347 }else if (haschildren == 1) {344 } 345 } 346 else if (haschildren == 1) { 348 347 if ((args["gc"] == "1") || 349 348 (is_child_of (section.OID, arg_d)) || … … 355 354 link += ","+section.OID + ".pr)\">"; 356 355 #endif 357 } else { 356 } 357 else { 358 358 icon = "_document:iconclosedfolder_"; 359 359 #ifndef DOCHANDLE … … 363 363 #endif 364 364 } 365 } else { 365 } 366 else { 366 367 if (args["gt"] == "0") { 367 368 #ifndef DOCHANDLE … … 370 371 link += ","+section.OID + ")\">"; 371 372 #endif 372 } else { 373 } 374 else { 373 375 #ifndef DOCHANDLE 374 376 link += "&cl=" + arg_cl + "&d=" + section.OID + "#" + section.OID + "\">"; … … 378 380 } 379 381 } 380 381 }else {382 } 383 else { 382 384 // classification level - links to docs may be detaching 383 385 if (haschildren == 1) { … … 393 395 link += ","+section.OID + ".pr)\">"; 394 396 #endif 395 396 397 } else { 397 } 398 else { 398 399 icon = "_document:iconclosedbookshelf_"; 399 400 … … 403 404 link += ","+section.OID + ")\">"; 404 405 #endif 405 406 } 407 } else { 408 406 } 407 } 408 else { 409 409 icon = "_document:iconclosedbook_"; 410 410 #ifndef DOCHANDLE … … 415 415 if (args["xx"] == "1") { 416 416 link += detach_link_end; 417 } else { 417 } 418 else { 418 419 link += link_end; 419 420 } 420 421 422 }else {421 } 422 } 423 else { 423 424 if (doctype == "classify") link = ""; 424 425 else { … … 430 431 if (args["xx"] == "1") { 431 432 link += detach_link_end; 432 } else { 433 } 434 else { 433 435 link += link_end; 434 436 } … … 436 438 } 437 439 } 438 439 } 440 }
Note:
See TracChangeset
for help on using the changeset viewer.