Ignore:
Timestamp:
2018-11-08T18:54:56+13:00 (5 years ago)
Author:
ak19
Message:

Renaming 'site_name' parameter used by GS SQL Plugout and Plugin to 'site' for consistency with existing uses of site.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/PrintInfo.pm

    r32539 r32586  
    5353      'reqd' => "no",
    5454      'hiddengli' => "yes" },
    55     { 'name' => "site_name",
    56       'desc' => "{PrintInfo.site_name}",
     55    { 'name' => "site",
     56      'desc' => "{PrintInfo.site}",
    5757      'type' => "string",
    5858      'reqd' => "no",
     
    8686    # the args, just return the object.
    8787    # gsdlinfo must come before gs_version. both are set by plugin.pm
    88     # The optional -site_name <site> (present only for GS3 and when not doing gsdlinfo),
     88    # The optional -site <site-name> (present only for GS3 and when not doing gsdlinfo),
    8989    # if it is there, also appears before gs_version and is also set by plugin.pm
    9090    my $v=0;
    9191    foreach my $strArg (@{$args})
    9292    {
    93     if($v eq "-site_name") {
    94         $self->{'site_name'} = $strArg;
     93    if($v eq "-site") {
     94        $self->{'site'} = $strArg;
    9595    }
    9696    elsif($v eq "-gs_version") {
     
    103103        #return bless $self, $class;
    104104    }
    105     elsif ($strArg eq "-gs_version" || $strArg eq "-site_name") {       
     105    elsif ($strArg eq "-gs_version" || $strArg eq "-site") {       
    106106        $v = $strArg;
    107107    }
Note: See TracChangeset for help on using the changeset viewer.