Changeset 1193


Ignore:
Timestamp:
2000-05-28T21:15:35+12:00 (24 years ago)
Author:
sjboddie
Message:

a few small changes to get an initial release of the local library

Location:
trunk/gsdl/src
Files:
3 edited

Legend:

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

    r1170 r1193  
    2828/*
    2929   $Log$
     30   Revision 1.51  2000/05/28 09:15:34  sjboddie
     31   a few small changes to get an initial release of the local library
     32
    3033   Revision 1.50  2000/05/12 03:09:25  sjboddie
    3134   minor modifications to get web library compiling under VC++ 6.0
     
    259262  collectdir.clear();
    260263  httpprefix.clear();
    261   httpimg.clear();
     264  httpimg = "/images";
    262265  gwcgi.clear();
    263266  macrofiles.erase(macrofiles.begin(), macrofiles.end());
  • trunk/gsdl/src/recpt/receptionist.h

    r864 r1193  
    5858  colinfo_tmap collectinfo;
    5959  text_t httpprefix;
    60   text_t httpimg;
     60  text_t httpimg;    // will equal /images if not set
    6161  text_t gwcgi;
    6262  text_tset macrofiles;
  • trunk/gsdl/src/w32server/cgiwrapper.cpp

    r1011 r1193  
    3232
    3333// actions
    34 #include "action.h"
    3534#include "statusaction.h"
    3635#include "pageaction.h"
     
    3837#include "queryaction.h"
    3938#include "documentaction.h"
     39#include "tipaction.h"
    4040#include "authenaction.h"
    4141#include "usersaction.h"
    4242#include "extlinkaction.h"
    43 //#include "buildaction.h"
     43#include "buildaction.h"
    4444#include "delhistoryaction.h"
    4545
    4646// browsers
    47 #include "browserclass.h"
    4847#include "vlistbrowserclass.h"
    4948#include "hlistbrowserclass.h"
     
    154153DWORD lastlibaccesstime;
    155154DWORD baseavailvirtual;
    156 
    157 static void page_errorsitecfg (const text_t &gsdlhome, const text_t &collection) {
    158    
    159   text_t message = "Error\n\n"
    160     "The site.cfg configuration file could not be found. This file\n"
    161     "should contain configuration information relating to this sites\n"
    162     "setup.\n";
    163  
    164   if (collection.empty()) {
    165     message += "As this program is not being run in collection specific mode,\n"
    166       "the file should reside at " + gsdlhome + "\\etc\\site.cfg.\n";
    167   } else {
    168     message += "As this program is being run in collection specific mode,\n"
    169       "the file can reside at " + gsdlhome + "\\collect\\" + collection +
    170       "\\etc\\site.cfg or " + gsdlhome + "\\etc\\site.cfg.\n";
    171   }
    172 
    173   MessageBox(NULL, message.getcstr(),
    174          "Greenstone Digital Library Software"
    175          ,MB_OK|MB_SYSTEMMODAL);
    176 }
    177155
    178156static void page_errormaincfg (const text_t &gsdlhome, const text_t &collection) {
     
    430408  recpt.add_action (apingaction);
    431409 
     410  tipaction *atipaction = new tipaction();
     411  recpt.add_action (atipaction);
     412 
    432413  queryaction *aqueryaction = new queryaction();
    433414  recpt.add_action (aqueryaction);
     
    442423  recpt.add_action (anextlinkaction);
    443424
    444   //  buildaction *abuildaction = new buildaction();
    445   //  abuildaction->set_receptionist (&recpt);
    446   //  recpt.add_action (abuildaction);
     425  buildaction *abuildaction = new buildaction();
     426  abuildaction->set_receptionist (&recpt);
     427  recpt.add_action (abuildaction);
    447428 
    448429  authenaction *aauthenaction = new authenaction();
     
    450431  recpt.add_action (aauthenaction);
    451432
    452   delhistoryaction adelhistoryaction;
    453   recpt.add_action(&adelhistoryaction);
     433  delhistoryaction *adelhistoryaction = new delhistoryaction();
     434  recpt.add_action (adelhistoryaction);
    454435
    455436
     
    503484  // those read in last will override those read earlier
    504485  // collections being used together in this way should be
    505   // careful not to have site.cfg or main.cfg files that might
     486  // careful not to have main.cfg files that might
    506487  // screw with each other.
    507488  text_tset::const_iterator thome = gsdlhomes.begin();
    508489  text_tset::const_iterator ehome = gsdlhomes.end();
    509490  while (thome != ehome) {
    510     // TODO: should only need to do this once now I think
    511     // gsdlsite.cfg will need to be installed along with executable
    512     //    if (!site_cfg_read (recpt, *thome, maxrequests)) {
    513       // couldn't find the site configuration file
    514     //      page_errorsitecfg (*thome, collection);
    515     //      return 0;
    516     //    } else
    517491    if (!main_cfg_read (recpt, *thome, collection)) {
    518492      // couldn't find the main configuration file
Note: See TracChangeset for help on using the changeset viewer.