Ignore:
Timestamp:
2011-03-09T15:04:33+13:00 (13 years ago)
Author:
davidb
Message:

CGI Perl scripts updated to work with Greenstone 3. This in turn required these supporting routines to optionally handle the 'site' variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/cgiactions/baseaction.pm

    r23755 r23767  
    104104    }
    105105
    106 
     106   
    107107    if (!defined $action_table->{$action}) {
    108108    my $valid_actions = join(", ", keys %$action_table);
     
    144144    }
    145145   
     146
    146147    $self->{'action'} = $action;
    147148    $self->{'collect'} = $collect;
     
    149150    $self->{'timestamp'} = $timestamp;
    150151    $self->{'site'} = $site;
    151 
     152     
    152153    # Locate and store compulsory arguments
    153154    my $comp_args = $action_table->{$action}->{'compulsory-args'};
     
    171172    }
    172173
     174   
     175   
    173176    # Retrieve infodb-type
    174177    if (defined $collect) {
    175     my $inexport = newCGI inexport(ref $self,$collect);
     178   
     179    my $opt_site = $self->{'site'} || "";
     180   
     181    my $inexport = newCGI inexport(ref $self,$collect,$gsdl_cgi,$opt_site);
    176182    my ($config_filename,$collect_cfg) = $inexport->read_collection_cfg($collect);   
    177183    $self->{'infodbtype'} = $collect_cfg->{'infodbtype'};
     184
    178185    }
    179186   
     187   
    180188    return $self;
    181189}
Note: See TracChangeset for help on using the changeset viewer.