greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 1912

Show
Ignore:
Timestamp:
2001-02-07 11:57:50 (8 years ago)
Author:
kjm18
Message:

new cgiarg added to collection urls on home page: &ct=0 for mg cols, &ct=1 for
mgpp cols. determined by cinfo->buildType which =mgpp for mgpp cols

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gsdl/src/recpt/pageaction.cpp

    r1902 r1912  
    102102          if (cinfo != NULL) { 
    103103            if (cinfo->isPublic && (cinfo->buildDate > 0)) { 
    104                
     104 
     105              text_t coll_type = "&ct="; 
     106              if (cinfo->buildType == "mgpp") { 
     107                coll_type += "1"; 
     108              } 
     109              else { 
     110                coll_type += "0"; 
     111              } 
    105112              found_valid_col = true; 
    106113              FilterResponse_t response; 
     
    161168              if (!site_name.empty()) { optsite = "site="+site_name+"&"; } 
    162169 
    163               text_t link = "<a href=\"_gwcgi_?"+optsite+"a=p&p=about&c=" + *collist_here + "\">"; 
     170              text_t link = "<a href=\"_gwcgi_?"+optsite+"a=p&p=about&c=" + *collist_here + coll_type+"\">"; 
    164171 
    165172              if (!cinfo->receptionist.empty())  
     
    198205  // _builddate_           the date last built 
    199206 
    200  
    201207  // if page is "home" 
    202208  // _homeextra_           this is the list of available collections and collection info 
     
    256262    unsigned long builddate = (current_time - cinfo->buildDate) / 86400; 
    257263    disp.setmacro ("builddate", "Global", builddate); 
     264 
    258265  } 
    259266