Changeset 436 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
1999-08-09T14:12:07+12:00 (25 years ago)
Author:
sjboddie
Message:

made it so dates may be only 4 digits (i.e. year only)

File:
1 edited

Legend:

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

    r419 r436  
    1212/*
    1313   $Log$
     14   Revision 1.17  1999/08/09 02:12:07  sjboddie
     15   made it so dates may be only 4 digits (i.e. year only)
     16
    1417   Revision 1.16  1999/07/30 02:16:10  sjboddie
    1518   -added ability to display nested classifications (expanded versions
     
    289292Functions for generating a "Hierarchy" type table of contents. These can be used either
    290293at top classification level or at document level (the difference being that a cover
    291 image and control buttons are displayed at document level).
     294image and control buttons may be displayed at document level).
    292295-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
    293296
     
    596599
    597600    text_t::const_iterator datebegin = date.begin();
     601    int datesize = date.size();
     602   
     603    if (datesize < 4) continue;
     604    text_t thisyear = substr (datebegin, datebegin+4);
     605    text_t thismonth = "00";
     606    if (datesize >= 6)
     607      thismonth = substr (datebegin+4, datebegin+6);
    598608
    599609    text_t link = "<a href=\"_httpdocument_&cl=";
     
    604614      link += (*here).OID + "\">";
    605615    } else link += args["cl"] + "&d=" + (*here).OID + "\">";
    606 
    607     text_t thisyear = substr (datebegin, datebegin+4);
    608     text_t thismonth = substr (datebegin+4, datebegin+6);
    609616
    610617    textout << "<tr>\n";
Note: See TracChangeset for help on using the changeset viewer.