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/plugouts/GreenstoneSQLPlugout.pm

    r32584 r32586  
    4141# + TODO: SIGTERM rollback and disconnect?
    4242# + TODO Q: what about verbosity for debugging, instead of current situation of printing out upon debug set at the expense of writing to db
    43 # TODO Q: introduced site_name param to plugins and plugouts. Did I do it right? And should they have hiddengli = "yes"
     43#X TODO Q: introduced site param to plugins and plugouts. Did I do it right? And should they have hiddengli = "yes". No longer a param
    4444# Did I do the pass by ref in docprint's escape and unescape textref functions correctly, and how they're called here?
    4545#   Any more optimisation I can do around this?
     
    8888      'type' => "enum",
    8989      'list' => $rollback_on_cancel_list,
    90       'deft' => "true", # TODO Q: what's the better default? If "true", any memory concerns?
     90      'deft' => "false", # TODO Q: what's the better default? If "true", any memory concerns?
    9191      'reqd' => "no",
    9292      'hiddengli' => "no"},
     
    155155
    156156    ############ LOAD NECESSARY OPTIONS ###########
    157     #print "@@@ plugout SITE NAME: ". $self->{'site_name'} . "\n" if defined $self->{'site_name'};
     157    #print "@@@ plugout SITE NAME: ". $self->{'site'} . "\n" if defined $self->{'site'};
    158158    #print STDERR "########## COLLECTION: ". $ENV{'GSDLCOLLECTION'}."\n";
    159159
     
    189189    #die("@@@@ TEST. Connected successfully. Testing gssql::destructor.\n"); # WORKS
    190190   
    191     my $db_name = $self->{'site_name'} || "greenstone2"; # one database per GS3 site, for GS2 the db is called greenstone2
     191    my $db_name = $self->{'site'} || "greenstone2"; # one database per GS3 site, for GS2 the db is called greenstone2
    192192    my $proc_mode = $self->{'process_mode'};
    193193   
Note: See TracChangeset for help on using the changeset viewer.