Changeset 36115 for main


Ignore:
Timestamp:
2022-03-15T11:00:46+13:00 (2 years ago)
Author:
kjdon
Message:

buildcol also updated to allow for passing in of oaiserver_name - when you actiavte/deactivate a collection, it does the same thing for the oaiserver

Location:
main/trunk/greenstone2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/buildcol.pl

    r36060 r36115  
    277277    'reqd' => "no",
    278278    'hiddengli' => "yes" },
    279       { 'name' => "indexname",
     279       { 'name' => "oaiserver_name",
     280    'desc' => "{buildcol.oaiserver_name}",
     281    'type' => "string",
     282    'reqd' => "no",
     283    'hiddengli' => "yes" },
     284     { 'name' => "indexname",
    280285    'desc' => "{buildcol.index}",
    281286    'type' => "string",
  • main/trunk/greenstone2/perllib/buildcolutils.pm

    r31753 r36115  
    678678    # If incremental, need to deactivate the collection for collections whose db don't support concurrent R+W
    679679    # All except the collection (1st parameter) can be empty. For GS3, also set the site parameter
    680     my $gsserver = new servercontrol( $self->get_collection(), $self->{'site'}, $self->{'verbosity'}, $self->{'builddir'}, $self->{'indexdir'}, $self->{'collectdir'}, $self->{'library_url'}, $self->{'library_name'});
     680    my $gsserver = new servercontrol( $self->get_collection(), $self->{'site'}, $self->{'verbosity'}, $self->{'builddir'}, $self->{'indexdir'}, $self->{'collectdir'}, $self->{'library_url'}, $self->{'library_name'}, $self->{'oaiserver_name'});
    681681
    682682    # when *incrementally* rebuilding a collection using any db that *doesn't* support concurrent
     
    808808    push(@activate_argv, '-library_url', $self->{'library_url'}) if ($self->{'library_url'});
    809809    push(@activate_argv, '-library_name', $self->{'library_name'}) if ($self->{'library_name'});
     810    push(@activate_argv, '-oaiserver_name', $self->{'oaiserver_name'}) if ($self->{'oaiserver_name'});
     811   
    810812    push(@activate_argv, '-collectdir', $self->{'collectdir'}) if ($self->{'collectdir'});
    811813    push(@activate_argv, '-builddir', $self->{'builddir'}) if ($self->{'builddir'});
Note: See TracChangeset for help on using the changeset viewer.