Changeset 8855


Ignore:
Timestamp:
2004-12-17T16:53:09+13:00 (19 years ago)
Author:
kjdon
Message:

added options removesuffix and removeprefix for use with sortmeta

File:
1 edited

Legend:

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

    r8796 r8855  
    161161    'reqd' => "no",
    162162    'modegli' => "3" },
     163      { 'name' => "removeprefix",
     164    'desc' => "{BasClas.removeprefix}",
     165    'type' => "string",
     166    'deft' => "",
     167    'reqd' => "no" } ,
     168      { 'name' => "removesuffix",
     169    'desc' => "{BasClas.removesuffix}",
     170    'type' => "string",
     171    'deft' => "",
     172    'reqd' => "no" },
    163173      { 'name' => "statsfile",
    164174    'desc' => "{import.statsfile}",
     
    191201    $removeold, $saveas, $gzip, $groupsize, $OIDtype, $debug,
    192202    $maxdocs, $collection, $configfilename, $collectcfg,
    193     $pluginfo, $sortmeta, $archive_info_filename, $statsfile,
     203    $pluginfo, $sortmeta, $removeprefix, $removesuffix,
     204    $archive_info_filename, $statsfile,
    194205    $archive_info, $processor, $out, $faillog, $collectdir, $gli);
    195206
     
    213224             'OIDtype/^(hash|incremental|assigned|dirname)$/', \$OIDtype,
    214225             'sortmeta/.*/', \$sortmeta,
     226             'removeprefix/.*/', \$removeprefix,
     227             'removesuffix/.*/', \$removesuffix,
    215228             'debug', \$debug,
    216229             'maxdocs/^\-?\d+/', \$maxdocs,
     
    224237    die "\n";
    225238    }
     239
    226240    # If $language has been specified, load the appropriate resource bundle
    227241    # (Otherwise, the default resource bundle will be loaded automatically)
     
    400414    $processor = new docsave ($collection, $archive_info, $verbosity, $gzip, $groupsize, $out, $service, $saveas);
    401415    $processor->setarchivedir ($archivedir);
    402     $processor->set_sortmeta ($sortmeta) if defined $sortmeta;
     416    $processor->set_sortmeta ($sortmeta, $removeprefix, $removesuffix) if defined $sortmeta;
    403417    $processor->set_OIDtype ($OIDtype);
    404418    $processor->set_saveas ($saveas);
Note: See TracChangeset for help on using the changeset viewer.