Changeset 12691
- Timestamp:
- 2006-09-06T16:36:47+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/export.pl
r12598 r12691 61 61 my $oidtype_list = 62 62 [ { 'name' => "hash", 63 'desc' => "{ export.OIDtype.hash}" },63 'desc' => "{import.OIDtype.hash}" }, 64 64 { 'name' => "incremental", 65 'desc' => "{export.OIDtype.incremental}" } ]; 65 'desc' => "{import.OIDtype.incremental}" }, 66 { 'name' => "assigned", 67 'desc' => "{import.OIDtype.assigned}" }, 68 { 'name' => "dirname", 69 'desc' => "{import.OIDtype.dirname}" } ]; 66 70 67 71 #** define to use the METS format or DSpace format … … 121 125 'hiddengli' => "yes" }, 122 126 { 'name' => "listall", 123 'desc' => "{ scripts.listall}",127 'desc' => "{export.listall}", 124 128 'type' => "flag", 125 129 'reqd' => "no" }, … … 156 160 'range' => "1,", 157 161 'modegli' => "1" }, 162 { 'name' => "OIDtype", 163 'desc' => "{import.OIDtype}", 164 'type' => "enum", 165 'list' => $oidtype_list, 166 # parsearg left "" as default 167 #'deft' => "hash", 168 'reqd' => "no", 169 'modegli' => "3" }, 170 { 'name' => "OIDmetadata", 171 'desc' => "{import.OIDmetadata}", 172 'type' => "metadata", 173 'deft' => "dc.Identifier", 174 'reqd' => "no", 175 'modegli' => "3" }, 158 176 { 'name' => "out", 159 177 'desc' => "{export.out}", … … 231 249 # params 232 250 my ($language, $verbosity, $importdir, $exportdir, $keepold, $listall, 233 $removeold, $saveas, $saveas_version, $debug, 251 $removeold, $saveas, $saveas_version, $debug, $OIDtype, $OIDmetadata, 234 252 $maxdocs, $statsfile, $xsltfile, $mapping_file, $out, $faillog, $collectdir, $gli,$xslt_mets,$xslt_txt,$group_marc); 235 253 my $xml = 0; … … 260 278 my $gzip = undef; 261 279 my $groupsize = 1; 262 my $OIDtype = undef;280 #my $OIDtype = undef; 263 281 my $sortmeta = undef; 264 282 … … 388 406 } 389 407 } 390 if (!defined $OIDtype || ($OIDtype !~ /^(hash|incremental )$/)) {408 if (!defined $OIDtype || ($OIDtype !~ /^(hash|incremental|assigned|dirname)$/)) { 391 409 if (defined $collectcfg->{'OIDtype'} && $collectcfg->{'OIDtype'} =~ /^(hash|incremental)$/) { 392 410 $OIDtype = $collectcfg->{'OIDtype'}; … … 441 459 # read the export information file 442 460 if (!$debug) { 443 # Export to DSpace Ar hive format or METs format461 # Export to DSpace Archive format or METs format 444 462 # If saveas=DSpace, a "contents" file will be created, otherwise "export.inf" 445 463 … … 470 488 $plugout_name = $saveas; 471 489 } 472 473 474 475 476 490 491 my $opts=[]; 492 493 494 push @$opts,("-output_info",$export_info) if (defined $export_info); 477 495 478 496 push @$opts,("-verbosity",$verbosity) if (defined $verbosity); … … 492 510 493 511 $processor->set_sortmeta ($sortmeta) if defined $sortmeta; 494 $processor->set_OIDtype ($OIDtype );512 $processor->set_OIDtype ($OIDtype, $OIDmetadata); 495 513 496 514 } else {
Note:
See TracChangeset
for help on using the changeset viewer.