Changeset 14111 for trunk/gsdl/bin/script/import.pl
- Timestamp:
- 2007-05-30T17:53:17+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/import.pl
r14031 r14111 242 242 $removeold, $saveas, $version, 243 243 $gzip, $groupsize, $OIDtype, $OIDmetadata, $debug, 244 $maxdocs, $collection, $configfilename, $collectcfg, 244 $maxdocs, $collection, $configfilename, $collectcfg, $gs_mode, 245 245 $pluginfo, $sortmeta, $removeprefix, $removesuffix, 246 246 $archive_info_filename, $statsfile, … … 323 323 $faillog->autoflush(1); 324 324 325 # check that there is a collect.cfg file, i.e. it is gs2. 326 $configfilename = &util::filename_cat ($ENV{'GSDLCOLLECTDIR'}, "etc", "collect.cfg"); 327 if (-e $configfilename) { 328 $collectcfg = &colcfg::read_collect_cfg ($configfilename); 329 330 } else { 331 # check that there is a collectionConfig.xml file, i.e. it is gs3. 332 $configfilename = &util::filename_cat ($ENV{'GSDLCOLLECTDIR'}, "etc", "collectionConfig.xml"); 333 if (!-e $configfilename) { 334 (&gsprintf($out, "{common.cannot_find_cfg_file}\n", $configfilename) && die); 335 } else { 325 # Read in the collection configuration file. 326 ($configfilename, $gs_mode) = &colcfg::get_collect_cfg_name($out); 327 if ($gs_mode eq "gs2") { 328 $collectcfg = &colcfg::read_collect_cfg ($configfilename); 329 } elsif ($gs_mode eq "gs3") { 336 330 $collectcfg = &colcfg::read_collection_cfg_xml ($configfilename); 337 }338 331 } 339 332
Note:
See TracChangeset
for help on using the changeset viewer.