Changeset 7906


Ignore:
Timestamp:
2004-08-06T16:43:08+12:00 (20 years ago)
Author:
chi
Message:

Introduction of '-saveas' flag for controlling the generation of
the archive format. Can now be GreenstoneArchive (GA) or METS.

File:
1 edited

Legend:

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

    r7329 r7906  
    5656        'desc' => "{import.OIDtype.incremental}" } ];
    5757
     58#** define to use the original GA format or METS format
     59my $saveas_list =
     60    [ { 'name' => "GA",
     61        'desc' => "{import.saveas.GA}" },
     62      { 'name' => "METS",
     63        'desc' => "{import.saveas.METS}" } ];
     64
     65
    5866# Possible attributes for each argument
    5967# name: The name of the argument
     
    137145    'reqd' => "no",
    138146    'modegli' => "3" },
     147      { 'name' => "saveas",
     148    'desc' => "{import.saveas}",
     149    'type' => "enum",
     150    'list' => $saveas_list,
     151    'deft' => "GA",
     152    'reqd' => "no",
     153    'modegli' => "3" },     
    139154      { 'name' => "sortmeta",
    140155    'desc' => "{import.sortmeta}",
     
    170185sub main {
    171186    my ($verbosity, $importdir, $archivedir, $keepold,
    172     $removeold, $gzip, $groupsize, $OIDtype, $debug,
     187    $removeold, $saveas, $gzip, $groupsize, $OIDtype, $debug,
    173188    $maxdocs, $collection, $configfilename, $collectcfg,
    174189    $pluginfo, $sortmeta, $archive_info_filename, $statsfile,
     
    188203             'keepold', \$keepold,
    189204             'removeold', \$removeold,
     205             'saveas/^(GA|METS)$/GA', \$saveas,
    190206             'gzip', \$gzip,
    191207             'groupsize/\d+/1', \$groupsize,
     
    380396    $processor->set_sortmeta ($sortmeta) if defined $sortmeta;
    381397    $processor->set_OIDtype ($OIDtype);
     398    $processor->set_saveas ($saveas);
    382399    } else {
    383400    $processor = new docprint ();
Note: See TracChangeset for help on using the changeset viewer.