Changeset 12266


Ignore:
Timestamp:
2006-07-20T15:48:39+12:00 (18 years ago)
Author:
kjdon
Message:

added a new option: OIDmetadata, which is used with OIDtype=assigned, to specify the metadata element that contains the identifier

File:
1 edited

Legend:

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

    r12003 r12266  
    164164    'reqd' => "no",
    165165    'modegli' => "3" },
     166      { 'name' => "OIDmetadata",
     167    'desc' => "{import.OIDmetadata}",
     168    'type' => "metadata",
     169    'deft' => "dc.Identifier",
     170    'reqd' => "no",
     171    'modegli' => "3" },
    166172      { 'name' => "out",
    167173    'desc' => "{import.out}",
     
    230236    my ($verbosity, $importdir, $archivedir, $manifest, $keepold,
    231237    $removeold, $saveas, $version,
    232     $gzip, $groupsize, $OIDtype, $debug,
     238    $gzip, $groupsize, $OIDtype, $OIDmetadata, $debug,
    233239    $maxdocs, $collection, $configfilename, $collectcfg,
    234240    $pluginfo, $sortmeta, $removeprefix, $removesuffix,
     
    462468    $processor->setoutputdir ($archivedir);
    463469    $processor->set_sortmeta ($sortmeta, $removeprefix, $removesuffix) if defined $sortmeta;
    464     $processor->set_OIDtype ($OIDtype);
     470    $processor->set_OIDtype ($OIDtype, $OIDmetadata);
    465471    $processor->set_saveas ($saveas);
    466472    $processor->set_saveas_version ("greenstone");
Note: See TracChangeset for help on using the changeset viewer.