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/GreenstoneSQLPlugin.pm

    r32584 r32586  
    161161    'type' => "enum",
    162162    'list' => $rollback_on_cancel_list,
    163     'deft' => "true", # TODO Q: what's the better default? If "true", any memory concerns?
     163    'deft' => "false", # TODO Q: what's the better default? If "true", any memory concerns?
    164164    'reqd' => "no",
    165165    'hiddengli' => "no"},
     
    236236
    237237    ####################
    238 #    print "@@@ SITE NAME: ". $self->{'site_name'} . "\n" if defined $self->{'site_name'};
     238#    print "@@@ SITE NAME: ". $self->{'site'} . "\n" if defined $self->{'site'};
    239239#    print "@@@ COLL NAME: ". $ENV{'GSDLCOLLECTION'} . "\n";
    240240
     
    270270    }
    271271   
    272     my $db_name = $self->{'site_name'} || "greenstone2"; # one database per GS3 site, for GS2 the db is called greenstone2
     272    my $db_name = $self->{'site'} || "greenstone2"; # one database per GS3 site, for GS2 the db is called greenstone2
    273273
    274274    # Attempt to use the db, create it if it doesn't exist (but don't create the tables yet)
     
    332332    print STDERR "   Building with removeold option set, so deleting current collection's tables if they exist\n" if($self->{'verbosity'});
    333333   
    334     # if we're in here, we'd already have run 'use database <site_name>;' during sub init()
     334    # if we're in here, we'd already have run 'use database <site>;' during sub init()
    335335    # so we can go ahead and delete the collection's tables
    336336    my $gs_sql = $self->{'gs_sql'};
Note: See TracChangeset for help on using the changeset viewer.