Changeset 12598


Ignore:
Timestamp:
2006-08-30T10:41:51+12:00 (18 years ago)
Author:
shaoqun
Message:

added mapping_file option for MARCXML plugout

File:
1 edited

Legend:

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

    r12545 r12598  
    183183    'reqd' => "no",
    184184        'hiddengli' => "no" },
     185      { 'name' => "mapping_file",
     186    'desc' => "{MARCXMLPlugout.mapping_file}",
     187    'type' => "string",
     188    'reqd' => "no",
     189        'hiddengli' => "no" },
    185190      { 'name' => "group_marc",
    186191    'desc' => "{MARCXMLPlugout.group}",
     
    227232    my ($language, $verbosity, $importdir, $exportdir, $keepold, $listall,
    228233    $removeold, $saveas, $saveas_version, $debug,
    229     $maxdocs, $statsfile, $xsltfile, $out, $faillog, $collectdir, $gli,$xslt_mets,$xslt_txt,$group_marc);
     234    $maxdocs, $statsfile, $xsltfile, $mapping_file, $out, $faillog, $collectdir, $gli,$xslt_mets,$xslt_txt,$group_marc);
    230235    my $xml = 0;
    231236   
     
    476481        push @$opts,("-group_size",$groupsize) if (defined $groupsize);
    477482        push @$opts,("-output_handle",$out) if (defined $out);
    478 
    479483                push @$opts,("-xslt_file",$xsltfile) if (defined $xsltfile);
    480484                push @$opts,("-group") if ($group_marc && $plugout_name =~ /^MARCXMLPlugout$/);
     485        push @$opts,("-mapping_file",$mapping_file) if (defined $mapping_file && $plugout_name =~ /^MARCXMLPlugout$/);
    481486        push @$opts,("-saveas_version",$saveas_version) if (defined $saveas_version && $plugout_name =~ /^METSPlugout$/);
    482487                push @$opts,("-xslt_mets",$xslt_mets) if (defined $xslt_mets && $plugout_name =~ /^METSPlugout$/);
    483488                push @$opts,("-xslt_txt",$xslt_txt) if (defined $xslt_txt && $plugout_name =~ /^METSPlugout$/);
    484                        
    485                                            
    486489            $processor = &plugout::load_plugout($plugout_name,$opts);   
    487490
     
    490493        $processor->set_sortmeta ($sortmeta) if defined $sortmeta;
    491494        $processor->set_OIDtype ($OIDtype);
    492         #$processor->set_saveas ($saveas);
    493         #$processor->set_saveas_version ($saveas_version);
     495   
    494496        } else {
    495497        $processor = new docprint ();
Note: See TracChangeset for help on using the changeset viewer.