Changeset 11771
- Timestamp:
- 2006-05-04T16:05:00+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r11539 r11771 373 373 text_t navigationbar = "<!-- Navigation Bar -->\n"; 374 374 375 text_t date_extra = g_EmptyText;376 375 get_top (args["cl"], topparent); 377 376 int numc = response.docInfo.size(); … … 391 390 bool first = true; 392 391 while (dochere != docend) { 393 date_extra = g_EmptyText;394 392 if (!first) navigationbar += "_navbarspacer_"; 395 393 396 // are we a datelist?? - need to set dm arg397 text_t childtype = (*dochere).metadata["childtype"].values[0];398 if (childtype == "DateList") {399 text_t date_meta = (*dochere).metadata["mdtype"].values[0];400 if (date_meta == g_EmptyText) {401 date_meta = "Date";402 }403 date_extra = "&dm="+date_meta;404 }405 394 bool unknown = false; 406 395 … … 426 415 // work out the link for this classifier, as it isn't the 427 416 // current page 428 this_tab += "_httpdocument_&cl=" + (*dochere).OID 429 + date_extra; 417 this_tab += "_httpdocument_&cl=" + (*dochere).OID; 430 418 } 431 419 this_tab += "," + title + "," + title; … … 443 431 // set the _httpbrowseXXX_ macro for this classification 444 432 // set the correct url for this link 445 disp.setmacro ("httpbrowse" + title, displayclass::defaultpackage, "_httpdocument_&cl=" + (*dochere).OID +date_extra);433 disp.setmacro ("httpbrowse" + title, displayclass::defaultpackage, "_httpdocument_&cl=" + (*dochere).OID); 446 434 447 435 … … 478 466 while (dochere != docend) { 479 467 text_t title = dochere->metadata["Title"].values[0]; 480 if (title == "Date") { // a date list 481 text_t date_meta = (*dochere).metadata["mdtype"].values[0]; 482 if (date_meta == "") { 483 date_meta = "Date"; 484 } 485 date_extra = "&dm="+date_meta; 486 } 487 488 navigationbar += "<option value=\"_httpdocument_&cl=" + dochere->OID +date_extra+ "\""; 468 469 navigationbar += "<option value=\"_httpdocument_&cl=" + dochere->OID + "\""; 489 470 if (topparent == dochere->OID) { 490 471 navigationbar += " selected"; … … 595 576 596 577 metadata.insert ("Title"); 597 metadata.insert ("mdtype"); // in case there is a datelist598 metadata.insert ("childtype"); // in case there is a datelist599 578 bool getParents = false; 600 579 get_children ("", collection, args["l"], metadata, getParents, collectproto, response, logout);
Note:
See TracChangeset
for help on using the changeset viewer.