Ignore:
Timestamp:
1999-09-17T16:46:06+12:00 (25 years ago)
Author:
sjboddie
Message:

fixed a couple of problems with 'unknown' classifier

File:
1 edited

Legend:

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

    r600 r604  
    2828/*
    2929   $Log$
     30   Revision 1.25  1999/09/17 04:46:05  sjboddie
     31   fixed a couple of problems with 'unknown' classifier
     32
    3033   Revision 1.24  1999/09/17 04:00:26  sjboddie
    3134   tidied up navigation bar to produce a default "unknown" button if
     
    688691      if (get_info (classtop, collection, metadata, false, collectproto, response, logout)) {
    689692     
    690     text_t &title = response.docInfo[0].metadata[0].values[0];
     693    text_t title = response.docInfo[0].metadata[0].values[0];
    691694    text_t &classifytype = response.docInfo[0].metadata[1].values[0];
     695
     696    text_tset::const_iterator it = classify_meta.find (title);
     697    if (it == classify_meta.end()) title = "Unknown";
    692698
    693699    disp.setmacro ("pagetitle", "document", "_text" + title + "page_");
Note: See TracChangeset for help on using the changeset viewer.