Ignore:
Timestamp:
2009-07-29T13:22:28+12:00 (15 years ago)
Author:
kjdon
Message:

use colcfg read_collection/building_cfg methods instead of switching on gs_mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/import.pl

    r19775 r20098  
    371371    # Read in the collection configuration file.
    372372    ($configfilename, $gs_mode) = &colcfg::get_collect_cfg_name($out);
    373 
    374     if ($gs_mode eq "gs2") {
    375         $collectcfg = &colcfg::read_collect_cfg ($configfilename);
    376     } elsif ($gs_mode eq "gs3") {
    377     $collectcfg = &colcfg::read_collection_cfg_xml ($configfilename);
    378     }
     373    $collectcfg = &colcfg::read_collection_cfg ($configfilename, $gs_mode);
    379374
    380375    if (defined $collectcfg->{'importdir'} && $importdir eq "") {
Note: See TracChangeset for help on using the changeset viewer.