Ignore:
Timestamp:
2007-10-11T12:37:15+13:00 (17 years ago)
Author:
anna
Message:

Undoing commit of r14657.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/basebuilder.pm

    r14657 r14668  
    9494    } elsif ($gs_mode eq "gs3") {
    9595    $self->{'collect_cfg'} = &colcfg::read_collection_cfg_xml ($colcfgname);
     96
     97    #this $self->{'collect_cfg_preserve'} is used for gs3 only and to be passed to &colcfg::write_build_cfg_xml in sub make_auxilary_files later in this basebuilder.pm, we use this preserve object because $self->{'collect_cfg'}->{'classify'} somewhat gets modified during the calling of &classify::load_classifiers.
     98    $self->{'collect_cfg_preserve'} = &colcfg::read_collection_cfg_xml ($colcfgname);
    9699    }
    97100   
     
    121124    $classifiers = $self->{'collect_cfg'}->{'classify'};
    122125    }
    123    
     126
    124127    # load all the classifiers
    125128    $self->{'classifiers'} = &classify::load_classifiers ($classifiers, $build_dir, $outhandle);
     
    440443    }
    441444    }
    442     $build_cfg->{'indexmap'} = \@indexmap;
     445    $build_cfg->{'indexmap'} = \@indexmap if scalar (@indexmap);
    443446
    444447    my @subcollectionmap = ();
     
    470473    }
    471474    if ($gs_mode eq "gs3") {
    472       &colcfg::write_build_cfg_xml("$self->{'build_dir'}/buildConfig.xml", $build_cfg, $self->{'collect_cfg'}, $self->{'disable_OAI'});
     475
     476      &colcfg::write_build_cfg_xml("$self->{'build_dir'}/buildConfig.xml", $build_cfg, $self->{'collect_cfg_preserve'}, $self->{'disable_OAI'});
    473477    }   
    474478
Note: See TracChangeset for help on using the changeset viewer.